Search this API

y.io.graphml.graph2d
Class ArcEdgeRealizerSerializer

java.lang.Object
  extended by y.io.graphml.graph2d.AbstractEdgeRealizerSerializer
      extended by y.io.graphml.graph2d.ArcEdgeRealizerSerializer
All Implemented Interfaces:
EdgeRealizerSerializer

public class ArcEdgeRealizerSerializer
extends AbstractEdgeRealizerSerializer

Serializer for instances of ArcEdgeRealizer.


Constructor Summary
ArcEdgeRealizerSerializer()
           
 
Method Summary
 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(EdgeRealizer realizer, Node domNode, GraphMLParseContext context)
          Parses the properties from an instance of EdgeRealizer.
 void write(EdgeRealizer realizer, XmlWriter writer, GraphMLWriteContext context)
          Writes the realizer element's content.
 
Methods inherited from class y.io.graphml.graph2d.AbstractEdgeRealizerSerializer
canHandle, canHandle, createRealizerInstance, getNamespacePrefix, parseLabel, parsePort, writeAttributes, writeEdgeLabel, writePort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcEdgeRealizerSerializer

public ArcEdgeRealizerSerializer()
Method Detail

getName

public String getName()
Description copied from interface: EdgeRealizerSerializer
Returns the name of the XML element tag which denotes this type of realizer.

Returns:
The name of the XML element

getNamespaceURI

public String getNamespaceURI()
Description copied from interface: EdgeRealizerSerializer
Returns the target namespace of the toplevel element

Returns:
the target namespace of the toplevel element

getRealizerClass

public Class getRealizerClass()
Description copied from interface: EdgeRealizerSerializer
Returns the class of which the realizer is an instance of.

Returns:
The target class of the realizer

write

public void write(EdgeRealizer realizer,
                  XmlWriter writer,
                  GraphMLWriteContext context)
           throws GraphMLWriteException
Description copied from interface: EdgeRealizerSerializer
Writes the realizer element's content.

Specified by:
write in interface EdgeRealizerSerializer
Overrides:
write in class AbstractEdgeRealizerSerializer
Throws:
GraphMLWriteException
Parameters:
realizer - The Realizer to write.
writer - The XmlWriter for the serialization.
context - The current write context.

parse

public void parse(EdgeRealizer realizer,
                  Node domNode,
                  GraphMLParseContext context)
           throws GraphMLParseException
Description copied from class: AbstractEdgeRealizerSerializer
Parses the properties from an instance of EdgeRealizer.

Specified by:
parse in interface EdgeRealizerSerializer
Overrides:
parse in class AbstractEdgeRealizerSerializer
Throws:
GraphMLParseException
Parameters:
realizer - An existing EdgeRealizer instance which is configured.
domNode - The XML node containing the realizer data.
context - The current parse context.

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.