|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object yext.svg.io.SVGIconSerializer
public class SVGIconSerializer
Provides GraphML (de-)serialization support for SVGIcon
instances.
Constructor Summary | |
---|---|
SVGIconSerializer()
|
Method Summary | |
---|---|
protected SVGIcon |
deserializeNode(Node node,
GraphMLParseContext context)
Deserializes a SVGIcon instance from
a <y:SVGIcon> element. |
void |
onHandleDeserialization(DeserializationEvent event)
Deserializes SVGIcon instances from <y:SVGIcon>
elements. |
void |
onHandleSerialization(SerializationEvent event)
Serializes SVGIcon instances to <y:SVGIcon>
elements. |
protected void |
serializeItem(SVGIcon item,
XmlWriter writer,
GraphMLWriteContext context)
Serializes the specified SVGIcon instance to
a <y:SVGIcon> element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SVGIconSerializer()
Method Detail |
---|
public void onHandleDeserialization(DeserializationEvent event) throws GraphMLParseException
SVGIcon
instances from <y:SVGIcon>
elements.
Calls deserializeNode(org.w3c.dom.Node, y.io.graphml.input.GraphMLParseContext)
.
onHandleDeserialization
in interface DeserializationHandler
event
- Event that contains all data that is needed for deserialization.
GraphMLParseException
- if something went wrong in the serialization process.protected SVGIcon deserializeNode(Node node, GraphMLParseContext context) throws GraphMLParseException
SVGIcon
instance from
a <y:SVGIcon> element.
Called from onHandleDeserialization(y.io.graphml.input.DeserializationEvent)
.
node
- the XML node to parse.context
- the current parse context.
GraphMLParseException
- if something went wrong in the serialization process.public void onHandleSerialization(SerializationEvent event) throws GraphMLWriteException
SVGIcon
instances to <y:SVGIcon>
elements.
Calls serializeItem(yext.svg.view.SVGIcon, y.io.graphml.output.XmlWriter, y.io.graphml.output.GraphMLWriteContext)
.
onHandleSerialization
in interface SerializationHandler
event
- Event that contains all data that is needed for serialization.
GraphMLWriteException
- if something went wrong in the serialization process.protected void serializeItem(SVGIcon item, XmlWriter writer, GraphMLWriteContext context) throws GraphMLWriteException
SVGIcon
instance to
a <y:SVGIcon> element.
item
- the icon to serialize.writer
- the writer for the serialized output.context
- the current write context.
GraphMLWriteException
- if something went wrong in the serialization process.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |