org.graphdrawing.graphml.attr
Interface AttributeFactory

All Superinterfaces:
AttributeConstants
All Known Implementing Classes:
AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory, YGraphElementFactory

public interface AttributeFactory
extends AttributeConstants

This interface defines how attributes are store in the graph structure.


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
 
Method Summary
 void createAttribute(GraphMLParseContext context, String name, String value)
          This method is called when an attribute value is encountered.
 void defineAttribute(String name, int contentType, int scopeType)
          This method is called when an attribute definition is encountered.
 

Method Detail

defineAttribute

public void defineAttribute(String name,
                            int contentType,
                            int scopeType)
This method is called when an attribute definition is encountered.

Parameters:
name - the name of the attribute
contentType - one of AttributeConstants.TYPE_INT, AttributeConstants.TYPE_LONG, AttributeConstants.TYPE_FLOAT, AttributeConstants.TYPE_DOUBLE, AttributeConstants.TYPE_STRING, AttributeConstants.TYPE_BOOLEAN.

createAttribute

public void createAttribute(GraphMLParseContext context,
                            String name,
                            String value)
This method is called when an attribute value is encountered.

Parameters:
context - the context in which the parser is.
name - the name of the attribute.
value - the value of the attribute.


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