|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.graphml.input.AbstractInputHandler com.yworks.yfiles.server.graphml.flexio.AbstractInputHandlerProvider com.yworks.yfiles.server.graphml.flexio.SharedDataInputHandler
Input handler that enables parsing of shared references.
Constructor Summary | |
SharedDataInputHandler()
|
Method Summary | |
boolean |
acceptKey(org.w3c.dom.Element keyDefinition)
This method is called by AbstractInputHandlerProvider.onQueryInputHandler(y.io.graphml.input.QueryInputHandlersEvent) and shall
decide if the given keyDefinition shall be accepted so that this input handler gets provided for
the event. |
DeserializationHandler |
getDeserializer()
Returns a deserializer that can parse xml elements which reference shared elements. |
ParsePrecedence |
getPrecedence()
This input handler shall be used before any other one. |
protected java.lang.Object |
parseDataCore(GraphMLParseContext context,
org.w3c.dom.Node node)
|
protected void |
setValue(GraphMLParseContext context,
java.lang.Object key,
java.lang.Object data)
This method does nothing |
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.AbstractInputHandlerProvider |
onQueryInputHandler |
Methods inherited from class y.io.graphml.input.AbstractInputHandler |
applyDefault, getDefaultValue, 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 SharedDataInputHandler()
Method Detail |
public DeserializationHandler getDeserializer()
protected java.lang.Object parseDataCore(GraphMLParseContext context, org.w3c.dom.Node node) throws GraphMLParseException
GraphMLParseException
protected void setValue(GraphMLParseContext context, java.lang.Object key, java.lang.Object data) throws GraphMLParseException
context
- The context.key
- The key.data
- The data.
GraphMLParseException
public boolean acceptKey(org.w3c.dom.Element keyDefinition)
AbstractInputHandlerProvider.onQueryInputHandler(y.io.graphml.input.QueryInputHandlersEvent)
and shall
decide if the given keyDefinition
shall be accepted so that this input handler gets provided for
the event.
acceptKey
in class AbstractInputHandlerProvider
keyDefinition
- The key definition to check.
true
for key elements with name 'sharedData', type KeyType.COMPLEX
and
scope KeyScope.GRAPH
public ParsePrecedence getPrecedence()
ParsePrecedence.FIRST
ParsePrecedence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |