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()
Create an attribute. |
Attribute(java.lang.String name,
java.lang.Object value)
Create an attribute with a specific name and value. |
|
Method Summary |
java.lang.String |
getName()
Get the name of this attribute. |
java.lang.Object |
getValue()
Get the value of this attribute. |
void |
setValue(java.lang.Object value)
Set the value of this attribute. |
java.lang.String |
toString()
Convert this attribute to a String. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Attribute
public Attribute()
- Create an 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.
getName
public java.lang.String getName()
- Get the name of this attribute.
- Returns:
- the name of this attribute.
getValue
public java.lang.Object getValue()
- Get the value of this attribute.
- Returns:
- the value of this attribute.
setValue
public void setValue(java.lang.Object value)
- Set the value of this attribute.
- Parameters:
value - the value of this attribute.
toString
public java.lang.String toString()
- Convert this attribute to a String.
- Overrides:
toString in class java.lang.Object
- Returns:
- a String representation of this Attribute.