Package | com.yworks.io.graphml.writer |
Class | public class GraphMLWriteContext |
Inheritance | GraphMLWriteContext GraphMLContext Object |
Method | Defined By | ||
---|---|---|---|
Creates a new instance. | GraphMLWriteContext | ||
addLookup(type:Class, lookup:IContextLookupChainLink):void
Adds a lookup chain element to the chain of lookups for a given type. | GraphMLContext | ||
canDecorate(type:Class):Boolean [override]
Determines whether this instance can be used to decorate the lookup for a certain type. | GraphMLWriteContext | ||
getContainer(clazz:Class):Object
Get the last container stored in the context that can be casted to the given class. | GraphMLContext | ||
getProperty(name:String):Object
Retrieve a context property. | GraphMLContext | ||
Gets the error handler for writing. | GraphMLWriteContext | ||
lookup(type:Class):Object [override] | GraphMLWriteContext | ||
lookupForItem(item:Object, type:Class):Object [override]
Tries to create or retrieve an implementation of the given type
for a given item. | GraphMLWriteContext | ||
popGraphMLElement():void
Remove the last container that was added to the container list. | GraphMLContext | ||
pushGraphMLElement(element:Object):void
Append the given container object to the list of container objects. | GraphMLContext | ||
removeLookup(type:Class, lookup:IContextLookupChainLink):void
Removes a previously registered lookup chain element from the chain of lookups for a given type. | GraphMLContext | ||
setLookup(c:Class, o:Object):void
Map the given class to the given object. | GraphMLContext | ||
setProperty(name:String, value:Object):void
Set a context property. | GraphMLContext |
GraphMLWriteContext | () | Constructor |
public function GraphMLWriteContext(writer:DirectGraphMLWriter)
Creates a new instance.
Parameterswriter:DirectGraphMLWriter — The writer to be used.
|
canDecorate | () | method |
override 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.
|
getWriteErrorHandler | () | method |
public function getWriteErrorHandler():IGraphMLWriteErrorHandler
Gets the error handler for writing.
ReturnsIGraphMLWriteErrorHandler — the error handler
|
See also
lookup | () | method |
override public function lookup(type:Class):Object
Parameters
type:Class |
Object |
lookupForItem | () | method |
override public function lookupForItem(item:Object, type:Class):Object
Tries to create or retrieve an implementation of the given type for a given item.
Parameters
item:Object — the item to lookup a type for
| |
type:Class — the type to look up
|
Object — an implementation or null
|