|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.util.IlpDomain
public class IlpDomain
Container of domain values. Domains contain a list of values and a list of ranges. These are used to determine the validity of an attribute value.
Compatibility Note: In JViews 8.0, this class was moved from
ilog.cpl.service to ilog.cpl.util.
| Constructor Summary | |
|---|---|
IlpDomain(Class valueClass)
Constructs an empty IlpDomain. |
|
IlpDomain(Class valueClass,
List values,
List ranges)
Constructs an IlpDomain. |
|
| Method Summary | |
|---|---|
void |
addRange(IlpRange value)
Adds a range entry to the range list of the domain. |
void |
addRange(Object minValue,
Object maxValue)
Adds a range entry to the range list of the domain. |
void |
addValue(Object value)
Adds a value entry to the value list of the domain. |
boolean |
contains(Object value)
Tests whether a given value is included in the domain. |
boolean |
equals(Object other)
Tests IlpDomains for equality. |
List |
getRanges()
Gets the current range list of the domain. |
List |
getSelectionValues(Class type)
This method returns a representative list of possible values. |
List |
getValues()
Gets the current value list of the domain. |
Class |
getValueType()
Gets the current value type of the domain. |
int |
hashCode()
Support for hashmap. |
String |
toString()
Creates a string containing the domain. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlpDomain(Class valueClass)
IlpDomain.
valueClass - Java class of the values in the domain.
public IlpDomain(Class valueClass,
List values,
List ranges)
IlpDomain.
values - The list of domain values.ranges - The list of domain ranges.| Method Detail |
|---|
public List getRanges()
public List getValues()
public Class getValueType()
public void addValue(Object value)
value - The value to be set.public void addRange(IlpRange value)
value - The value to be set.
public void addRange(Object minValue,
Object maxValue)
minValue - Minimum range valuemaxValue - Maximum range valuepublic boolean contains(Object value)
value - The value to be tested.
true if the value is included in the domain.public List getSelectionValues(Class type)
type - Either Integer.class or Double.class.public boolean equals(Object other)
IlpDomains for equality.
equals in class Objectother - Object to test for equality with.
true if the domains are the same, false otherwise.public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||