Class Attribute
java.lang.Object
|
+--Attribute
- All Implemented Interfaces:
- CarFace, java.lang.Cloneable, java.io.Serializable
- public class Attribute
- extends java.lang.Object
- implements java.io.Serializable, CarFace, java.lang.Cloneable
An Attribute consists of a name="value" pair. Both the 'name' and 'value' are strings.
An attribute usually forms an element of an AttributeTuple - see the Basic Terminology section of the User Manual for a description.
- See Also:
- Serialized Form
Fields inherited from interface CarFace |
BOOLEAN_LITERAL, COLLECTION, DOUBLE_LITERAL, EXTERNAL, grammarNames, INTERNAL, KEYPHRASE, LITERALcapacityIncrement, LITERALinitialCapacity, MARKUP, SERIAL, SESSION, STRING_LITERAL, STRINGVALUE_LITERAL |
Constructor Summary |
Attribute(java.lang.String aName,
java.lang.String aValue)
constructs an object with the provided string name and string value |
Method Summary |
java.lang.Object |
clone()
returns a clone (copy) of this object. |
java.lang.String |
getName()
returns the name of the attribute |
java.lang.String |
getValue()
returns the value of the attribute |
static void |
t(java.lang.String s)
Provides trace output of string if -dAttribute on command line of CAR run |
java.lang.String |
toString()
converts the object to a string. |
Methods inherited from class java.lang.Object |
, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Attribute
public Attribute(java.lang.String aName,
java.lang.String aValue)
- constructs an object with the provided string name and string value
t
public static final void t(java.lang.String s)
- Provides trace output of string if -dAttribute on command line of CAR run
clone
public java.lang.Object clone()
- returns a clone (copy) of this object.
- Overrides:
clone
in class java.lang.Object
getName
public java.lang.String getName()
- returns the name of the attribute
getValue
public java.lang.String getValue()
- returns the value of the attribute
toString
public java.lang.String toString()
- converts the object to a string.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string represention of the Attribute.
Submit bugs to Lindsey