yext.graphml.reader
Class AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory

java.lang.Object
  extended byyext.graphml.reader.AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory
All Implemented Interfaces:
AttributeConstants, AttributeFactory
Enclosing class:
AttrDataAcceptorInputHandler

public static class AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory
extends Object
implements AttributeFactory

Helper which implements the AttributeProvider interface using a DataProvider.


Field Summary
 
Fields inherited from interface org.graphdrawing.graphml.attr.AttributeConstants
TYPE_BOOLEAN, TYPE_COMPLEX, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_STRING
 
Constructor Summary
AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory(String name, DataAcceptor dp, int scopeType, int contentType)
           
 
Method Summary
 void createAttribute(GraphMLParseContext context, String name, String value)
          This method is called when an attribute value is encountered.
 void defineAttribute(String s, int ct, int st)
          This method is called when an attribute definition is encountered.
 Object getKey(GraphMLParseContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory

public AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory(String name,
                                                                 DataAcceptor dp,
                                                                 int scopeType,
                                                                 int contentType)
Method Detail

defineAttribute

public void defineAttribute(String s,
                            int ct,
                            int st)
Description copied from interface: AttributeFactory
This method is called when an attribute definition is encountered.

Specified by:
defineAttribute in interface AttributeFactory
Parameters:
s - the name of the attribute
ct - one of AttributeConstants.TYPE_INT, AttributeConstants.TYPE_LONG, AttributeConstants.TYPE_FLOAT, AttributeConstants.TYPE_DOUBLE, AttributeConstants.TYPE_STRING, AttributeConstants.TYPE_BOOLEAN.

getKey

public Object getKey(GraphMLParseContext context)

createAttribute

public void createAttribute(GraphMLParseContext context,
                            String name,
                            String value)
Description copied from interface: AttributeFactory
This method is called when an attribute value is encountered.

Specified by:
createAttribute in interface AttributeFactory
Parameters:
context - the context in which the parser is.
name - the name of the attribute.
value - the value of the attribute.


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