edu.cmu.aura.service
Class Attribute

java.lang.Object
  |
  +--edu.cmu.aura.service.Attribute
Direct Known Subclasses:
DynamicAttribute

public class Attribute
extends java.lang.Object

Attribute represents a static service attribute. It is also the superclass of DynamicAttribute.


Constructor Summary
Attribute()
          Creates an Attribute.
Attribute(java.lang.String name)
          Create an Attribute with a specific name.
Attribute(java.lang.String name, java.lang.Object value)
          Create an Attribute with a specific name and value.
 
Method Summary
 java.lang.String getName()
          Gets the name of this Attribute.
 java.lang.Object getValue()
          Gets the value of this Attribute.
 void setName(java.lang.String name)
          Sets the name of this Attribute.
 void setValue(java.lang.Object value)
          Sets the value of this Attribute.
 java.lang.String toString()
          Converts this attribute to a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()
Creates an Attribute.


Attribute

public Attribute(java.lang.String name)
Create an Attribute with a specific name.

Parameters:
name - the name of this attribute

Attribute

public Attribute(java.lang.String name,
                 java.lang.Object value)
Create an Attribute with a specific name and value.

Parameters:
name - the name of this attribute
value - the value of this attribute
Method Detail

getName

public java.lang.String getName()
Gets the name of this Attribute.

Returns:
the name of this Attribute

setName

public void setName(java.lang.String name)
Sets the name of this Attribute.

Parameters:
name - the name of this Attribute

getValue

public java.lang.Object getValue()
Gets the value of this Attribute.

Returns:
the value of this Attribute

setValue

public void setValue(java.lang.Object value)
Sets the value of this Attribute.

Parameters:
value - the value of this Attribute

toString

public java.lang.String toString()
Converts this attribute to a String.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this Attribute