yext.graphml.reader
Class AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory
java.lang.Object
yext.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory
public AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory(String name,
DataAcceptor dp,
int scopeType,
int contentType)
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 attributect - 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.