com.yworks.yfiles.server.graphml.flexio
Class SharedDataInputHandler

java.lang.Object
  extended byy.io.graphml.input.AbstractInputHandler
      extended bycom.yworks.yfiles.server.graphml.flexio.AbstractInputHandlerProvider
          extended bycom.yworks.yfiles.server.graphml.flexio.SharedDataInputHandler
All Implemented Interfaces:
java.util.EventListener, InputHandler, InputHandlerProvider

public class SharedDataInputHandler
extends AbstractInputHandlerProvider

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

SharedDataInputHandler

public SharedDataInputHandler()
Method Detail

getDeserializer

public DeserializationHandler getDeserializer()
Returns a deserializer that can parse xml elements which reference shared elements.


parseDataCore

protected java.lang.Object parseDataCore(GraphMLParseContext context,
                                         org.w3c.dom.Node node)
                                  throws GraphMLParseException
Throws:
GraphMLParseException

setValue

protected void setValue(GraphMLParseContext context,
                        java.lang.Object key,
                        java.lang.Object data)
                 throws GraphMLParseException
This method does nothing

Parameters:
context - The context.
key - The key.
data - The data.
Throws:
GraphMLParseException

acceptKey

public 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.

Specified by:
acceptKey in class AbstractInputHandlerProvider
Parameters:
keyDefinition - The key definition to check.
Returns:
true for key elements with name 'sharedData', type KeyType.COMPLEX and scope KeyScope.GRAPH

getPrecedence

public ParsePrecedence getPrecedence()
This input handler shall be used before any other one.

Returns:
ParsePrecedence.FIRST
See Also:
ParsePrecedence


Copyright © 2000-2013 yWorks GmbH. All rights reserved