|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.input.AbstractInputHandler
y.io.graphml.graph2d.ReadNodeRealizerHandler
public class ReadNodeRealizerHandler
Input handler for NodeRealizer data attributes in GraphML.
| Constructor Summary | |
|---|---|
ReadNodeRealizerHandler()
|
|
| Method Summary | |
|---|---|
boolean |
acceptKey(Element keyDefinition)
|
void |
applyDefault(GraphMLParseContext context)
This method is invoked when no data tag is defined, and the default value should be applied. |
protected Object |
parseDataCore(GraphMLParseContext context,
Node node)
Abstract method callback that actually parses the data. |
protected void |
setValue(GraphMLParseContext context,
Object key,
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 ReadNodeRealizerHandler()
| Method Detail |
|---|
public boolean acceptKey(Element keyDefinition)
protected Object parseDataCore(GraphMLParseContext context,
Node node)
throws GraphMLParseException
AbstractInputHandler
parseDataCore in class AbstractInputHandlerGraphMLParseExceptioncontext - The context.node - The node that contains the data. This is either the GraphML data element or the
default element.
protected void setValue(GraphMLParseContext context,
Object key,
Object data)
AbstractInputHandler
setValue in class AbstractInputHandlercontext - 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 InputHandlerapplyDefault in class AbstractInputHandlercontext - 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 | ||||||||