|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.udr.hci.ConstraintObject
com.highdeal.udr.hci.RangeConstraint
public class RangeConstraint
The RangeConstraint implements
the constraint defined by a range min and a range max.
Integer, long, big decimal, big integer and date entities
can be constrained by a range constraint.
The standard way to create a RangeConstraint instance is to use the
method ConstraintObject.createConstraintFromString(String)
with a string representation of a range constraint.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.highdeal.udr.hci.ConstraintObject |
|---|
ConstraintObject.MetaChar |
| Field Summary | |
|---|---|
static int |
TYPE_EXCLUSIVE
the exclusive type for range constraint. |
static int |
TYPE_INCLUSIVE
the inclusive type for range constraint. |
| Fields inherited from class com.highdeal.udr.hci.ConstraintObject |
|---|
compatibilityTable, NO_SUBTYPE, separator, separatorChar, STRING_TYPE_BIG_INTEGER, STRING_TYPE_BOOLEAN, STRING_TYPE_DATE, STRING_TYPE_DECIMAL, STRING_TYPE_ENUMERATED_LIST, STRING_TYPE_FORMAT, STRING_TYPE_INTEGER, STRING_TYPE_LONG, STRING_TYPE_RANGE, STRING_TYPE_STRING, TYPE_BIG_INTEGER, TYPE_BOOLEAN, TYPE_DATE, TYPE_DECIMAL, TYPE_ENUMERATED_LIST, TYPE_FORMAT, TYPE_INTEGER, TYPE_LONG, TYPE_RANGE, TYPE_STRING |
| Constructor Summary | |
|---|---|
RangeConstraint()
Builds a range constraint. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getConstraintType()
Returns the constraint type of this constraint. |
java.lang.String |
getInitializationString()
Returns the initialization string. |
java.lang.Object |
getRangeMax()
Returns the range max of range constraint. |
int |
getRangeMaxType()
Returns the range max type of range constraint. |
java.lang.Object |
getRangeMin()
Returns the range min of range constraint. |
int |
getRangeMinType()
Returns the range min type of range constraint. |
int |
hashCode()
|
boolean |
isBigIntegerConstraint()
Returns big integer status of the range constraint. |
boolean |
isBooleanConstraint()
Returns boolean status of the range constraint. |
boolean |
isDateConstraint()
Returns date status of the range constraint. |
boolean |
isDecimalConstraint()
Returns decimal status of the range constraint. |
boolean |
isDurationConstraint()
Returns duration status of the range constraint. |
boolean |
isIntegerConstraint()
Returns integer status of the range constraint. |
boolean |
isLongConstraint()
Returns long status of the range constraint. |
boolean |
isStringConstraint()
Returns string status of the range constraint. |
boolean |
isValidValue(java.lang.Object value)
Tests if the value checks the range constraint. |
void |
setInitializationString(java.lang.String initializationString)
Sets the initialization string. |
void |
setRangeMax(java.lang.Object rangeMax)
Sets the range max of range constraint. |
void |
setRangeMaxType(int rangeMaxType)
Sets the range max type of range constraint. |
void |
setRangeMin(java.lang.Object rangeMin)
Sets the range min of range constraint. |
void |
setRangeMinType(int rangeMinType)
Sets the range min type of range constraint. |
java.lang.String |
toString()
Returns string representationthat represents the range constraint. |
| Methods inherited from class com.highdeal.udr.hci.ConstraintObject |
|---|
createConstraintFromString, escapeMetaChar, getAllowedConstraintTypes, getConstraintSubType, parseConstraintSubType, unescapeMetaChar, unescapeSeparatorChar |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_INCLUSIVE
public static final int TYPE_EXCLUSIVE
| Constructor Detail |
|---|
public RangeConstraint()
| Method Detail |
|---|
public java.lang.String getInitializationString()
getInitializationString in class ConstraintObjectpublic void setInitializationString(java.lang.String initializationString)
initializationString - the initialization string.public int getConstraintType()
getConstraintType in class ConstraintObjectConstraintObject.TYPE_RANGEpublic java.lang.Object getRangeMin()
public void setRangeMin(java.lang.Object rangeMin)
rangeMin - the range Min.public int getRangeMinType()
TYPE_INCLUSIVE,
TYPE_EXCLUSIVEpublic void setRangeMinType(int rangeMinType)
A range min specifies a range type . The allowed types are :
rangeMinType - the range min type.public java.lang.Object getRangeMax()
public void setRangeMax(java.lang.Object rangeMax)
rangeMax - the range Max.public int getRangeMaxType()
TYPE_INCLUSIVE,
TYPE_EXCLUSIVEpublic void setRangeMaxType(int rangeMaxType)
A range max specifies a range type . The allowed types are :
rangeMaxType - the range max type.public boolean isValidValue(java.lang.Object value)
isValidValue in class ConstraintObjecttrue if the value checks the range constraint.
false otherwise.public java.lang.String toString()
string representationthat represents the range constraint.
toString in class ConstraintObjectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isIntegerConstraint()
isIntegerConstraint in class ConstraintObjectpublic boolean isLongConstraint()
isLongConstraint in class ConstraintObjectpublic boolean isBigIntegerConstraint()
isBigIntegerConstraint in class ConstraintObjectpublic boolean isDecimalConstraint()
isDecimalConstraint in class ConstraintObjectpublic boolean isDateConstraint()
isDateConstraint in class ConstraintObjectpublic boolean isStringConstraint()
isStringConstraint in class ConstraintObjectpublic boolean isDurationConstraint()
public boolean isBooleanConstraint()
isBooleanConstraint in class ConstraintObject
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||