|
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.input.AbstractInputHandler y.io.graphml.graph2d.ReadEdgeRealizerHandler
public class ReadEdgeRealizerHandler
Input handler for EdgeRealizer data attributes in GraphML.
Constructor Summary | |
---|---|
ReadEdgeRealizerHandler()
|
Method Summary | |
---|---|
boolean |
acceptKey(org.w3c.dom.Element keyDefinition)
|
void |
applyDefault(GraphMLParseContext context)
This method is invoked when no data tag is defined, and the default value should be applied. |
protected java.lang.Object |
parseDataCore(GraphMLParseContext context,
org.w3c.dom.Node node)
Abstract method callback that actually parses the data. |
protected void |
setValue(GraphMLParseContext context,
java.lang.Object key,
java.lang.Object data)
Abstract method callback that actually stores the value with the keys. |
Methods inherited from class y.io.graphml.input.AbstractInputHandler |
---|
getDefaultValue, getPrecedence, getValidScopes, initializeFromKeyDefinition, isDefaultExists, isParseDefaultValue, parseData, setDefaultExists, setDefaultValue, setParseDefaultValue, setPrecedence, setValidScopes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadEdgeRealizerHandler()
Method Detail |
---|
public boolean acceptKey(org.w3c.dom.Element keyDefinition)
protected java.lang.Object parseDataCore(GraphMLParseContext context, org.w3c.dom.Node node) throws GraphMLParseException
AbstractInputHandler
parseDataCore
in class AbstractInputHandler
context
- The context.node
- The node that contains the data. This is either the GraphML data
element or the
default
element.
GraphMLParseException
protected void setValue(GraphMLParseContext context, java.lang.Object key, java.lang.Object data)
AbstractInputHandler
setValue
in class AbstractInputHandler
context
- The context.key
- The key.data
- The data.public void applyDefault(GraphMLParseContext context)
AbstractInputHandler
This implementation delegates to
AbstractInputHandler.setValue(GraphMLParseContext, Object, Object)
.
if AbstractInputHandler.isDefaultExists()
applyDefault
in interface InputHandler
applyDefault
in class AbstractInputHandler
context
- the current parse context.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |