|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.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 java.lang.String |
IGNORE_POSTPROCESSOR_ERRORS
Deprecated. |
| Constructor Summary | |
|---|---|
PostprocessorInputHandler()
Deprecated. |
|
| Method Summary | |
|---|---|
boolean |
acceptKey(org.w3c.dom.NamedNodeMap map)
Deprecated. Accepts keys at graph scope whose attribute yfiles.type has the value postprocessors. |
void |
applyDefault(GraphMLParseContext context)
Deprecated. This method is invoked when no data tag is defined, and the default value should be applied. |
ParsePrecedence |
getPrecedence()
Deprecated. Gets the parse precedence that is associated with this instance. |
protected YModule |
newModule(java.lang.String moduleName,
GraphMLParseContext context)
Deprecated. Creates a YModule instance that is used as a post-processor. |
void |
parseData(GraphMLParseContext context,
org.w3c.dom.Node node)
Deprecated. Parses and executes postprocessing instructions. |
protected void |
startModule(YModule module,
Graph2D graph,
GraphMLParseContext context)
Deprecated. 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 java.lang.String IGNORE_POSTPROCESSOR_ERRORS
| Constructor Detail |
|---|
public PostprocessorInputHandler()
| Method Detail |
|---|
public boolean acceptKey(org.w3c.dom.NamedNodeMap map)
public void parseData(GraphMLParseContext context,
org.w3c.dom.Node node)
throws GraphMLParseException
parseData in interface InputHandlercontext - The context in which the parser is.node - The DOM node which is actually processed.
GraphMLParseException
protected YModule newModule(java.lang.String moduleName,
GraphMLParseContext context)
throws java.lang.Exception
YModule instance that is used as a post-processor.
The default implementation assumes a public, non-argument constructor in the requested module class.
Note: To prevent obfuscation from breaking post-processing support, an explicit name mapping should be specified for class names of modules that are used as post-processors.
moduleName - the external name identifing the module to instantiate.
java.lang.ExceptionNameMapper,
PostprocessorOutputHandler.encodeType(YModule, GraphMLWriteContext)
protected void startModule(YModule module,
Graph2D graph,
GraphMLParseContext context)
throws GraphMLParseException
parseData
for each parsed post-processor module.
module - The module to start.graph - The graph to pass to the module.context - The context in which the parser is.
GraphMLParseException - if an exception is thrown by running the module.public ParsePrecedence getPrecedence()
InputHandler
getPrecedence in interface InputHandlerpublic void applyDefault(GraphMLParseContext context)
InputHandler
applyDefault in interface InputHandlercontext - the current parse context.
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||