Packagecom.yworks.graph.model
Classpublic class TagOwnerMapper
InheritanceTagOwnerMapper Inheritance Object
Implements IMapper

An IMapper implementation that uses the ITagOwner implementation in the lookup of IModelItems.

See also

com.yworks.support.ITagOwner


Public Methods
 MethodDefined By
  
lookupValue(key:Object):Object
Returns the tag of the IModelItem passed as the key using the ITagOwner found in the model item's lookup.
TagOwnerMapper
  
mapValue(key:Object, value:Object):void
Sets the tag of the IModelItem passed as the key to the specified value using the ITagOwner found in the model item's lookup.
TagOwnerMapper
  
unMapValue(key:Object):void
Deletes the tag of the IModelItem passed as the key using the ITagOwner found in the model item's lookup.
TagOwnerMapper
Method Detail
lookupValue()method
public function lookupValue(key:Object):Object

Returns the tag of the IModelItem passed as the key using the ITagOwner found in the model item's lookup.

Parameters

key:Object — An IModelItem that provides an ITagOwner through it's lookup.

Returns
Object — the tag of the ITagOwner provided by the key's lookup.
mapValue()method 
public function mapValue(key:Object, value:Object):void

Sets the tag of the IModelItem passed as the key to the specified value using the ITagOwner found in the model item's lookup.

Parameters

key:Object — An IModelItem that provides an ITagOwner through it's lookup.
 
value:Object — the value to be used as the item's tag.

unMapValue()method 
public function unMapValue(key:Object):void

Deletes the tag of the IModelItem passed as the key using the ITagOwner found in the model item's lookup.

Parameters

key:Object — An IModelItem that provides an ITagOwner through it's lookup.