com.cinnabarsystems.clm
Class Attribute

java.lang.Object
  extended by com.cinnabarsystems.clm.Attribute
Direct Known Subclasses:
IntegerAttribute, StringAttribute

public abstract class Attribute
extends Object

Abstract class describing an attribute of a LicenseElement. An Attribute is a name/value pair, where the name is a String, and the value is typed according to the particular subclass of Attribute in question.


Method Summary
 String getName()
          Get the name of this Attribute
abstract  Object getValue()
          Get the value of this Attribute.
 String toString()
          Format the value of this Attribute for display.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public String getName()
Get the name of this Attribute

Returns:
the name of this Attribute

getValue

public abstract Object getValue()
Get the value of this Attribute. The type of the returned object will vary according to the subclass of Attribute in question.

Returns:
the value of this Attribute

toString

public String toString()
Format the value of this Attribute for display.

Overrides:
toString in class Object
Returns:
a String describing the value of this Attribute