|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.EnumerationFactory
public class EnumerationFactory
A factory for the creation of enumeration types (missing in Java). The same operations are provided as for Ada, only representation specification is missing (which does not seem to make much sense in Java). Enumeration classes are to be derived from this class thereby making the constructors private to inhibit creation outside of the derived class.
Constructor Summary | |
---|---|
EnumerationFactory()
|
|
EnumerationFactory(String image)
Constructors with and without a string representation (image). |
Method Summary | |
---|---|
boolean |
ge(EnumerationFactory e)
|
static EnumerationFactory |
getFirst()
|
static EnumerationFactory |
getLast()
|
EnumerationFactory |
getNext()
|
static EnumerationFactory |
getObject(String image)
|
int |
getPos()
|
EnumerationFactory |
getPrev()
|
static EnumerationFactory |
getVal(int value)
Access to the numeric representation. |
boolean |
gt(EnumerationFactory e)
|
boolean |
le(EnumerationFactory e)
|
boolean |
lt(EnumerationFactory e)
Order relations Object.op (OtherObject) representing the relation Object op OtherObject. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnumerationFactory(String image)
image
- public EnumerationFactory()
Method Detail |
---|
public boolean lt(EnumerationFactory e)
e
- the right operandpublic boolean le(EnumerationFactory e)
public boolean gt(EnumerationFactory e)
public boolean ge(EnumerationFactory e)
public int getPos()
public static EnumerationFactory getVal(int value)
value
- the numeric valuepublic static EnumerationFactory getFirst()
public static EnumerationFactory getLast()
public EnumerationFactory getNext()
public EnumerationFactory getPrev()
public String toString()
toString
in class Object
public static EnumerationFactory getObject(String image)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |