|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.graphml.graph2d.AbstractEdgeRealizerSerializer y.io.graphml.graph2d.GenericEdgeRealizerSerializer
public class GenericEdgeRealizerSerializer
Serializer for instances of GenericEdgeRealizer
.
Nested Class Summary | |
---|---|
static interface |
GenericEdgeRealizerSerializer.ConfigurationFactory
Interface for dynamic creation and registration of configurations for GenericEdgeRealizer . |
Constructor Summary | |
---|---|
GenericEdgeRealizerSerializer()
|
Method Summary | |
---|---|
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 |
protected ObjectStringConverter |
getObjectStringConverter()
Gets the ObjectStringConverter that will be used by this instance to
convert the GenericNodeRealizer.getUserData() and GenericNodeRealizer.getStyleProperties()
style properties to strings for serialization. |
java.lang.Class |
getRealizerClass()
Returns the class of which the realizer is an instance of. |
void |
parse(EdgeRealizer realizer,
org.w3c.dom.Node domNode,
GraphMLParseContext context)
Parses the properties from an instance of EdgeRealizer . |
protected void |
parseStyleProperties(GenericEdgeRealizer ger,
org.w3c.dom.Node domNode,
GraphMLParseContext context)
Parses the style properties section of this realizer and assigns the user data object. |
protected void |
parseUserData(GenericEdgeRealizer gr,
org.w3c.dom.Node domNode,
GraphMLParseContext context)
Parses the user data section of this realizer and assigns the user data object. |
void |
write(EdgeRealizer realizer,
XmlWriter ipw,
GraphMLWriteContext context)
Writes the realizer element's content. |
void |
writeAttributes(EdgeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
Writes the attributes of an EdgeRealizer element. |
protected void |
writeStyleProperties(GenericEdgeRealizer gnr,
XmlWriter writer,
GraphMLWriteContext context)
Writes the style properties section of this realizer and serializes the properties |
protected void |
writeUserData(GenericEdgeRealizer ger,
XmlWriter writer,
GraphMLWriteContext context)
Writes the user data section of this realizer and assigns the user data object. |
Methods inherited from class y.io.graphml.graph2d.AbstractEdgeRealizerSerializer |
---|
canHandle, canHandle, createRealizerInstance, getNamespacePrefix, parseLabel, parsePort, writeEdgeLabel, writePort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericEdgeRealizerSerializer()
Method Detail |
---|
public java.lang.String getName()
EdgeRealizerSerializer
public java.lang.String getNamespaceURI()
EdgeRealizerSerializer
public java.lang.Class getRealizerClass()
EdgeRealizerSerializer
public void writeAttributes(EdgeRealizer realizer, XmlWriter writer, GraphMLWriteContext context)
EdgeRealizerSerializer
writeAttributes
in interface EdgeRealizerSerializer
writeAttributes
in class AbstractEdgeRealizerSerializer
realizer
- The Realizer to write.writer
- The XmlWriter for the serialization.context
- The current write context.public void write(EdgeRealizer realizer, XmlWriter ipw, GraphMLWriteContext context) throws GraphMLWriteException
EdgeRealizerSerializer
write
in interface EdgeRealizerSerializer
write
in class AbstractEdgeRealizerSerializer
realizer
- The Realizer to write.ipw
- The XmlWriter for the serialization.context
- The current write context.
GraphMLWriteException
protected void writeUserData(GenericEdgeRealizer ger, XmlWriter writer, GraphMLWriteContext context) throws GraphMLWriteException
GraphMLWriteException
protected void writeStyleProperties(GenericEdgeRealizer gnr, XmlWriter writer, GraphMLWriteContext context) throws GraphMLWriteException
GraphMLWriteException
getObjectStringConverter()
protected ObjectStringConverter getObjectStringConverter()
ObjectStringConverter
that will be used by this instance to
convert the GenericNodeRealizer.getUserData()
and GenericNodeRealizer.getStyleProperties()
style properties to strings for serialization.
ObjectStringConversion.getInstance()
.public void parse(EdgeRealizer realizer, org.w3c.dom.Node domNode, GraphMLParseContext context) throws GraphMLParseException
AbstractEdgeRealizerSerializer
EdgeRealizer
.
parse
in interface EdgeRealizerSerializer
parse
in class AbstractEdgeRealizerSerializer
realizer
- An existing EdgeRealizer
instance which is configured.domNode
- The XML node containing the realizer data.context
- The current parse context.
GraphMLParseException
protected void parseStyleProperties(GenericEdgeRealizer ger, org.w3c.dom.Node domNode, GraphMLParseContext context) throws GraphMLParseException
GraphMLParseException
protected void parseUserData(GenericEdgeRealizer gr, org.w3c.dom.Node domNode, GraphMLParseContext context) throws GraphMLParseException
GraphMLParseException
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |