Packagecom.yworks.support
Classpublic class LookupChain
InheritanceLookupChain Inheritance flash.events.EventDispatcher
Implements IContextLookup

An implementation of a chain of IContextLookupChainLinks.



Public Methods
 MethodDefined By
  
Adds the given link to the end of the chain.
LookupChain
  
lookupForItem(item:Object, type:Class):Object
Performs the actual lookup operation.
LookupChain
  
Removes the link that has previously been added to this instance from this chain.
LookupChain
Method Detail
add()method
public function add(link:IContextLookupChainLink):void

Adds the given link to the end of the chain.

Parameters

link:IContextLookupChainLink — The link to add.

See also

lookupForItem()method 
public function lookupForItem(item:Object, type:Class):Object

Performs the actual lookup operation.

This call will traverse the chain to satisfy the query.

Parameters

item:Object — The item to use as the context.
 
type:Class — The type of the query.

Returns
Object — The result of the query.
remove()method 
public function remove(link:IContextLookupChainLink):void

Removes the link that has previously been added to this instance from this chain.

Parameters

link:IContextLookupChainLink — The link to remove.