|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for serializing instances of EdgeRealizer.
| Method Summary | |
boolean |
canHandle(EdgeRealizer er,
GraphMLWriteContext context)
Return whether this instance can serialize the EdgeRealizer er in the given context. |
boolean |
canHandle(Node n,
GraphMLParseContext context)
Return whether this instance can deserialize the content of n in the given context. |
EdgeRealizer |
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(EdgeRealizer realizer,
Node node,
GraphMLParseContext context)
Parses the realizer from a given DOM node. |
void |
write(EdgeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
Writes the realizer. |
void |
writeAttributes(EdgeRealizer 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(EdgeRealizer realizer,
Node node,
GraphMLParseContext context)
public void write(EdgeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
public void writeAttributes(EdgeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
public boolean canHandle(EdgeRealizer er,
GraphMLWriteContext context)
er in the given context.
er - context -
true iff this instance can serialize er 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 EdgeRealizer 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 | |||||||||