|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.graph2d.AbstractNodeRealizerSerializer
y.io.graphml.graph2d.FallbackNodeRealizerSerializer
public final class FallbackNodeRealizerSerializer
Fallback implementation of AbstractNodeRealizerSerializer that deserializes
common NodeRealizer properties from arbitrary NodeRealizer XML content.
This includes geometry and labels.
| Method Summary | |
|---|---|
boolean |
canHandle(NodeRealizer nr,
GraphMLWriteContext context)
Returns true iff nr.getClass() == getRealizerClass(). |
NodeRealizer |
createRealizerInstance(Node node,
GraphMLParseContext context)
Create new instance of the Realizer from the given information |
static FallbackNodeRealizerSerializer |
getInstance()
|
String |
getName()
Returns the name of the XML element tag which denotes this type of realizer. |
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 nr,
Node domNode,
GraphMLParseContext context)
Parses the properties into an instance of NodeRealizer. |
void |
write(NodeRealizer nr,
XmlWriter writer,
GraphMLWriteContext context)
Writes the realizer element's content. |
| Methods inherited from class y.io.graphml.graph2d.AbstractNodeRealizerSerializer |
|---|
canHandle, getNamespacePrefix, parseLabel, parseNodePorts, writeAttributes, writeFill, writeNodeLabel, writeNodePorts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FallbackNodeRealizerSerializer getInstance()
public String getName()
NodeRealizerSerializer
public String getNamespaceURI()
NodeRealizerSerializer
public Class getRealizerClass()
NodeRealizerSerializer
public void parse(NodeRealizer nr,
Node domNode,
GraphMLParseContext context)
throws GraphMLParseException
NodeRealizerSerializerNodeRealizer.
parse in interface NodeRealizerSerializerparse in class AbstractNodeRealizerSerializerGraphMLParseExceptionnr - An existing NodeRealizer instance which is configured.domNode - The XML node containing the realizer data.context - The current parse context.
public void write(NodeRealizer nr,
XmlWriter writer,
GraphMLWriteContext context)
throws GraphMLWriteException
NodeRealizerSerializer
write in interface NodeRealizerSerializerwrite in class AbstractNodeRealizerSerializerGraphMLWriteExceptionnr - The Realizer to write.writer - The XmlWriter for the serialization.context - The current write context.
public boolean canHandle(NodeRealizer nr,
GraphMLWriteContext context)
AbstractNodeRealizerSerializertrue iff nr.getClass() == getRealizerClass().
canHandle in interface NodeRealizerSerializercanHandle in class AbstractNodeRealizerSerializernr - The realizer that may be written.context - The current write context.
true iff nr.getClass() == getRealizerClass().
public NodeRealizer createRealizerInstance(Node node,
GraphMLParseContext context)
throws GraphMLParseException
NodeRealizerSerializer
createRealizerInstance in interface NodeRealizerSerializercreateRealizerInstance in class AbstractNodeRealizerSerializerGraphMLParseExceptionnode - The DOM node that represents the realizer data.context - The current parse context.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||