|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for serializing instances of NodeRealizer.
| Method Summary | |
boolean |
canHandle(Node n,
GraphMLParseContext context)
Return whether this instance can deserialize the content of n in the given context. |
boolean |
canHandle(NodeRealizer nr,
GraphMLWriteContext context)
Return whether this instance can serialize the NodeRealizer nr in the given context. |
NodeRealizer |
createRealizerInstance(Node node,
GraphMLParseContext context)
Create new instance of the Realizer from the given information |
String |
getName()
Returns the name of the XML element tag which denotes this type of realizer. |
String |
getNamespacePrefix()
Returns the namespace prefix of the toplevel element |
String |
getNamespaceURI()
Returns the target namespace of the toplevel element |
Class |
getRealizerClass()
Returns the class of which the realizer is an instance of. |
void |
parse(NodeRealizer realizer,
Node node,
GraphMLParseContext context)
Parses the realizer from a given DOM node. |
void |
write(NodeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
Writes the realizer. |
void |
writeAttributes(NodeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
Writes the attributes of the top level xml element representing the realizer. |
| Method Detail |
public String getName()
public String getNamespaceURI()
public String getNamespacePrefix()
public Class getRealizerClass()
public void parse(NodeRealizer realizer,
Node node,
GraphMLParseContext context)
public void write(NodeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
public void writeAttributes(NodeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
public boolean canHandle(NodeRealizer nr,
GraphMLWriteContext context)
nr in the given context.
nr - context -
true iff this instance can serialize nr in the context of context
public boolean canHandle(Node n,
GraphMLParseContext context)
n in the given context.
n - context -
true iff this instance can deserialize n in the context of context
public NodeRealizer createRealizerInstance(Node node,
GraphMLParseContext context)
throws GraphMLParseException
node - context -
GraphMLParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||