Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

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.type.Datatyped
getDatatype, getLength, getPrecision, getScale, isPrecisionOmitted, setDatatype, setLength, setPrecision, setPrecisionOmitted, setScale

 

Methods inherited from interface oracle.owb.foundation.OWBNamedObject
delete, getBusinessName, getClassDefinition, getComponent, getDescription, getName, getUOID, isDeletable, isEditable, isRenamable, setBusinessName, setDescription, setName

 

Methods inherited from interface oracle.owb.foundation.type.Datatype
getDatatypeSet, isAbstractDatatype, isDomain, isListDatatype, isScalarDatatype

 

Method Detail

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

Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.