| Package | com.yworks.remote |
| Class | public class MapperAttribute |
| Inheritance | MapperAttribute Object |
RoundtripHandler's
mapperAttributes property.
Usually this class is used in MXML.
MXML Syntax
Hide 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>
| Property | Defined 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 | ||
| name | property |
name:StringThe 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.
public function get name():String public function set name(value:String):void| scope | property |
scope:StringThe scope of this mapper, i.e. the type of graph items this mapper is bound to.
The default value is GraphMLConstants.SCOPE_NODE;.
public function get scope():String public function set scope(value:String):void| tag | property |
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.
public function get tag():String public function set tag(value:String):void| type | property |
type:StringThe type of this mapper's data.
The default value is GraphMLConstants.TYPE_STRING;.
public function get type():String public function set type(value:String):void