Logical Interface

DEPRECATED Use com.bea.p13n.expression.Expression instead.

com.beasys.commerce.foundation.expression
Logical Interface

public interface Logical

    extends com.beasys.commerce.foundation.expression.Expression

An expression which does a boolean AND or OR against a list of child expression.

This represents a branch in an expression tree. Its children will be either Criteria or other Logical.

Attribute: children
  • Containment: By Value
  • Multiplicity: 0:N
  • Interface: java.util.Collection
  • This is the list of children Expressions.
  • Attribute: logical

    Related Topics

    LogicalHome
    LogicalImpl
    ExpressionHelper


    All Known Implementing Classes
    com.beasys.commerce.foundation.expression.LogicalImpl
    All Superinterfaces
    Cloneable, Comparable, com.beasys.commerce.foundation.expression.Expression, Serializable

    Method Summary

    public boolean
    addAllChildren(Collection collection)
    Adds all of the expressions in the specified collection to our list of children expressions.
    public boolean
    addChildren(Expression element)
    Ensures that the list of children expressions contains the specified expression.
    public void
    clearChildren()
    Removes all children expressions.
    public boolean
    containsAllChildren(Collection c)
    Returns true if all the specified expressions are our children.
    public boolean
    containsChildren(Expression element)
    Returns true if the specified expression is one of our children.
    public boolean
    equalsChildren(Object object)
    Compares the specified object with the list of children expressions.
    public Collection
    getAllChildren()
    Returns the list of children expressions.
    public String
    getLogical()
    Get the boolean logical operator.
    public int
    hashCodeChildren()
    Returns the hash code value for the list of children expressions.
    public boolean
    isEmptyChildren()
    Returns true if we have no children.
    public Iterator
    iteratorChildren()
    Returns an iterator over the list of children expressions.
    public boolean
    removeAllChildren(Collection collection)
    Removes, from our children, all of the expressions specified.
    public boolean
    removeChildren(Expression element)
    Removes a single child expression from us.
    public boolean
    retainAllChildren(Collection collection)
    Retains only the children which are also contained in the specified collection.
    public void
    setAllChildren(Collection collection)
    Sets the list of children expressions.
    public void
    setLogical(String logical)
    Set the boolean logical operator.
    public int
    sizeChildren()
    Returns the number of children expressions.
     
    Methods from interface java.lang.Comparable
    compareTo
     
    Methods from interface com.beasys.commerce.foundation.expression.com.beasys.commerce.foundation.expression.Expression
    getNot, interfaceName, setByValue, setNot, toString, value, valueOf
       

    Method Detail

    addAllChildren(Collection) Method

    public boolean addAllChildren(Collection collection)
    
    Adds all of the expressions in the specified collection to our list of children expressions.


    addChildren(Expression) Method

    public boolean addChildren(Expression element)
    
    Ensures that the list of children expressions contains the specified expression.


    clearChildren() Method

    public void clearChildren()
    
    Removes all children expressions.


    containsAllChildren(Collection) Method

    public boolean containsAllChildren(Collection c)
    
    Returns true if all the specified expressions are our children.


    containsChildren(Expression) Method

    public boolean containsChildren(Expression element)
    
    Returns true if the specified expression is one of our children.


    equalsChildren(Object) Method

    public boolean equalsChildren(Object object)
    
    Compares the specified object with the list of children expressions.


    getAllChildren() Method

    public Collection getAllChildren()
    
    Returns the list of children expressions.


    getLogical() Method

    public String getLogical()
    
    Get the boolean logical operator.


    hashCodeChildren() Method

    public int hashCodeChildren()
    
    Returns the hash code value for the list of children expressions.


    isEmptyChildren() Method

    public boolean isEmptyChildren()
    
    Returns true if we have no children.


    iteratorChildren() Method

    public Iterator iteratorChildren()
    
    Returns an iterator over the list of children expressions.


    removeAllChildren(Collection) Method

    public boolean removeAllChildren(Collection collection)
    
    Removes, from our children, all of the expressions specified.


    removeChildren(Expression) Method

    public boolean removeChildren(Expression element)
    
    Removes a single child expression from us.


    retainAllChildren(Collection) Method

    public boolean retainAllChildren(Collection collection)
    
    Retains only the children which are also contained in the specified collection.


    setAllChildren(Collection) Method

    public void setAllChildren(Collection collection)
    
    Sets the list of children expressions.


    setLogical(String) Method

    public void setLogical(String logical)
    
    Set the boolean logical operator.


    sizeChildren() Method

    public int sizeChildren()
    
    Returns the number of children expressions.