oracle.owb.foundation.type
Class DomainManager
java.lang.Object
|
+--oracle.owb.foundation.type.DomainManager
- public class DomainManager
- extends java.lang.Object
DomainManager class provides methods to create domains.
|
Field Summary |
protected static DomainManager |
m_dm
The single instance for DomainManager. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_dm
protected static DomainManager m_dm
- The single instance for DomainManager.
DomainManager
public DomainManager()
getInstance
public static DomainManager getInstance()
- Obtain the single instance for DomainManager.
- Returns:
- The single instance for DomainManager.
createRangeDomain
public RangeDomain createRangeDomain(Datatype datatype,
java.util.Comparator comparator,
java.lang.Object minValue,
java.lang.Object maxValue)
- Create a range domain.
- Parameters:
datatype - - The datatype of all elemenets in the range.comparator - - The comparator for elements in this range.minValue - - The lower bound of this range (inclusive).maxValue - - The upper bound of this range (inclusive).- Returns:
- An instance of RangeDomain capturing all the input parameters.
createEnumerationDomain
public EnumerationDomain createEnumerationDomain(Datatype datatype,
java.util.Comparator comparator,
java.lang.Object[] elements)
- Create an enumeration Domain.
- Parameters:
datatype - - The datatype of all elemenets in the domain.comparator - - The comparator for elements in this domain.elements - - An array of all elements in this domain.- Returns:
- An instance of EnumerationDomain capturing all input information.