Skip navigation links

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

E10663-05


oracle.rules.sdk2.datamodel
Class Node

java.lang.Object
  extended by oracle.rules.sdk2.datamodel.Node

All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.String>
Direct Known Subclasses:
JavaNode

public abstract class Node
extends java.lang.Object
implements java.util.Map<java.lang.String,java.lang.String>

An abstract class that represents Nodes in a schema or class hierarchy.
Sub-classes are used to load Java or Jaxb classes into the DataModel.


Nested Class Summary

 

Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>

 

Field Summary
static java.lang.String CLOSED
           
static java.lang.String FALSE
           
static java.lang.String OPEN
           
static java.lang.String PROP_LOAD_FLAG
           
static java.lang.String PROP_NAME
           
static java.lang.String PROP_STATE
           
static java.lang.String TRUE
           

 

Method Summary
 void clear()
           
 void close()
          Mark this node as "closed".
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String get(java.lang.Object key)
           
 RuleDictionary getDictionary()
          Return the dictionary that was used to establish the node tree of which this is part.
 java.lang.String getLoadFlag()
          Return a String represntation of a boolean "true" -- loaded into data model "false" -- not loaded into datamodel
 java.lang.String getName()
          Return the name property for the node
 NodeTable getNestedTable()
          Create a NodeTable containing all the immediate children of this Node.
 java.lang.String getOpenState()
          Return the String representation of state.
 NodeTable getParent()
          Return the parent for this node
 int hashCode()
           
 boolean isEmpty()
           
 boolean isOpen()
          Indicate the status of of a node.
 java.util.Set<java.lang.String> keySet()
           
abstract  java.util.List<FactType> load()
           
 void open()
          Mark this node as "opened".
 java.lang.String put(java.lang.String key, java.lang.String value)
           
 void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> m)
           
 java.lang.String remove(java.lang.Object key)
           
 void setName(java.lang.String name)
          Set the name of the Node.
 int size()
           
 java.util.Collection<java.lang.String> values()
           

 

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

 

Field Detail

PROP_STATE

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

OPEN

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

CLOSED

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

PROP_LOAD_FLAG

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

TRUE

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

FALSE

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

PROP_NAME

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

Method Detail

clear

public void clear()
Specified by:
clear in interface java.util.Map<java.lang.String,java.lang.String>

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map<java.lang.String,java.lang.String>

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map<java.lang.String,java.lang.String>

entrySet

public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
Specified by:
entrySet in interface java.util.Map<java.lang.String,java.lang.String>

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
equals in class java.lang.Object

get

public java.lang.String get(java.lang.Object key)
Specified by:
get in interface java.util.Map<java.lang.String,java.lang.String>

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map<java.lang.String,java.lang.String>
Overrides:
hashCode in class java.lang.Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map<java.lang.String,java.lang.String>

keySet

public java.util.Set<java.lang.String> keySet()
Specified by:
keySet in interface java.util.Map<java.lang.String,java.lang.String>

put

public java.lang.String put(java.lang.String key,
                            java.lang.String value)
Specified by:
put in interface java.util.Map<java.lang.String,java.lang.String>

putAll

public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.String> m)
Specified by:
putAll in interface java.util.Map<java.lang.String,java.lang.String>

remove

public java.lang.String remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<java.lang.String,java.lang.String>

size

public int size()
Specified by:
size in interface java.util.Map<java.lang.String,java.lang.String>

values

public java.util.Collection<java.lang.String> values()
Specified by:
values in interface java.util.Map<java.lang.String,java.lang.String>

setName

public void setName(java.lang.String name)
Set the name of the Node. Used by any reference
Parameters:
name - String with the new name

getName

public java.lang.String getName()
Return the name property for the node

getParent

public NodeTable getParent()
Return the parent for this node

getDictionary

public RuleDictionary getDictionary()
Return the dictionary that was used to establish the node tree of which this is part.

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 users of Node classes 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 Node's NestedNodeTable).
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()
Create a NodeTable containing all the immediate children of this Node. If this Node can not have any children (e.g. JClassNode or JaxbNode) then this will return null.
Returns:
NodeTable containing all immediate children

load

public abstract java.util.List<FactType> load()

getLoadFlag

public java.lang.String getLoadFlag()
Return a String represntation of a boolean
 "true"   -- loaded into data model
 "false"  -- not loaded into datamodel
 
Returns:
String representing boolean indicating that node is loaded into the DataModel.

Skip navigation links

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

E10663-05


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