|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectyext.graphml.reader.AbstractDOMInputHandler
yext.graphml.processor.PostprocessorInputHandler
This input handler parses end executes postprocessor instructions specified in GraphML files at graph scope.
| Field Summary |
| Fields inherited from interface org.graphdrawing.graphml.reader.dom.Precedence |
GRAPHML_PRECEDENCE |
| Constructor Summary | |
PostprocessorInputHandler()
|
|
| Method Summary | |
boolean |
acceptKey(NamedNodeMap map,
int scopeType)
Accepts keys at graph scope whose attribute yfiles.type has the value postprocessors. |
protected void |
applyDefault(DOMGraphMLParseContext context,
Graph graph,
Object nodeedge)
Does nothing yet. |
int |
getPrecedence()
Has precedence Precedence.GRAPHML_PRECEDENCE + 1. |
protected void |
invokePostProcessor(Graph graph,
Object postprocessor)
Invokes the given postprocessor on the given graph. |
protected void |
parseData(DOMGraphMLParseContext context,
Graph graph,
Object nodeedge,
boolean defaultMode,
Node domNode)
Parses and executes postprocessing instructions. |
| Methods inherited from class yext.graphml.reader.AbstractDOMInputHandler |
applyDefault, parseData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PostprocessorInputHandler()
| Method Detail |
public boolean acceptKey(NamedNodeMap map,
int scopeType)
acceptKey in interface DOMInputHandlermap - the attributes of the key tag.scopeType - the scope for which the key is defined.
One of
GraphMLConstants.SCOPE_ALL,
GraphMLConstants.SCOPE_EDGE,
GraphMLConstants.SCOPE_ENDPOINT,
GraphMLConstants.SCOPE_GRAPH,
GraphMLConstants.SCOPE_NODE,
GraphMLConstants.SCOPE_PORT,
GraphMLConstants.SCOPE_HYPEREDGE.public int getPrecedence()
Precedence.GRAPHML_PRECEDENCE + 1.
getPrecedence in interface Precedence
protected void parseData(DOMGraphMLParseContext context,
Graph graph,
Object nodeedge,
boolean defaultMode,
Node domNode)
parseData in class AbstractDOMInputHandlercontext - The context in which the parser is.graph - The current graph in the parse context.nodeedge - The current node/edge in the parse context.defaultMode - Whether default data or real data is read.domNode - The DOM node which is actually processed.
protected void invokePostProcessor(Graph graph,
Object postprocessor)
protected void applyDefault(DOMGraphMLParseContext context,
Graph graph,
Object nodeedge)
applyDefault in class AbstractDOMInputHandlercontext - The context in which the parser is.graph - The current graph in the parse context.nodeedge - The current node/edge in the parse context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||