| Package | com.yworks.io.graphml.reader |
| Class | public class GraphMLParser |
| Implements | IContextLookup |
| Property | Defined by | ||
|---|---|---|---|
| contextLookup : Dictionary
The context dictionary which is used for populating the
parse context lookup.
| GraphMLParser | ||
| initialContext : GraphMLParseContext
A custom parse context instance that will be used by the parse process.
| GraphMLParser | ||
| parseErrorHandler : IGraphMLParseErrorHandler
The error handler for parsing.
| GraphMLParser | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new instance.
| GraphMLParser | ||
|
addInputHandler(handler:IInputHandler):void
Adds an input handler to this instance
| GraphMLParser | ||
|
addXmlAttributesParser(attributesParser:IXmlAttributesParser):void
Adds a parser for xml attributes.
| GraphMLParser | ||
|
lookupForItem(item:Object, type:Class):Object
Tries to create or retrieve an implementation of the given type
for a given item.
| GraphMLParser | ||
|
parse(graphMLElement:XML):void
Parses a GraphML element
| GraphMLParser | ||
|
parseKeyElement(keyElement:XML):void
Parses a XML key element
| GraphMLParser | ||
|
registerDefaultDeserializer(deserializer:IDeserializer):void
Register a default deserializer for XML content.
| GraphMLParser | ||
|
registerDeserializer(deserializer:IDeserializer):void
Register a deserializer.
| GraphMLParser | ||
|
removeXmlAttributesParser(attributesParser:IXmlAttributesParser):void
Removes a parser for xml attributes.
| GraphMLParser | ||
|
setContextProperty(name:String, value:Object):void
Set a context property which is considered when creating a
GraphMLParseContext. | GraphMLParser | ||
|
setGraphItemFactory(factory:IGraphItemFactory):void
Sets the factory for graph element creation.
| GraphMLParser | ||
| Method | Defined by | ||
|---|---|---|---|
|
Gets the
GraphMLParseContext. | GraphMLParser | ||
|
parseDataNodes(dataElements:IMapper, handlerDef:HandlerDefinition):void
Parses the
data elements of a graphml element using a suitable handler. | GraphMLParser | ||
|
parseEdgeElement(edgeElement:XML):void
Parses a XML element representing an edge.
| GraphMLParser | ||
|
parseGraphElement(graphElement:XML):void
Parses a XML element representing a graph
| GraphMLParser | ||
|
parseNodeElement(nodeElement:XML):void
Parses a XML element representing a node.
| GraphMLParser | ||
|
parsePortElement(portElement:XML):void
| GraphMLParser | ||
| contextLookup | property |
contextLookup:Dictionary [read-write]The context dictionary which is used for populating the parse context lookup.
Implementation public function get contextLookup():Dictionary
public function set contextLookup(value:Dictionary):void
| initialContext | property |
initialContext:GraphMLParseContext [read-write]A custom parse context instance that will be used by the parse process.
If this property is not set, a default implementation that is just able to handle the basic graphml deserialization process is used
Implementation public function get initialContext():GraphMLParseContext
public function set initialContext(value:GraphMLParseContext):void
| parseErrorHandler | property |
parseErrorHandler:IGraphMLParseErrorHandler [read-write]The error handler for parsing.
Implementation public function get parseErrorHandler():IGraphMLParseErrorHandler
public function set parseErrorHandler(value:IGraphMLParseErrorHandler):void
| GraphMLParser | () | constructor |
public function GraphMLParser()Creates a new instance.
| addInputHandler | () | method |
public function addInputHandler(handler:IInputHandler):voidAdds an input handler to this instance
Parametershandler:IInputHandler — the input handler to add
|
| addXmlAttributesParser | () | method |
public function addXmlAttributesParser(attributesParser:IXmlAttributesParser):voidAdds a parser for xml attributes.
ParametersattributesParser:IXmlAttributesParser — The parser to add.
|
| createParseContext | () | method |
protected function createParseContext():GraphMLParseContext
Gets the GraphMLParseContext.
GraphMLParseContext —
The GraphMLParseContext.
|
See also
| lookupForItem | () | method |
public 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
|
| parse | () | method |
public function parse(graphMLElement:XML):voidParses a GraphML element
ParametersgraphMLElement:XML — The element to parse.
|
| parseDataNodes | () | method |
protected function parseDataNodes(dataElements:IMapper, handlerDef:HandlerDefinition):void
Parses the data elements of a graphml element using a suitable handler.
Called for all registered input handlers.
dataElements:IMapper |
|
handlerDef:HandlerDefinition |
| parseEdgeElement | () | method |
protected function parseEdgeElement(edgeElement:XML):voidParses a XML element representing an edge.
ParametersedgeElement:XML — The element to parse.
|
| parseGraphElement | () | method |
protected function parseGraphElement(graphElement:XML):voidParses a XML element representing a graph
ParametersgraphElement:XML — The element to parse.
|
| parseKeyElement | () | method |
public function parseKeyElement(keyElement:XML):voidParses a XML key element
ParameterskeyElement:XML — The element to parse.
|
| parseNodeElement | () | method |
protected function parseNodeElement(nodeElement:XML):voidParses a XML element representing a node.
ParametersnodeElement:XML — The element to parse.
|
| parsePortElement | () | method |
protected function parsePortElement(portElement:XML):voidParameters
portElement:XML |
| registerDefaultDeserializer | () | method |
public function registerDefaultDeserializer(deserializer:IDeserializer):voidRegister a default deserializer for XML content.
A default deserializer will only be used if no more specific deserializer for a given XML fragment exists.
Parametersdeserializer:IDeserializer — A deserializer instance that is to be used for graphml reading
|
| registerDeserializer | () | method |
public function registerDeserializer(deserializer:IDeserializer):voidRegister a deserializer.
Parametersdeserializer:IDeserializer — A deserializer instance that is to be used for graphml reading
|
| removeXmlAttributesParser | () | method |
public function removeXmlAttributesParser(attributesParser:IXmlAttributesParser):voidRemoves a parser for xml attributes.
ParametersattributesParser:IXmlAttributesParser — The parser to remove.
|
| setContextProperty | () | method |
public function setContextProperty(name:String, value:Object):void
Set a context property which is considered when creating a GraphMLParseContext.
name:String — The name of the property
|
|
value:Object — the property
|
| setGraphItemFactory | () | method |
public function setGraphItemFactory(factory:IGraphItemFactory):voidSets the factory for graph element creation.
Parametersfactory:IGraphItemFactory |
See also