|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NodeRealizerSerializer
Interface for serializing instances of NodeRealizer.
| Method Summary | |
|---|---|
boolean |
canHandle(Node n,
GraphMLParseContext context)
Return whether this instance can deserialize the content of n in the given context. |
boolean |
canHandle(NodeRealizer nr,
GraphMLWriteContext context)
Return whether this instance can serialize the NodeRealizer nr in the given context. |
NodeRealizer |
createRealizerInstance(Node node,
GraphMLParseContext context)
Create new instance of the Realizer from the given information |
String |
getName()
Returns the name of the XML element tag which denotes this type of realizer. |
String |
getNamespacePrefix()
Returns the namespace prefix of the toplevel element |
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 node,
GraphMLParseContext context)
Parses the properties into an instance of NodeRealizer. |
void |
write(NodeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
Writes the realizer element's content. |
void |
writeAttributes(NodeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
Writes the attributes of an NodeRealizer element. |
| Method Detail |
|---|
String getName()
String getNamespaceURI()
String getNamespacePrefix()
Class getRealizerClass()
void parse(NodeRealizer realizer,
Node node,
GraphMLParseContext context)
throws GraphMLParseException
NodeRealizer.
GraphMLParseExceptionrealizer - An existing NodeRealizer instance which is configured.node - The XML node containing the realizer data.context - The current parse context.
void write(NodeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
throws GraphMLWriteException
GraphMLWriteExceptionrealizer - The Realizer to write.writer - The XmlWriter for the serialization.context - The current write context.
void writeAttributes(NodeRealizer realizer,
XmlWriter writer,
GraphMLWriteContext context)
realizer - The Realizer to write.writer - The XmlWriter for the serialization.context - The current write context.
boolean canHandle(NodeRealizer nr,
GraphMLWriteContext context)
nr in the given context.
nr - The realizer to writecontext - The current write context.
true iff this instance can serialize nr in the context of context
boolean canHandle(Node n,
GraphMLParseContext context)
n in the given context.
n - The DOM node that represents the realizer data.context - The current parse context.
true iff this instance can deserialize n in the context of context
NodeRealizer createRealizerInstance(Node node,
GraphMLParseContext context)
throws DeserializationNotSupportedException,
GraphMLParseException
DeserializationNotSupportedException
GraphMLParseExceptionnode - 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 | ||||||||