|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectyext.graphml.graph2D.AbstractNodeRealizerSerializer
Abstract base class for instances of
NodeRealizerSerializer.
This class parses/writes basic properties of NodeRealizers.
| Constructor Summary | |
AbstractNodeRealizerSerializer()
|
|
| Method Summary | |
boolean |
canHandle(Node n,
GraphMLParseContext context)
Default implementation. |
boolean |
canHandle(NodeRealizer nr,
GraphMLWriteContext context)
Default implementation. |
NodeRealizer |
createRealizerInstance(Node node,
GraphMLParseContext context)
Create new instance of the Realizer from the given information |
String |
getNamespacePrefix()
Returns the namespace prefix of the toplevel element |
void |
parse(NodeRealizer nr,
Node domNode,
GraphMLParseContext context)
Parses the properties from an instance of NodeRealizer. |
void |
write(NodeRealizer nr,
XmlWriter writer,
GraphMLWriteContext context)
Writes the properties from an instance of NodeRealizer. |
void |
writeAttributes(NodeRealizer nr,
XmlWriter writer,
GraphMLWriteContext context)
Writes out the selection state if requested. |
protected void |
writeFill(XmlWriter writer,
NodeRealizer nr)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface yext.graphml.graph2D.NodeRealizerSerializer |
getName, getNamespaceURI, getRealizerClass |
| Constructor Detail |
public AbstractNodeRealizerSerializer()
| Method Detail |
public void parse(NodeRealizer nr,
Node domNode,
GraphMLParseContext context)
NodeRealizer.
parse in interface NodeRealizerSerializer
public void writeAttributes(NodeRealizer nr,
XmlWriter writer,
GraphMLWriteContext context)
writeAttributes in interface NodeRealizerSerializer
public void write(NodeRealizer nr,
XmlWriter writer,
GraphMLWriteContext context)
NodeRealizer.
write in interface NodeRealizerSerializer
protected void writeFill(XmlWriter writer,
NodeRealizer nr)
public boolean canHandle(NodeRealizer nr,
GraphMLWriteContext context)
canHandle in interface NodeRealizerSerializernr - context -
true iff nr.getClass() == getRealizerClass().
public boolean canHandle(Node n,
GraphMLParseContext context)
canHandle in interface NodeRealizerSerializern - context -
true iff n.getNamespaceURI().equals(getNamespaceURI()) && n.getLocalName().equals(getName()).
public NodeRealizer createRealizerInstance(Node node,
GraphMLParseContext context)
throws GraphMLParseException
NodeRealizerSerializer
createRealizerInstance in interface NodeRealizerSerializernode - context -
GraphMLParseExceptionpublic String getNamespacePrefix()
NodeRealizerSerializer
getNamespacePrefix in interface NodeRealizerSerializer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||