| Package | com.yworks.io.graphml.realizer |
| Class | public class CompatResourceInputHandler |
| Inheritance | CompatResourceInputHandler Object |
| Implements | IInputHandler, Precedence |
The parsed resources are used by JavaImageNodeRealizerSerializer.
See also
| Method | Defined By | ||
|---|---|---|---|
acceptKey(keyElement:XML, scopeType:String):Boolean
Whether this data handler can parse a data section with the given key and scope type. | CompatResourceInputHandler | ||
applyDefault(context:GraphMLParseContext, defaultElement:XML, value:Object):void
This method is invoked when no data tag is defined, and the default value
should be applied. | CompatResourceInputHandler | ||
getPrecedence():int
Returns the precedence value of this instance. | CompatResourceInputHandler | ||
parseData(context:GraphMLParseContext, defaultValue:Boolean, dataElement:XML):void
This method is invoked each time a data element with matching key
is processed. | CompatResourceInputHandler | ||
parseDefaultData(context:GraphMLParseContext, keyElement:XML):Object
This method is invoked when the default value of the key element for a data tag is parsed. | CompatResourceInputHandler | ||
| acceptKey | () | method |
public function acceptKey(keyElement:XML, scopeType:String):BooleanWhether this data handler can parse a data section with the given key and scope type.
Parameters
keyElement:XML — the xml element which contains the key
| |
scopeType:String — the scope type that contains the data section
|
Boolean — true if this data can parse a data section with this key and scopeType.
|
| applyDefault | () | method |
public function applyDefault(context:GraphMLParseContext, defaultElement:XML, value:Object):voidThis method is invoked when no data tag is defined, and the default value should be applied.
Parameters
context:GraphMLParseContext — the current parse context.
| |
defaultElement:XML — he default xml element.
| |
value:Object — the parsed value of the default element
|
| getPrecedence | () | method |
public function getPrecedence():intReturns the precedence value of this instance.
Returnsint |
| parseData | () | method |
public function parseData(context:GraphMLParseContext, defaultValue:Boolean, dataElement:XML):voidThis method is invoked each time a data element with matching key is processed. Parse a data element of a graphml file.
Parameters
context:GraphMLParseContext — the parse context
| |
defaultValue:Boolean — true when the default value,
which is included in the key element, is processed,
false otherwise.
| |
dataElement:XML — The data element of the graphml file.
|
| parseDefaultData | () | method |
public function parseDefaultData(context:GraphMLParseContext, keyElement:XML):ObjectThis method is invoked when the default value of the key element for a data tag is parsed.
Parameters
context:GraphMLParseContext — The current parse context.
| |
keyElement:XML — The xml node that represents the key element
|
Object — The parsed value of the xml element, may be null.
|