|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.util.AbstractMap
java.util.HashMap
oracle.rules.sdk.editor.datamodel.ModelComponent
oracle.rules.sdk.editor.datamodel.Constraint
There are three types of constraints: enumeration, range and regular expression.
| Field Summary | |
static java.lang.String |
ENUM_VALUE_KEY |
static java.lang.String |
ENUMERATION |
static java.lang.String |
PROP_ENUM_VALUE_TABLE |
static java.lang.String |
PROP_FORM |
static java.lang.String |
PROP_LOWER_BOUND |
static java.lang.String |
PROP_REGEXP |
static java.lang.String |
PROP_UPPER_BOUND |
static java.lang.String |
RANGE |
static java.lang.String |
REGULAR_EXPRESSION |
| Fields inherited from class oracle.rules.sdk.editor.datamodel.ModelComponent |
PROP_ALIAS, PROP_ID, PROP_NAME, PROP_PROPERTIES, PROP_VISIBLE |
| Method Summary | |
java.lang.String |
getDisplayString()Get the String that describes the constraint. |
java.util.List |
getEnumValues()A convenient API to get enumeration values as a list of Strings |
EnumValueTable |
getEnumValueTable()Get the list of possible values. |
java.lang.String |
getForm()Get the form of the constraint |
java.lang.String[] |
getFormOptions()Get the list of possible form values |
int |
getFormSelected() |
double |
getLowerBound()Get lower bound. |
java.lang.String |
getRegExp()Get the regular expression to be matched. |
double |
getUpperBound()Get upper bound. |
java.lang.Object |
put(java.lang.Object key, java.lang.Object value)Overwrite hashtable put method. |
void |
setEnumValues(java.util.List possibleVals)A convenient API to set enumeration values. |
void |
setForm(java.lang.String form)Set form of the constraint. |
void |
setLowerBound(double lo)Set lower bound. |
void |
setName(java.lang.String name)Set the name of the element. |
void |
setRegExp(java.lang.String regexp)Set the regular expression to be matched Refer to java.util.regex.Pattern for the specification of regular expression. |
void |
setUpperBound(double up)Set upper bound. |
void |
validate()validate consistency of the constraint definition |
void |
validate(java.lang.String val)Given a String that should conform to the constraint, the method validates the constraint against the string. |
| Methods inherited from class oracle.rules.sdk.editor.datamodel.ModelComponent |
get, getAlias, getDataModel, getID, getName, getParent, getProperties, getVisible, setAlias, setVisible |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
| Field Detail |
public static final java.lang.String ENUMERATION
public static final java.lang.String RANGE
public static final java.lang.String REGULAR_EXPRESSION
public static final java.lang.String ENUM_VALUE_KEY
public static final java.lang.String PROP_FORM
public static final java.lang.String PROP_ENUM_VALUE_TABLE
public static final java.lang.String PROP_LOWER_BOUND
public static final java.lang.String PROP_UPPER_BOUND
public static final java.lang.String PROP_REGEXP
| Method Detail |
public void setName(java.lang.String name)
ModelComponentsetName in class ModelComponentname - the name of the element.public java.lang.String getForm()
public java.lang.String[] getFormOptions()
public int getFormSelected()
public void setForm(java.lang.String form)
form - is either Constraint.ENUMERATION, Constraint.RANGE or Constraint.REGULAR_EXPRESSIONpublic EnumValueTable getEnumValueTable()
public java.util.List getEnumValues()
public void setEnumValues(java.util.List possibleVals)
possibleVals - the enuemration values in a list. A null pointer or an empty list will cause no emumeration value set.public double getLowerBound()
public void setLowerBound(double lo)
lo - lower bound of the range constraintpublic double getUpperBound()
public void setUpperBound(double up)
up - upper bound of the range constraintpublic java.lang.String getRegExp()
public void setRegExp(java.lang.String regexp)
regexp - the regular expression to be matchedpublic java.lang.String getDisplayString()
public void validate(java.lang.String val)
throws RulesSDKException
val - the string that conforms to the constraintthrown - when the constraint is violated. The message about the violation reason should be in the exception.RulesSDKException
public void validate()
throws RulesSDKDMValidationException
validate in class ModelComponentthrown - if any of the following happens (1)lower, upper bound is not in right format (2)lo > up (3) enumeration value is less than 1RulesSDKDMValidationException
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
key - a String containing the property name to be saved.value - a String corresponding to the key to be saved
|
Oracle Business Rules Java API Reference 10g (10.1.3.1.0) B28966-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||