| Package | com.yworks.io.graphml.writer |
| Class | public class GraphMLWriteContext |
| Inheritance | GraphMLWriteContext GraphMLContext |
| 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
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
| GraphMLWriteContext | ||
|
lookupForItem(item:Object, type:Class):Object
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 |
public override function canDecorate(type:Class):BooleanDetermines whether this instance can be used to decorate the lookup for a certain type.
Parameterstype: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():IGraphMLWriteErrorHandlerGets the error handler for writing.
ReturnsIGraphMLWriteErrorHandler —
the error handler
|
See also
| lookup | () | method |
public override function lookup(type:Class):ObjectParameters
type:Class |
Object |
| lookupForItem | () | method |
public override function lookupForItem(item:Object, type:Class):ObjectTries to create or retrieve an implementation of the given type for a given item.
Parametersitem:Object — the item to lookup a type for
|
|
type:Class — the type to look up
|
Object — an implementation or null
|