Packagecom.yworks.support
Interfacepublic interface ILookupDecorator
Implementors GraphMLContext

Interface that can be used to decorate the lookup result for a set of types.

See also

ILookup
IContextLookupChainLink


Public Methods
 MethodDefined By
  
addLookup(type:Class, lookup:IContextLookupChainLink):void
Adds a lookup chain element to the chain of lookups for a given type.
ILookupDecorator
  
canDecorate(type:Class):Boolean
Determines whether this instance can be used to decorate the lookup for a certain type.
ILookupDecorator
  
removeLookup(type:Class, lookup:IContextLookupChainLink):void
Removes a previously registered lookup chain element from the chain of lookups for a given type.
ILookupDecorator
Method Detail
addLookup()method
public function addLookup(type:Class, lookup:IContextLookupChainLink):void

Adds a lookup chain element to the chain of lookups for a given type.

The lookup chain is context specific. This method will not generally decorate the lookup of all instances of type type, but only those that stand in context of this instance. This method will only succeed if canDecorate yields true for type.

Parameters

type:Class — The type to decorate the lookup.
 
lookup:IContextLookupChainLink — The chain element to add to the lookup of the given type.

See also

canDecorate()method 
public function canDecorate(type:Class):Boolean

Determines whether this instance can be used to decorate the lookup for a certain type.

Parameters

type:Class — The type to decorate the lookup for.

Returns
Booleantrue if this instance can be used to decorate the lookup for the given type.
removeLookup()method 
public function removeLookup(type:Class, lookup:IContextLookupChainLink):void

Removes a previously registered lookup chain element from the chain of lookups for a given type.

Parameters

type:Class — The type to remove the decorator from.
 
lookup:IContextLookupChainLink — The chain element to remove from the lookup of the given type.

See also