Skip navigation links

Oracle® Fusion Middleware Oracle Imaging and Process Management Java API Reference
11g Release 1 (11.1.1)

E12853-02


oracle.imaging
Class Search.Node

java.lang.Object
  extended by oracle.imaging.Search.Node

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Search.Condition, Search.Conjunction
Enclosing class:
Search

public abstract static class Search.Node
extends java.lang.Object
implements java.io.Serializable

The Search.Node class provides the structure for a recursive structuring of the search expression. This class contains a left operand a logical searchOperator and a right operand. Each operand is also a Search.Node. The two classes that implement the behavior for this structure are:

The search structure allows the logical building of a binary logic tree. This class implements\ the common behavior of the tree allowing the tree to be transversed in a left to right manner.

See Also:
Serialized Form

Nested Class Summary
static class Search.Node.NodePk
          FOR INTERNAL USE ONLY

 

Field Summary
protected  long leftId
           
protected  Search.Node leftOperand
           
protected  long rightId
           
protected  Search.Node rightOperand
           
protected  Search search
           
protected  long searchNodeId
           
protected  Search.Operator searchOperator
           

 

Constructor Summary
Search.Node()
          Default Constructor required for JAXB serialization.

 

Method Summary
 boolean getAlwaysDisplayParentheses()
          Returns the setting of the hint to always display parentheses around this node of a search expression.
 Search.Node getLeftOperand()
          Obtain the Left Operand for this object.
 Search.Node getRightOperand()
          Obtain the Right Operand for this object.
 Search.Operator getSearchOperator()
          Get the current Search Operator for this object.
 boolean isLeaf()
          A flag indicating whether this is a node or a leaf.
abstract  boolean isValidOperator()
          Tests the search searchOperator for validity.
 void setAlwaysDisplayParentheses(boolean alwaysDisplayParentheses)
          Enables or disables the hint to always display parentheses around this node of a search expression whenever the search expression is displayed.
 void setLeftOperand(Search.Node leftOperand)
          The Left Operand for this node.
 void setRightOperand(Search.Node rightOperand)
          The Right Operand for this node.
 void setSearchOperator(Search.Operator searchOperator)
          Saves the search searchOperator for this node of the tree.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

search

protected Search search

searchNodeId

protected long searchNodeId

rightId

protected long rightId

leftId

protected long leftId

leftOperand

protected Search.Node leftOperand

rightOperand

protected Search.Node rightOperand

searchOperator

protected Search.Operator searchOperator

Constructor Detail

Search.Node

public Search.Node()
Default Constructor required for JAXB serialization.

Method Detail

getLeftOperand

public Search.Node getLeftOperand()
Obtain the Left Operand for this object. This may be a node or a leaf.
Returns:
the left operand of the searchExpression.

getRightOperand

public Search.Node getRightOperand()
Obtain the Right Operand for this object. This may be a node or a leaf.
Returns:
the right operand of the searchExpression.

getSearchOperator

public Search.Operator getSearchOperator()
Get the current Search Operator for this object.
Returns:
the searchOperator for this node or condition.

setAlwaysDisplayParentheses

public void setAlwaysDisplayParentheses(boolean alwaysDisplayParentheses)
Enables or disables the hint to always display parentheses around this node of a search expression whenever the search expression is displayed. Enabling these optional parentheticals can sometimes improve the human readability of searches in some circumstances. Note that this setting only affects the legibility of the search expression and not the behavior. Also note that even if this option is disabled, parentheses may still be displayed around this node under some circumstances (e.g. the node implicitly evaluates "right-to-left").
Parameters:
alwaysDisplayParentheses - true to always display parentheses; false otherwise

getAlwaysDisplayParentheses

public boolean getAlwaysDisplayParentheses()
Returns the setting of the hint to always display parentheses around this node of a search expression.
Returns:
true if this node always display parentheses; false otherwise

isLeaf

public boolean isLeaf()
A flag indicating whether this is a node or a leaf.
Returns:
false - This is a node.

isValidOperator

public abstract boolean isValidOperator()
Tests the search searchOperator for validity. Each concrete subclass defines which of the Search$Operatorvalues are valid for that subclass.
Returns:
true if the Search$Operatoris valid.

setSearchOperator

public void setSearchOperator(Search.Operator searchOperator)
Saves the search searchOperator for this node of the tree.
Parameters:
searchOperator - The logical search searchOperator for this node.

setLeftOperand

public void setLeftOperand(Search.Node leftOperand)
The Left Operand for this node. A concrete subclass, either Search$Condition or Search$Conjunction
Parameters:
leftOperand - The left side of the logical expression.

setRightOperand

public void setRightOperand(Search.Node rightOperand)
The Right Operand for this node. A concrete subclass, either Search$Condition or Search$Conjunction
Parameters:
rightOperand - The right side of the logical expression.

Skip navigation links

Oracle® Fusion Middleware Oracle Imaging and Process Management Java API Reference
11g Release 1 (11.1.1)

E12853-02


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