|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttom.library.xml.XMLToTNode
public class XMLToTNode
Constructor Summary | |
---|---|
XMLToTNode()
|
|
XMLToTNode(InputStream is)
|
|
XMLToTNode(String filename)
|
Method Summary | |
---|---|
void |
convert(InputStream is)
Set up nodeTerm by providing an InputStream |
void |
convert(Node node)
Set up nodeTerm by providing a Node |
void |
convert(String filename)
Set up nodeTerm by providing a filename |
Node |
convertToNode(InputStream is)
Returns a Node by providing an input stream |
Node |
convertToNode(String filename)
Returns an XML file to a Node representation |
protected Collection<Element> |
getNodes(TNode key)
|
TNode |
getTNode()
Get the nodeTerm attribute |
TNodeList |
namedNodeMapToAterm(NamedNodeMap list)
Returns an ATerm representation of a NamedNodeMap |
TNodeList |
nodeListToAterm(NodeList list)
Returns an ATerm representation of a NodeList |
void |
setDeletingWhiteSpaceNodes(boolean b_d)
|
TNodeList |
sortAttributeList(TNodeList attrList)
|
TNode |
xmlToTNode(Node node)
Returns a TNode by providing a Node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLToTNode()
public XMLToTNode(InputStream is)
public XMLToTNode(String filename)
Method Detail |
---|
protected Collection<Element> getNodes(TNode key)
public void setDeletingWhiteSpaceNodes(boolean b_d)
public TNode getTNode()
public void convert(String filename)
filename
- the filenamepublic void convert(InputStream is)
is
- the InputStreampublic void convert(Node node)
node
- the Nodepublic Node convertToNode(String filename)
filename
- the file to convert
public Node convertToNode(InputStream is)
is
- the input stream
public TNodeList nodeListToAterm(NodeList list)
list
- the NodeList
public TNodeList namedNodeMapToAterm(NamedNodeMap list)
list
- the NamedNodeMap
public TNode xmlToTNode(Node node)
node
- the Node to normalize and convert
public TNodeList sortAttributeList(TNodeList attrList)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |