Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


oracle.rules.sdk.editor.datamodel
Class Field

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byoracle.rules.sdk.editor.datamodel.ModelComponent
              extended byoracle.rules.sdk.editor.datamodel.Field

All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Field
extends ModelComponent

Represent a static public Java Field

See Also:
Serialized Form

Field Summary
static java.lang.String PROP_ALLOW_CHAINING
           
static java.lang.String PROP_DEFAULT_VALUE
           
static java.lang.String PROP_FINAL
           
static java.lang.String PROP_STATIC
           
static java.lang.String PROP_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. a.b.foo().
 InitValue getDefaultValue()
          Get default of the field
 java.lang.String getType()
          Get alias of the type of the field
 boolean isFinal()
          Whether it is a final field
 boolean isStatic()
          Whether it is a static field
 boolean isTypePrimitive()
          Whether the type of the field is primitive (i.e. int, char, double etc.)?
 void setAllowChaining(boolean allowChaining)
          Set to allow the field to be chained to make up new expressions
 void validate()
          valid the model component

 

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, put, 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

PROP_FINAL

public static final java.lang.String PROP_FINAL
See Also:
Constant Field Values

PROP_STATIC

public static final java.lang.String PROP_STATIC
See Also:
Constant Field Values

PROP_TYPE

public static final java.lang.String PROP_TYPE
See Also:
Constant Field Values

PROP_DEFAULT_VALUE

public static final java.lang.String PROP_DEFAULT_VALUE
See Also:
Constant Field Values

PROP_ALLOW_CHAINING

public static final java.lang.String PROP_ALLOW_CHAINING
See Also:
Constant Field Values

Method Detail

isFinal

public boolean isFinal()
Whether it is a final field
Returns:
true to indicate the field is final

isStatic

public boolean isStatic()
Whether it is a static field
Returns:
true to indicate the field is static

getType

public java.lang.String getType()
Get alias of the type of the field
Returns:
the alias of the type

getDefaultValue

public InitValue getDefaultValue()
Get default of the field
Returns:
default value of the field

isTypePrimitive

public boolean isTypePrimitive()
Whether the type of the field is primitive (i.e. int, char, double etc.)?
Returns:
true if type is primitive; false if type is java or RL class

getAllowChaining

public boolean getAllowChaining()
Allow expression chaining, e.g. a.b.foo(). It only applies to the fields of complex type. In another word, if the type of the field is primitive, the method always return false.
Returns:
true to indicate the property can be chained to make up new expressions

setAllowChaining

public void setAllowChaining(boolean allowChaining)
Set to allow the field to be chained to make up new expressions
Parameters:
allowChaining - true indicates that the field can be chained to make up new expressions

validate

public void validate()
              throws RulesSDKDMValidationException
Description copied from class: ModelComponent
valid the model component
Overrides:
validate in class ModelComponent
Throws:
RulesSDKDMValidationException

get

public java.lang.Object get(java.lang.Object key)
Overwrite hashtable get method. For property "type" we don't return the hashtable entry directly. Instead, we compute the type alias from type id which is the hashtable entry.
Specified by:
get in interface java.util.Map
Overrides:
get in class ModelComponent
Parameters:
key - a String containing the property name to be fetched.
Returns:
the value corresponding to the key

Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


Copyright © 2006, Oracle. All rights reserved.