Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.4.0)

E10663-04


oracle.rules.sdk2.datamodel
Class NodeTable

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Node>
              extended by oracle.rules.sdk2.datamodel.NodeTable

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Node>, java.util.Collection<Node>, java.util.List<Node>, java.util.RandomAccess

public class NodeTable
extends java.util.ArrayList<Node>

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

Method Summary
 Node add()
          Add is unsupported.
 void closeNode(int ixNode)
          Close the specified node.
 Browser getBrowser()
           
 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.
 NodeTable getParent()
          Return a parent to this table
 java.util.List<FactType> loadNode(int index)
          load the specified node into the data model.
 java.util.List<FactType> 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(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, 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, 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, removeAll, retainAll, subList

 

Method Detail

getParent

public NodeTable getParent()
Return a parent to this table

getBrowser

public Browser getBrowser()

add

public Node add()
Add is unsupported.
Throws:
java.lang.UnsupportedOperationException

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 - String entry to be located and returned.
Returns:
Node node located by Node FQ Name

openNode

public void openNode(int nodeIndex)
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 - an int of the node to be opened

openNode

public void openNode(java.lang.String nodeName)
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

closeNode

public void closeNode(int ixNode)
Close the specified node. If the specified Node does not have children, this method has no effect.
Parameters:
ixNode - an int index of node to be closed

openOrCloseNode

public void openOrCloseNode(java.lang.String nodeName)
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 containing the Fully Qualifed Name of the node to be opened or closed

loadNode

public java.util.List<FactType> loadNode(int index)
                                  throws SDKException
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:
index - an int of node to be loaded
Throws:
SDKException - (if there are problems loading)

loadNode

public java.util.List<FactType> loadNode(java.lang.String ndName)
                                  throws SDKException
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:
SDKException - (if there are problems loading or if node not found)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Rules
11g Release 1 (11.1.1.4.0)

E10663-04


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.