oracle.owb.foundation.type
Interface EnumerationDomain
- All Superinterfaces:
- Datatype, Datatyped, Domain, OWBNamedObject
- public interface EnumerationDomain
- extends Domain
EnumerationDomain interface defines a list of element values.
|
Method Summary |
java.lang.Object[] |
getAllElements()
Get all the elements |
java.lang.Object |
getElement(int n)
Returns the n-th element. |
int |
getIndex(java.lang.Object element)
Returns the index of a element. |
int |
size()
Returns the number of elements. |
| Methods inherited from interface oracle.owb.foundation.type.Domain |
isValid |
| Methods inherited from interface oracle.owb.foundation.OWBNamedObject |
delete, getBusinessName, getClassDefinition, getComponent, getDescription, getName, getUOID, isDeletable, isEditable, isRenamable, setBusinessName, setDescription, setName |
getAllElements
public java.lang.Object[] getAllElements()
- Get all the elements
- Returns:
- All the element values in form of array of general objects.
getElement
public java.lang.Object getElement(int n)
- Returns the n-th element.
- Parameters:
n - The index in the element list.- Returns:
- The element object in n-th position. It returns null if there
is no n-th element.
getIndex
public int getIndex(java.lang.Object element)
- Returns the index of a element.
- Parameters:
element - One element in the element list- Returns:
- The index of this element in the element list. It returns -1 if
the element is not in the element list.
size
public int size()
- Returns the number of elements.
- Returns:
- The count of elements