mapss.dif.attributes
Class AttributeType

java.lang.Object
  extended by mapss.dif.attributes.AttributeType
Direct Known Subclasses:
DIFAttributeType

public class AttributeType
extends java.lang.Object

Base class for enumeration of types of attributes that can be used in DIFGraphs. It won't be possible to create an instance of this object and it doesn't have any public fields. During the first access to any of its sub-classes, it initializes it's internal data structure. For more information about the usage of the methods refer to the package description.

Version:
$Id: AttributeType.java 362 2007-02-25 21:08:57Z plishker $
Author:
Fuat Keceli based on a file by Shahrooz Shahparnia
See Also:
DIFGraph

Constructor Summary
protected AttributeType(java.lang.String label)
           
 
Method Summary
static java.util.Collection elements()
          Return a collection of attribute types available in the classes which extend this class and which are referred in the code through their public fields at least once before using this method.
static int getNumLevels()
          Return the amount of attribute types available in the classes which extend this class and which are referred in the code through their public fields at least once before using this method.
 int intValue()
          Return the integer equivalent of the attribute type.
 java.lang.String toString()
          Return the string equivalent of the collection element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeType

protected AttributeType(java.lang.String label)
Method Detail

elements

public static final java.util.Collection elements()
Return a collection of attribute types available in the classes which extend this class and which are referred in the code through their public fields at least once before using this method.

Returns:
The type of attributes in the form of a Collection.

getNumLevels

public static int getNumLevels()
Return the amount of attribute types available in the classes which extend this class and which are referred in the code through their public fields at least once before using this method.

Returns:
The amount of attribute types in the form of an int.

intValue

public final int intValue()
Return the integer equivalent of the attribute type.

Returns:
An integer uniquely associated with a specific attribute type.

toString

public final java.lang.String toString()
Return the string equivalent of the collection element.

Overrides:
toString in class java.lang.Object
Returns:
Equivalent of the collection element in the form of a String.