|
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.Function
Represent a RL function
Field Summary | |
static java.lang.String |
PROP_ALLOW_CHAINING |
static java.lang.String |
PROP_BODY |
static java.lang.String |
PROP_BUILT_IN |
static java.lang.String |
PROP_EXCEPTIONS |
static java.lang.String |
PROP_FORMAL_PARAMETER_TABLE |
static java.lang.String |
PROP_RETURN_TYPE |
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 |
getAllowChaining() Allow expression chaining, e.g. foo().bar(). |
java.lang.String |
getBody() Get function body: only support RL Text body |
java.lang.String[] |
getExceptions() Get all the exceptions of the function |
FormalParameter[] |
getFormalParameters() Get all the formal parameters of the function |
FormalParameterTable |
getFormalParameterTable() Get all the parameters of the function |
boolean |
getIsBuiltIn() Whether the funtion is a RL built-in function or user-defined function |
java.lang.String |
getReturnType() Get alias of the return type of the function. |
java.lang.String[] |
getReturnTypeOptions() Get RL function return type options. |
int |
getReturnTypeSelected() Get the index of the selected value for the return type options. |
boolean |
isReturnTypePrimitive() Whether the return type of the function is primitive (i.e. int, char, double etc.)? |
java.lang.Object |
put(java.lang.Object key, java.lang.Object value) Overwrite hashtable put method. |
void |
setAllowChaining(boolean allowChaining) Set to allow the return value of the function to be chained to make up new expressions |
void |
setBody(java.lang.String body) Set function body |
void |
setExceptions(java.lang.String[] exps) Set all the exceptions of the function |
void |
setReturnType(java.lang.String returnTypeAlias) Set the return type of the function. |
void |
validate() validate consistency of the function 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_BUILT_IN
public static final java.lang.String PROP_RETURN_TYPE
public static final java.lang.String PROP_FORMAL_PARAMETER_TABLE
public static final java.lang.String PROP_EXCEPTIONS
public static final java.lang.String PROP_BODY
public static final java.lang.String PROP_ALLOW_CHAINING
Method Detail |
public boolean getIsBuiltIn()
public java.lang.String getReturnType()
public void setReturnType(java.lang.String returnTypeAlias)
returnTypeAlias
- alias of the return type of the function.public java.lang.String[] getReturnTypeOptions()
public int getReturnTypeSelected()
public FormalParameterTable getFormalParameterTable()
public FormalParameter[] getFormalParameters()
public java.lang.String[] getExceptions()
public void setExceptions(java.lang.String[] exps)
exps
- The list of exceptions of the function.public java.lang.String getBody()
public void setBody(java.lang.String body)
body
- A string represeting body of the functionpublic boolean isReturnTypePrimitive()
public boolean getAllowChaining()
public void setAllowChaining(boolean allowChaining)
allowChaining
- true indicates that the return value of the function can be chained to make up new expressionspublic void validate() throws RulesSDKDMValidationException
validate
in class ModelComponent
thrown
- if any of the following happens (1)no return type defined (2)return type is not defined in datamodel (3)no function body (4) two parameters have the same name (5) Alias is conflicted with other functionsRulesSDKDMValidationException
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 |