com.yworks.yfiles.server.graphml.folding
Class NodeViewStateInputHandler

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

public class NodeViewStateInputHandler
extends AbstractInputHandlerProvider

Input handler that parses the NodeViewState instances of a folded graph structure.


Constructor Summary
NodeViewStateInputHandler()
           
 
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.
protected  java.lang.Object parseDataCore(GraphMLParseContext context, org.w3c.dom.Node xmlNode)
           
protected  void setValue(GraphMLParseContext context, java.lang.Object key, java.lang.Object data)
           
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.AbstractInputHandlerProvider
onQueryInputHandler
 
Methods inherited from class y.io.graphml.input.AbstractInputHandler
applyDefault, 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

NodeViewStateInputHandler

public NodeViewStateInputHandler()
Method Detail

parseDataCore

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

setValue

protected void setValue(GraphMLParseContext context,
                        java.lang.Object key,
                        java.lang.Object data)
                 throws GraphMLParseException
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 if the key element has scope KeyScope.NODE and name 'http://www.yworks.com/xml/yfiles-graphml/1.0/nodeviewstates'


Copyright © 2000-2013 yWorks GmbH. All rights reserved