|
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.Variable
global variable: similar to Java "static public" variable. A global variable can be constant or modifiable denoted by the final field. A global variable has a name, a value and an alias. The value could be a general expression such as pi/4 where pi is another constant variable.
Field Summary | |
static java.lang.String |
PROP_FINAL |
static java.lang.String |
PROP_TYPE |
static java.lang.String |
PROP_VALUE |
Fields inherited from class oracle.rules.sdk.editor.datamodel.ModelComponent |
PROP_ALIAS, PROP_ID, PROP_NAME, PROP_PROPERTIES, PROP_VISIBLE |
Method Summary | |
java.lang.Object |
get(java.lang.Object key) Overwrite hashtable get method. |
boolean |
getFinal() Whether the variable is final? |
java.lang.String |
getType() Get alias of the type of the variable. |
java.lang.String[] |
getTypeOptions() Get type options. |
int |
getTypeSelected() Get the index of the selected value for the property type options. |
InitValue |
getValue() Get the Value of the variable |
java.lang.Object |
put(java.lang.Object key, java.lang.Object value) Overwrite hashtable put method. |
void |
setFinal(boolean isFinal) Set the variable final |
void |
setType(java.lang.String typeAlias) Set the type of the variable. |
void |
validate() validate consistency of the global variable definition |
Methods inherited from class oracle.rules.sdk.editor.datamodel.ModelComponent |
getAlias, getDataModel, getID, getName, getParent, getProperties, getVisible, setAlias, setName, 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 PROP_TYPE
public static final java.lang.String PROP_VALUE
public static final java.lang.String PROP_FINAL
Method Detail |
public java.lang.String getType()
public void setType(java.lang.String typeAlias)
typeAlias
- alias of the type to be setpublic java.lang.String[] getTypeOptions()
public int getTypeSelected()
public InitValue getValue()
public boolean getFinal()
public void setFinal(boolean isFinal)
isFinal
- boolean valuepublic void validate() throws RulesSDKDMValidationException
validate
in class ModelComponent
thrown
- if any of the following happens (1)no initial value is assigned (2)type is not defined in the datamodel (3) Alias is conflicted with other global variableRulesSDKDMValidationException
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
get
in class ModelComponent
key
- a String containing the property name to be fetched.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 |