Packagecom.yworks.remote
Classpublic class MapperAttribute
InheritanceMapperAttribute Inheritance Object

Used to register an attribute mapper with the RoundtripHandler's mapperAttributes property.

Usually this class is used in MXML.

MXML SyntaxexpandedHide MXML Syntax
	 <yworks:RoundtripHandler>
	   <yworks:mapperAttributes>
	     <yworks:MapperAttribute tag="MyTag" name="MyName" scope="node" type="string" />
	     <yworks:MapperAttribute tag="AnotherTag" name="AnotherName" scope="edge" type="int" />
	   </yworks:mapperAttributes>
	 </yworks:RoundtripHandler>
	 


Public Properties
 PropertyDefined By
  name : String
The name this attribute mapper is serialized with in GraphML.
MapperAttribute
  scope : String
The scope of this mapper, i.e.
MapperAttribute
  tag : String
The tag with which this mapper is registered in the graph's mapperRegistry.
MapperAttribute
  type : String
The type of this mapper's data.
MapperAttribute
Property Detail
nameproperty
name:String

The name this attribute mapper is serialized with in GraphML.

If no name is provided, the tag attribute is used as name, too. Developers must make sure that at least one of the tag and name attributes is not null, otherwise an exception will be thrown when the IO handler is configured.


Implementation
    public function get name():String
    public function set name(value:String):void
scopeproperty 
scope:String

The scope of this mapper, i.e. the type of graph items this mapper is bound to.

The default value is GraphMLConstants.SCOPE_NODE;.


Implementation
    public function get scope():String
    public function set scope(value:String):void
tagproperty 
tag:String

The tag with which this mapper is registered in the graph's mapperRegistry.

If no tag is provided, the name attribute is used as tag, too. Developers must make sure that at least one of the tag and name attributes is not null, otherwise an exception will be thrown when the IO handler is configured.


Implementation
    public function get tag():String
    public function set tag(value:String):void
typeproperty 
type:String

The type of this mapper's data.

The default value is GraphMLConstants.TYPE_STRING;.


Implementation
    public function get type():String
    public function set type(value:String):void