Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


oracle.rules.sdk.editor.datamodel
Class VariableTable

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byoracle.rules.sdk.editor.datamodel.ModelComponentTable
                  extended byoracle.rules.sdk.editor.datamodel.VariableTable

All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class VariableTable
extends ModelComponentTable

Top level table in the datamodel. It contains a list of global variables.

See Also:
Serialized Form

Method Summary
 Variable add()
          Create a Variable and add it to the Variable table
 Variable getVariable(int index)
          get a variable by index
 Variable getVariable(java.lang.String id)
          get a variable by id
 Variable getVariableByName(java.lang.String name)
          get a variable by name
 java.lang.Object removeByID(java.lang.String id)
          Remove a variable by id.
 java.lang.Object removeByName(java.lang.String name)
          Remove a variable by name.

 

Methods inherited from class oracle.rules.sdk.editor.datamodel.ModelComponentTable
getParent, mark, removeMarked

 

Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize

 

Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList

 

Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList

 

Method Detail

add

public Variable add()
Create a Variable and add it to the Variable table
Returns:
The newly created variable.

getVariable

public Variable getVariable(int index)
get a variable by index
Parameters:
index - the index of the variable list
Returns:
The variable in the position

getVariable

public Variable getVariable(java.lang.String id)
get a variable by id
Parameters:
id - the id of the variable requested
Returns:
The variable matching the id

getVariableByName

public Variable getVariableByName(java.lang.String name)
get a variable by name
Parameters:
name - the name of the variable requested
Returns:
The variable matching the name

removeByID

public java.lang.Object removeByID(java.lang.String id)
                            throws DeleteException
Remove a variable by id. If the given id does not match any variable, then no variable is removed. If the variable is used in other datamodel/rule definition(s), a DeleteException is thrown.
Specified by:
removeByID in class ModelComponentTable
Parameters:
id - the id of the variable to be removed
Returns:
The variable being removed. Null if no variable is removed.
Throws:
thrown - if the variable is used in other datamodel/rule definition(s). The message of the exception contains all the places where the variable is used
DeleteException

removeByName

public java.lang.Object removeByName(java.lang.String name)
                              throws DeleteException
Remove a variable by name. If the given name does not match any variable, then no variable is removed. If the variable is used in other datamodel/rule definition(s), a DeleteException is thrown.
Parameters:
name - the name of the variable to be removed
Returns:
The variable being removed. Null if no variable is removed.
Throws:
thrown - if the variable is used in other datamodel/rule definition(s). The message of the exception contains all the places where the variable is used
DeleteException

Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


Copyright © 2006, Oracle. All rights reserved.