|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.graphml.graph2d.PostprocessorInputHandler
public class PostprocessorInputHandler
This input handler parses end executes postprocessor instructions specified in GraphML files at graph scope.
Field Summary | |
---|---|
static String |
IGNORE_POSTPROCESSOR_ERRORS
|
Constructor Summary | |
---|---|
PostprocessorInputHandler()
|
Method Summary | |
---|---|
boolean |
acceptKey(NamedNodeMap map)
Accepts keys at graph scope whose attribute yfiles.type has the value postprocessors. |
void |
applyDefault(GraphMLParseContext context)
This method is invoked when no data tag is defined, and the default value should be applied. |
ParsePrecedence |
getPrecedence()
Gets the parse precedence that is associated with this instance. |
void |
parseData(GraphMLParseContext context,
Node node)
Parses and executes postprocessing instructions. |
protected void |
startModule(YModule module,
Graph2D graph,
GraphMLParseContext context)
Starts the given module with the given graph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String IGNORE_POSTPROCESSOR_ERRORS
Constructor Detail |
---|
public PostprocessorInputHandler()
Method Detail |
---|
public boolean acceptKey(NamedNodeMap map)
public void parseData(GraphMLParseContext context, Node node) throws GraphMLParseException
parseData
in interface InputHandler
GraphMLParseException
context
- The context in which the parser is.node
- The DOM node which is actually processed.protected void startModule(YModule module, Graph2D graph, GraphMLParseContext context) throws GraphMLParseException
parseData
for each parsed post-processor module.
GraphMLParseException
- if an exception is thrown by running the module.module
- The module to start.graph
- The graph to pass to the module.context
- The context in which the parser is.public ParsePrecedence getPrecedence()
InputHandler
getPrecedence
in interface InputHandler
public void applyDefault(GraphMLParseContext context)
InputHandler
applyDefault
in interface InputHandler
context
- the current parse context.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |