|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 Criterias
or other Logicals
.
children
logical
TypesHelper.AND
or
TypesHelper.OR
.
LogicalHome
,
LogicalImpl
Method Summary | |
boolean |
addAllChildren(java.util.Collection collection)
Adds all of the expressions in the specified collection to our list of children expressions. |
boolean |
addChildren(Expression element)
Ensures that the list of children expressions contains the specified expression. |
void |
clearChildren()
Removes all children expressions. |
boolean |
containsAllChildren(java.util.Collection c)
Returns true if all the specified expressions are our children. |
boolean |
containsChildren(Expression element)
Returns true if the specified expression is one of our children. |
boolean |
equalsChildren(java.lang.Object object)
Compares the specified object with the list of children expressions. |
java.util.Collection |
getAllChildren()
Returns the list of children expressions. |
java.lang.String |
getLogical()
Get the boolean logical operator. |
int |
hashCodeChildren()
Returns the hash code value for the list of children expressions. |
boolean |
isEmptyChildren()
Returns true if we have no children. |
java.util.Iterator |
iteratorChildren()
Returns an iterator over the list of children expressions. |
boolean |
removeAllChildren(java.util.Collection collection)
Removes, from our children, all of the expressions specified. |
boolean |
removeChildren(Expression element)
Removes a single child expression from us. |
boolean |
retainAllChildren(java.util.Collection collection)
Retains only the children which are also contained in the specified collection. |
void |
setAllChildren(java.util.Collection collection)
Sets the list of children expressions. |
void |
setLogical(java.lang.String logical)
Set the boolean logical operator. |
int |
sizeChildren()
Returns the number of children expressions. |
Methods inherited from interface com.beasys.commerce.foundation.expression.Expression |
getNot,
setNot,
toString,
valueOf |
Methods inherited from interface com.beasys.commerce.foundation.Belonging |
clone,
equals,
interfaceName,
setByValue,
value |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public java.util.Collection getAllChildren()
public void setAllChildren(java.util.Collection collection)
public boolean addChildren(Expression element)
public boolean addAllChildren(java.util.Collection collection)
public void clearChildren()
public boolean containsChildren(Expression element)
public boolean containsAllChildren(java.util.Collection c)
public boolean equalsChildren(java.lang.Object object)
public int hashCodeChildren()
public boolean isEmptyChildren()
public java.util.Iterator iteratorChildren()
public boolean removeChildren(Expression element)
public boolean removeAllChildren(java.util.Collection collection)
public boolean retainAllChildren(java.util.Collection collection)
public int sizeChildren()
public java.lang.String getLogical()
public void setLogical(java.lang.String logical)
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |