Package | com.yworks.io.graphml.writer |
Interface | public interface ISerializer |
Implementors | AbstractSerializer, ArraySerializer, IterableSerializer, PortMementoSerializer, PrimitivesSerializer, ReflectionBasedSerializer, StringSerializer |
It is advised that implementors use abstract
implementation classes like AbstractSerializer
instead as base classes.
Property | Defined By | ||
---|---|---|---|
elementName : String [read-only]
The element name of the toplevel XmlElement for the serialized representation of this object. | ISerializer | ||
xmlNamespace : Namespace [read-only]
The XmlNamespace that should be used for this serializer. | ISerializer |
Method | Defined By | ||
---|---|---|---|
canHandle(context:GraphMLWriteContext, subject:Object):Boolean
Return whether this serializer can handle a specific object. | ISerializer | ||
Serialize the given style to a IXmlWriter. | ISerializer |
elementName | property |
elementName:String
[read-only] The element name of the toplevel XmlElement for the serialized representation of this object.
public function get elementName():String
xmlNamespace | property |
xmlNamespace:Namespace
[read-only] The XmlNamespace that should be used for this serializer.
public function get xmlNamespace():Namespace
canHandle | () | method |
public function canHandle(context:GraphMLWriteContext, subject:Object):Boolean
Return whether this serializer can handle a specific object.
Parameters
context:GraphMLWriteContext — The write context.
| |
subject:Object — The object which is tested
|
Boolean — true if the serializer can handle the subject
|
serialize | () | method |
public function serialize(context:GraphMLWriteContext, subject:Object, writer:IXmlWriter):void
Serialize the given style to a IXmlWriter
.
Parameters
context:GraphMLWriteContext — The current write context
| |
subject:Object — The actual object
| |
writer:IXmlWriter — An IXmlWriter instance where the
output is written
|
See also