Package org.apache.xmlbeans
Class StringEnumAbstractBase
java.lang.Object
org.apache.xmlbeans.StringEnumAbstractBase
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
StringEnumValue
public class StringEnumAbstractBase extends Object implements Serializable
The base class for code-generated string enumeration value classes.
Subclasses are intended to be final types with a finite set of
singleton instances. Each instance has a string value, which
it returns via toString(), and an int value for the purpose
of switching in case statements, returned via intValue().
Each subclass manages an instance of StringEnumAbstractBase.Table,
which holds all the singleton instances for the subclass. A Table
can return a singleton instance given a String or an integer code.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringEnumAbstractBase.TableUsed to manage singleton instances of enumerations. -
Constructor Summary
Constructors Modifier Constructor Description protectedStringEnumAbstractBase(String s, int i)Singleton instances should only be created by subclasses. -
Method Summary
-
Constructor Details
-
StringEnumAbstractBase
Singleton instances should only be created by subclasses.
-
-
Method Details