yext.graphml.graph2D
Class GenericNodeRealizerSerializer

java.lang.Object
  extended byyext.graphml.graph2D.AbstractNodeRealizerSerializer
      extended byyext.graphml.graph2D.GenericNodeRealizerSerializer
All Implemented Interfaces:
NodeRealizerSerializer

public class GenericNodeRealizerSerializer
extends AbstractNodeRealizerSerializer

Serializer for instances of GenericNodeRealizer.


Constructor Summary
GenericNodeRealizerSerializer()
           
 
Method Summary
 boolean canHandle(Node n, GraphMLParseContext context)
          Default implementation.
 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 realizer, Node domNode, GraphMLParseContext context)
          Parses the properties from an instance of NodeRealizer.
protected  void parseUserData(GenericNodeRealizer gnr, Node domNode, GraphMLParseContext context)
          Parses the userdata section of this realizer and assigns the user data object.
 void write(NodeRealizer realizer, XmlWriter ipw, GraphMLWriteContext context)
          Writes the properties from an instance of NodeRealizer.
 void writeAttributes(NodeRealizer realizer, XmlWriter writer, GraphMLWriteContext context)
          Writes out the selection state if requested.
protected  void writeUserData(GenericNodeRealizer gnr, XmlWriter writer, GraphMLWriteContext context)
          Writes the userdata section of this realizer and assigns the user data object.
 
Methods inherited from class yext.graphml.graph2D.AbstractNodeRealizerSerializer
canHandle, createRealizerInstance, getNamespacePrefix, writeFill
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericNodeRealizerSerializer

public GenericNodeRealizerSerializer()
Method Detail

getName

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


getNamespaceURI

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

Returns:
the target namespace of the toplevel element

getRealizerClass

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


writeAttributes

public void writeAttributes(NodeRealizer realizer,
                            XmlWriter writer,
                            GraphMLWriteContext context)
Description copied from class: AbstractNodeRealizerSerializer
Writes out the selection state if requested.

Specified by:
writeAttributes in interface NodeRealizerSerializer
Overrides:
writeAttributes in class AbstractNodeRealizerSerializer

write

public void write(NodeRealizer realizer,
                  XmlWriter ipw,
                  GraphMLWriteContext context)
Description copied from class: AbstractNodeRealizerSerializer
Writes the properties from an instance of NodeRealizer.

Specified by:
write in interface NodeRealizerSerializer
Overrides:
write in class AbstractNodeRealizerSerializer

writeUserData

protected void writeUserData(GenericNodeRealizer gnr,
                             XmlWriter writer,
                             GraphMLWriteContext context)
Writes the userdata section of this realizer and assigns the user data object.


parse

public void parse(NodeRealizer realizer,
                  Node domNode,
                  GraphMLParseContext context)
Description copied from class: AbstractNodeRealizerSerializer
Parses the properties from an instance of NodeRealizer.

Specified by:
parse in interface NodeRealizerSerializer
Overrides:
parse in class AbstractNodeRealizerSerializer

canHandle

public boolean canHandle(Node n,
                         GraphMLParseContext context)
Description copied from class: AbstractNodeRealizerSerializer
Default implementation.

Specified by:
canHandle in interface NodeRealizerSerializer
Overrides:
canHandle in class AbstractNodeRealizerSerializer
Parameters:
n -
context -
Returns:
true iff n.getNamespaceURI().equals(getNamespaceURI()) && n.getLocalName().equals(getName()).

parseUserData

protected void parseUserData(GenericNodeRealizer gnr,
                             Node domNode,
                             GraphMLParseContext context)
Parses the userdata section of this realizer and assigns the user data object.



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