|
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.AbstractEdgeRealizerSerializer
y.io.graphml.graph2d.FallbackEdgeRealizerSerializer
public final class FallbackEdgeRealizerSerializer
Fallback implementation of AbstractEdgeRealizerSerializer that deserializes
common EdgeRealizer properties from arbitrary EdgeRealizer XML content.
This includes geometry and labels.
![]() |
![]() |
![]() |
![]() |
| Method Summary | |
|---|---|
boolean |
canHandle(EdgeRealizer er,
GraphMLWriteContext context)
Returns true iff er.getClass() == getRealizerClass(). |
EdgeRealizer |
createRealizerInstance(org.w3c.dom.Node node,
GraphMLParseContext context)
Create new instance of the Realizer from the given information |
static FallbackEdgeRealizerSerializer |
getInstance()
|
java.lang.String |
getName()
Returns the name of the XML element tag which denotes this type of realizer. |
java.lang.String |
getNamespaceURI()
Returns the target namespace of the toplevel element |
java.lang.Class |
getRealizerClass()
Returns the class of which the realizer is an instance of. |
void |
parse(EdgeRealizer er,
org.w3c.dom.Node domNode,
GraphMLParseContext context)
Parses the properties from an instance of EdgeRealizer. |
void |
write(EdgeRealizer edgeRealizer,
XmlWriter writer,
GraphMLWriteContext context)
Writes the realizer element's content. |
| Methods inherited from class y.io.graphml.graph2d.AbstractEdgeRealizerSerializer |
|---|
canHandle, getNamespacePrefix, parseLabel, parsePort, writeAttributes, writeEdgeLabel, writePort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FallbackEdgeRealizerSerializer getInstance()
public java.lang.String getName()
EdgeRealizerSerializer
public java.lang.String getNamespaceURI()
EdgeRealizerSerializer
public java.lang.Class getRealizerClass()
EdgeRealizerSerializer
public void parse(EdgeRealizer er,
org.w3c.dom.Node domNode,
GraphMLParseContext context)
throws GraphMLParseException
AbstractEdgeRealizerSerializerEdgeRealizer.
parse in interface EdgeRealizerSerializerparse in class AbstractEdgeRealizerSerializerer - An existing EdgeRealizer instance which is configured.domNode - The XML node containing the realizer data.context - The current parse context.
GraphMLParseException
public void write(EdgeRealizer edgeRealizer,
XmlWriter writer,
GraphMLWriteContext context)
throws GraphMLWriteException
EdgeRealizerSerializer
write in interface EdgeRealizerSerializerwrite in class AbstractEdgeRealizerSerializeredgeRealizer - The Realizer to write.writer - The XmlWriter for the serialization.context - The current write context.
GraphMLWriteException
public boolean canHandle(EdgeRealizer er,
GraphMLWriteContext context)
AbstractEdgeRealizerSerializertrue iff er.getClass() == getRealizerClass().
canHandle in interface EdgeRealizerSerializercanHandle in class AbstractEdgeRealizerSerializerer - The Realizer that my be writtencontext - The current write context
true iff er.getClass() == getRealizerClass().
public EdgeRealizer createRealizerInstance(org.w3c.dom.Node node,
GraphMLParseContext context)
throws GraphMLParseException
EdgeRealizerSerializer
createRealizerInstance in interface EdgeRealizerSerializercreateRealizerInstance in class AbstractEdgeRealizerSerializernode - The DOM node that represents the realizer data.context - The current parse context.
GraphMLParseException
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||