|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.actions.AttributeDefinition
public class AttributeDefinition
Field Summary | |
---|---|
int |
NO_ATTRIBUTE
|
Constructor Summary | |
---|---|
AttributeDefinition(int code,
java.lang.String label)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
Compares this object to another. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. |
int |
getCode()
|
java.lang.String |
getLabel()
|
int |
hashCode()
Overrides Object hashCode method. |
java.lang.String |
toString()
Returns a string representing the current state of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int NO_ATTRIBUTE
Constructor Detail |
---|
public AttributeDefinition(int code, java.lang.String label)
Method Detail |
---|
public java.lang.String getLabel()
public int getCode()
public int hashCode()
This hash code must be consistent with the equals
method.
defined by subclasses.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
compareTo()
.
equals
in class java.lang.Object
obj
- the object that this instance is to be compared to.
public int compareTo(java.lang.Object obj)
equals()
.
compareTo
in interface java.lang.Comparable
obj
- the object that this instance is to be compared to.
java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this instance.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |