yext.graphml.reader
Class AttrDataAcceptorInputHandler

java.lang.Object
  extended byorg.graphdrawing.graphml.attr.AttributeInputHandler
      extended byyext.graphml.reader.AttrDataAcceptorInputHandler
All Implemented Interfaces:
DOMInputHandler

public class AttrDataAcceptorInputHandler
extends AttributeInputHandler

Implementation of AttributeInputHandler which stores the attributes with the help of DataAcceptor.


Nested Class Summary
static class AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory
          Helper which implements the AttributeProvider interface using a DataProvider.
 
Field Summary
 
Fields inherited from class org.graphdrawing.graphml.attr.AttributeInputHandler
attributeFactory, defaultValue, name, scope
 
Constructor Summary
AttrDataAcceptorInputHandler(String name, DataAcceptor da, int scopeType, int contentType)
          Creates new instance.
AttrDataAcceptorInputHandler(String name, EdgeMap edgeMap, int contentType)
          Creates new instance for attributes defined for edges.
AttrDataAcceptorInputHandler(String name, NodeMap nodeMap, int contentType)
          Creates new instance for attributes defined for nodes.
 
Methods inherited from class org.graphdrawing.graphml.attr.AttributeInputHandler
acceptKey, applyDefault, parseData, setAttributeFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttrDataAcceptorInputHandler

public AttrDataAcceptorInputHandler(String name,
                                    DataAcceptor da,
                                    int scopeType,
                                    int contentType)
Creates new instance.

Parameters:
name - the name of the attribute.
da - the data acceptor which contains attribute data.
scopeType - defines for which type of graph elements the atttributes are defined.
contentType - defines the type of the attribute (int, double, String,..).

AttrDataAcceptorInputHandler

public AttrDataAcceptorInputHandler(String name,
                                    EdgeMap edgeMap,
                                    int contentType)
Creates new instance for attributes defined for edges.

Parameters:
name - the name of the attribute.
edgeMap - the EdgeMap which contains attribute data.
contentType - defines the type of the attribute (int, doubel, String,..).

AttrDataAcceptorInputHandler

public AttrDataAcceptorInputHandler(String name,
                                    NodeMap nodeMap,
                                    int contentType)
Creates new instance for attributes defined for nodes.

Parameters:
name - the name of the attribute.
nodeMap - the NodeMap which contains attribute data.
contentType - defines the type of the attribute (int, doubel, String,..).


Copyright ©2000-2009, yWorks GmbH. All rights reserved.