Package org.apache.xmlbeans
Class StringEnumAbstractBase.Table
- java.lang.Object
-
- org.apache.xmlbeans.StringEnumAbstractBase.Table
-
- Enclosing class:
- StringEnumAbstractBase
public static final class StringEnumAbstractBase.Table extends java.lang.ObjectUsed to manage singleton instances of enumerations. Each subclass of StringEnumAbstractBase has an instance of a table to hold the singleton instances.
-
-
Constructor Summary
Constructors Constructor Description Table(StringEnumAbstractBase[] array)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringEnumAbstractBaseforInt(int i)Returns the singleton for an int code, or null if none.StringEnumAbstractBaseforString(java.lang.String s)Returns the singleton for aString, or null if none.intlastInt()Returns the last valid int code (the first is 1; zero is not used).
-
-
-
Constructor Detail
-
Table
public Table(StringEnumAbstractBase[] array)
-
-
Method Detail
-
forString
public StringEnumAbstractBase forString(java.lang.String s)
Returns the singleton for aString, or null if none.
-
forInt
public StringEnumAbstractBase forInt(int i)
Returns the singleton for an int code, or null if none.
-
lastInt
public int lastInt()
Returns the last valid int code (the first is 1; zero is not used).
-
-