Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


oracle.rules.sdk.browser
Class NodeTable

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byoracle.rules.sdk.browser.NodeTable

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

public class NodeTable
extends java.util.ArrayList

Table containing all nodes (classes or packages) that are currently exposed by a class browser. These may be either java bean classes or jaxb classes (representing xml nodes).

See Also:
Serialized Form

Field Summary
static java.lang.String TRUE
           

 

Method Summary
 void closeNode(int ixNode)
          Close the specified node.
 void closeNode(java.lang.String nodeName)
          Close the specified node.
 Browser getBrowser()
          returns the Browser that created this this table.
 Node getNode(int i)
          Return the node entry at the specified index.
 Node getNode(java.lang.String nodeName)
          Return the entry entry whose name matches the parameter.
 Node getParent()
           
 void loadNode(int index)
          load the specified node into the data model.
 void loadNode(java.lang.String ndName)
          load the specified node into the data model.
 void openNode(int nodeIndex)
          Open the specified node.
 void openNode(java.lang.String nodeName)
          Open the specified node.
 void openOrCloseNode(int nodeIx)
          Toggle the state of the Node entry specified by the fully qualiafied name of the entry.
 void openOrCloseNode(java.lang.String nodeName)
          Toggle the state of the Node entry specified by the fully qualiafied name of the entry.

 

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

 

Field Detail

TRUE

public static java.lang.String TRUE

Method Detail

getBrowser

public Browser getBrowser()
returns the Browser that created this this table. This will be null, unless this is the top nodetable for a particular hierarchy.

getNode

public Node getNode(int i)
Return the node entry at the specified index. The NodeTable is indexed from 0.
Parameters:
i - an int zero based index to retrieve node
Returns:
Node node located at index
Throws:
java.lang.IndexOutOfBoundsException

getNode

public Node getNode(java.lang.String nodeName)
Return the entry entry whose name matches the parameter. Only exact matches are performed (and all matches are case sensitive).
Parameters:
nodeName - of entry to be returned.
Returns:
Node node located by Node FQ Name
Throws:
RulesSDKException - (not found)

loadNode

public void loadNode(java.lang.String ndName)
              throws RulesSDKException
load the specified node into the data model. The node to be loaded is specified by the index of the node. All classes or elements nodes will be loaded into the dictionary.
Parameters:
ndName - String name of Node to be loaded
Throws:
RulesSDKException - (if there are problems loading or if node not found)

openNode

public void openNode(int nodeIndex)
              throws RulesSDKException
Open the specified node. The node is specified by the index in the table. Invokes the Open() method on the specified Node entry.
Parameters:
nodeIndex - integer index of node to be opened
Throws:
RulesSDKException

openNode

public void openNode(java.lang.String nodeName)
              throws RulesSDKException
Open the specified node. The node is specified by the name of the Node entry in the table. If the node has no children, this method has no effect
Parameters:
nodeName - String name of the node to be opened
Throws:
RulesSDKException

closeNode

public void closeNode(int ixNode)
               throws RulesSDKException
Close the specified node. If the specified Node does not have children, this method has no effect.
Closing the node sets it state to close, but does not have any other effect on a nodes context.
Parameters:
ixNode - an integer index to node to be closed
Throws:
RulesSDKException

closeNode

public void closeNode(java.lang.String nodeName)
               throws RulesSDKException
Close the specified node. If the specified Node does not have children, this method has no effect.
Closing the node sets the nodes flag to "closed".
Parameters:
nodeName - a String that names the node to be marked as closed
Throws:
RulesSDKException

openOrCloseNode

public void openOrCloseNode(int nodeIx)
                     throws RulesSDKException
Toggle the state of the Node entry specified by the fully qualiafied name of the entry. If the node is opened it will be closed. If the node is closed is will be opened. If the node is a leaf (has no children) no change will be made.
To check the state of the node itself, retrieve the node entry from the table and examine its state.
Parameters:
nodeIx - integer index to the entry effected
Throws:
RulesSDKException

openOrCloseNode

public void openOrCloseNode(java.lang.String nodeName)
                     throws RulesSDKException
Toggle the state of the Node entry specified by the fully qualiafied name of the entry. If the node is opened it will be closed. If the node is closed is will be opened. If the node is a leaf (has no children) no change will be made. To check the state of the node itself, retrieve the node entry from the table and examine its state.
Parameters:
nodeName - String Fully Qualifed Name of node to be opened or closed
Throws:
RulesSDKException

loadNode

public void loadNode(int index)
              throws RulesSDKException
load the specified node into the data model. The node to be loaded is specified by the index of the node. All classes or elements (complex types??? TBD) owned by this node will be loaded into the dictionary.
Parameters:
index - integer index to node to be loaded
Throws:
RulesSDKException - (if there are problems loading)

getParent

public Node getParent()

Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


Copyright © 2006, Oracle. All rights reserved.