Package | com.yworks.support |
Interface | public interface ILookupDecorator |
Implementors | GraphMLContext |
See also
Method | Defined 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 |
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.
|
Boolean — true 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