| |
|
| java.lang.Object org.apache.cocoon.util.EnumerationFactory
All known Subclasses: org.apache.cocoon.acting.ValidatorActionResult,
EnumerationFactory | public class EnumerationFactory (Code) | | 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.
author: Christoph Grein version: CVS $Id: EnumerationFactory.java 433543 2006-08-22 06:22:54Z crossley $ |
EnumerationFactory | public EnumerationFactory(String image)(Code) | | Constructors with and without a string representation (image).
Make constructors private upon derivation.
Be careful: No check is made that the image string is unique!
Parameters: image - |
EnumerationFactory | public EnumerationFactory()(Code) | | |
getPos | public int getPos()(Code) | | |
getVal | public static EnumerationFactory getVal(int value)(Code) | | Access to the numeric representation.
Parameters: value - the numeric value |
lt | public boolean lt(EnumerationFactory e)(Code) | | Order relations Object.op (OtherObject) representing the relation
Object op OtherObject.
Parameters: e - the right operand |
|
|
|