Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


oracle.rules.sdk.browser
Class Node

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byoracle.rules.sdk.browser.Node

All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable
Direct Known Subclasses:
JavaNode

public abstract class Node
extends java.util.HashMap

Provide a Table containing all nodes (classes or packages) that are currently exposed by a class browser

See Also:
Serialized Form

Field Summary
static java.lang.String CLOSED
           
static java.lang.String FALSE
           
static int JAXBCLASS
           
static int JCLASS
           
static int JPACKAGE
           
static java.lang.String OPEN
           
static java.lang.String PROP_CHILDREN
           
static java.lang.String PROP_NAME
           
static java.lang.String PROP_OWN_INDEX
           
static java.lang.String PROP_OWNING_TABLE
           
static java.lang.String PROP_PARENT
           
static java.lang.String PROP_STATE
           
static java.lang.String PROP_TYPE
           
static int STATE_CLOSED
           
static int STATE_OPEN
           
static java.lang.String TRUE
           
static java.lang.String TYPE_JCLASS
           
static java.lang.String TYPE_JPKG
           

 

Constructor Summary
Node()
           

 

Method Summary
 void close()
          Mark this node as "closed".
 java.lang.String getLoadFlag()
          Return a String represntation of a boolean "TRUE" means loaded into data model "FALSE" means not loaded into datamodel
 java.lang.String getName()
          return the name (unqualified) of the node.
 NodeTable getNestedTable()
           
 java.lang.String getOpenState()
          Return the String representation of state.
 Node getParent()
          Returns the owning parent.
abstract  java.lang.String getTypeAsString()
          return the type of the node as a String
 boolean isOpen()
          Indicate the status of of a node.
abstract  void load()
           
 void open()
          Mark this node as "opened".

 

Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, 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

OPEN

public static java.lang.String OPEN

CLOSED

public static java.lang.String CLOSED

STATE_OPEN

public static int STATE_OPEN

STATE_CLOSED

public static int STATE_CLOSED

JCLASS

public static int JCLASS

JAXBCLASS

public static int JAXBCLASS

JPACKAGE

public static int JPACKAGE

TRUE

public static java.lang.String TRUE

FALSE

public static java.lang.String FALSE

TYPE_JCLASS

public static java.lang.String TYPE_JCLASS

TYPE_JPKG

public static java.lang.String TYPE_JPKG

PROP_NAME

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

PROP_OWN_INDEX

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

PROP_PARENT

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

PROP_STATE

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

PROP_TYPE

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

PROP_OWNING_TABLE

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

PROP_CHILDREN

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

Constructor Detail

Node

public Node()

Method Detail

getName

public java.lang.String getName()
return the name (unqualified) of the node.
Returns:
String unqualified name

open

public void open()
Mark this node as "opened". The node's state actually has no effect on the behavior of the node. The state of the node is a mneumonic that allows callers of nodes to keep some display state. A nested node table is not created ("opened") until the nested node table is actually retrieved.

close

public void close()
Mark this node as "closed". The node's state actually has no effect on the behavior of the node. The state of the node is a mneumonic that allows callers of nodes to maintian display state. A nested node tables are only created on-demand and have no relationship to the state of the node.

isOpen

public boolean isOpen()
Indicate the status of of a node. Returning true from this node implies that if the node represents a package that the immediate children of this package have been opened (have been materialized in the the NodeTable). If the Node is a class (therefore has no children) then this method will always return true.
Returns:
boolean indcating node open or closed

getOpenState

public java.lang.String getOpenState()
Return the String representation of state. Node.OPEN and Node.CLOSED returned depending on whether the children of the node are displayed. If isOpen() returns true, this method will return Node.OPEN if isOpen() returns false, this method will return Node.CLOSED
Returns:
String from one of Node.CLOSED or Node.OPEN

getNestedTable

public NodeTable getNestedTable()
                         throws RulesSDKException
Throws:
RulesSDKException

getLoadFlag

public java.lang.String getLoadFlag()
Return a String represntation of a boolean "TRUE" means loaded into data model "FALSE" means not loaded into datamodel
Returns:
String representing boolean

getTypeAsString

public abstract java.lang.String getTypeAsString()
return the type of the node as a String

load

public abstract void load()
                   throws RulesSDKException
Throws:
RulesSDKException

getParent

public Node getParent()
Returns the owning parent. NodeTables are not considered parents. A return of null indicates this is the highest node in the tree (the top node).

Skip navigation links

Oracle Business Rules Java API Reference
10g (10.1.3.1.0)

B28966-01


Copyright © 2006, Oracle. All rights reserved.