|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.EnumerationType
public abstract class EnumerationType
Enumerated data type. To create an emumeration, define a subclass
of EnumerationType with a private constructor, and define as
many public final static
instances of the subclass,
within the subclass definition, as there are enumeration cases.
No other instances of an EnumerationType should ever be created,
and the only operations which should ever be performed on an
EnumerationType are assignment and equality testing.
Constructor Summary | |
---|---|
protected |
EnumerationType(java.lang.String value)
Instantiate an EnumerationType object. |
Method Summary | |
---|---|
boolean |
equals(EnumerationType enm)
Type equality test. |
java.lang.String |
toString()
Return enumeration value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected EnumerationType(java.lang.String value)
value
- Enumeration valueMethod Detail |
---|
public boolean equals(EnumerationType enm)
enm
- Enumerated type
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 |