Packagecom.yworks.io.graphml.writer
Classpublic class AttributeOutputHandler
InheritanceAttributeOutputHandler Inheritance Object
Implements IOutputHandler
Subclasses MapperAttributeOutputHandler, MapperRegistryAttributeOutputHandler

A data handler that writes attributes as data elements in graphml files into an IGraphDataHandler.



Public Properties
 PropertyDefined By
  attributeProvider : IAttributeProvider
[read-only] Returns the attribute provider that was passed to this instance.
AttributeOutputHandler
Public Methods
 MethodDefined By
  
Creates a new instance with the given attribute provider.
AttributeOutputHandler
  
Whether the data is default and thus the data element should not be written at all for the current context.
AttributeOutputHandler
  
Write the XML attributes of a data tag
AttributeOutputHandler
  
Write the element content of a data tag
AttributeOutputHandler
  
Write the XML attributes of the key tag for this graphml attribute
AttributeOutputHandler
  
Write the element content of the key tag for this graphml attribute
AttributeOutputHandler
Property Detail
attributeProviderproperty
attributeProvider:IAttributeProvider  [read-only]

Returns the attribute provider that was passed to this instance.


Implementation
    public function get attributeProvider():IAttributeProvider
Constructor Detail
AttributeOutputHandler()Constructor
public function AttributeOutputHandler(attributeProvider:IAttributeProvider)

Creates a new instance with the given attribute provider.

Parameters
attributeProvider:IAttributeProvider — The attribute provider to read the attributes from.
Method Detail
isDefaultData()method
public function isDefaultData(context:GraphMLWriteContext):Boolean

Whether the data is default and thus the data element should not be written at all for the current context.

Parameters

context:GraphMLWriteContext — The write context.

Returns
Booleanfalse if the data element should be written.
printDataAttributes()method 
public function printDataAttributes(context:GraphMLWriteContext, writer:IXmlWriter):void

Write the XML attributes of a data tag

Parameters

context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.

printDataOutput()method 
public function printDataOutput(context:GraphMLWriteContext, writer:IXmlWriter):void

Write the element content of a data tag

Parameters

context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.

printKeyAttributes()method 
public function printKeyAttributes(context:GraphMLWriteContext, writer:IXmlWriter):void

Write the XML attributes of the key tag for this graphml attribute

Parameters

context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.

printKeyOutput()method 
public function printKeyOutput(context:GraphMLWriteContext, writer:IXmlWriter):void

Write the element content of the key tag for this graphml attribute

Parameters

context:GraphMLWriteContext — The write context.
 
writer:IXmlWriter — the xml writer.