|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--theseus.api.Attr
An attribute is a name/type pair. Possible types are described in the AttrType class.
| Constructor Summary | |
Attr(java.lang.String a_name,
int a_type)
Create attribute using name and numeric type. |
|
Attr(java.lang.String a_name,
java.lang.String a_type)
Create attribute using name and type (ie, "name", "char"). |
|
| Method Summary | |
java.lang.Object |
clone()
Deep copies the attribute. |
boolean |
equals(java.lang.Object a_obj)
Checks if two attributes are equal. |
java.lang.String |
getName()
Gets the name of the attribute |
int |
getType()
Gets the numeric name of the attribute |
java.lang.String |
toString()
Gets string form of attribute. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Attr(java.lang.String a_name,
java.lang.String a_type)
throws theseus.api.InvalidAttrTypeException
public Attr(java.lang.String a_name,
int a_type)
throws theseus.api.InvalidAttrTypeException
| Method Detail |
public java.lang.String getName()
public int getType()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object a_obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||