|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttico.board.encoding.TAttributeEncoder
public class TAttributeEncoder
Static class which implements functions to encode and decode attibute maps to XML.
Constructor Summary | |
---|---|
TAttributeEncoder()
|
Method Summary | |
---|---|
static java.lang.String[] |
getFilePaths(org.w3c.dom.Document doc)
Returns all the file paths that appears in a XML document. |
static org.jgraph.graph.AttributeMap |
XMLDecode(org.w3c.dom.Element element)
Returns an attributeMap object from the data contained in
the XML Element . |
static org.w3c.dom.Node |
XMLEncode(org.jgraph.graph.AttributeMap map,
org.w3c.dom.Document doc)
Generates an XML Element that contains the
attributeMap data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TAttributeEncoder()
Method Detail |
---|
public static org.w3c.dom.Node XMLEncode(org.jgraph.graph.AttributeMap map, org.w3c.dom.Document doc)
Element
that contains the
attributeMap
data.
map
- The attributeMap
to encodedoc
- The Document
that represents the
entire XML document
Element
generatedpublic static org.jgraph.graph.AttributeMap XMLDecode(org.w3c.dom.Element element) throws InvalidFormatException
attributeMap
object from the data contained in
the XML Element
.
element
- The XML Element
that contains the
attributeMap
data
attributeMap
InvalidFormatException
- If Element
has an invalid formatpublic static java.lang.String[] getFilePaths(org.w3c.dom.Document doc)
doc
- The XML document
doc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |