|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Enumeration
An enumeration of values, one of which must match the value of an object for it to be considered valid.
Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.
Method Summary | |
---|---|
Annotation |
getAnnotation()
Returns the annotation associated with this enumeration. |
Annotation |
getAnnotation(int index)
Returns the annotation associated with the enumeration value at index. |
int |
getCount()
Returns the number of enumeration values. |
String |
getErrorCode()
Returns the error code for this enumeration. |
int |
getIndex(String value)
Returns the first index of value or -1 if it was not found. |
String |
getName(int index)
Returns the name associated with the enumeration value at index. |
String |
getValue(int index)
Returns the enumeration value at index. |
Methods inherited from interface biz.c24.io.api.data.Validator |
---|
validate |
Methods inherited from interface biz.c24.io.api.data.ModelComponent |
---|
getName |
Method Detail |
---|
Annotation getAnnotation()
int getIndex(String value)
value
or -1
if it was not found.
value
- The value to look for.
value
or -1
if it was not found.int getCount()
String getValue(int index)
index.
- Parameters:
index
- The index of the value to return.
- Returns:
- The value at
index
.
- Throws:
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= getCount()).
String getName(int index)
index.
- Parameters:
index
- The index of the name to return.
- Returns:
- The name at
index
.
- Throws:
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= getCount()).
Annotation getAnnotation(int index)
index.
- Parameters:
index
- The index of the annotation to return.
- Returns:
- The name at
index
.
- Throws:
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index >= getCount()).
String getErrorCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |