|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.expression.ExpressionImpl | +--com.beasys.commerce.foundation.expression.LogicalImpl
An expression which does a boolean AND or OR against a list of child expression.
Logical
,
LogicalHome
, Serialized FormField Summary | |
java.util.Collection |
children
The list of children Expressions. |
java.lang.String |
logical
The boolean logical operator. |
Fields inherited from class com.beasys.commerce.foundation.expression.ExpressionImpl |
not |
Constructor Summary | |
LogicalImpl()
Constructor. |
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. |
int |
compareTo(java.lang.Object o)
Compare this belonging to another |
boolean |
containsAllChildren(java.util.Collection collection)
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. |
java.lang.String |
interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model. |
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 |
setByValue(Belonging value)
It is possible to call set-by-value with a superclass. |
void |
setLogical(java.lang.String logical)
Set the boolean logical operator. |
int |
sizeChildren()
Returns the number of children expressions. |
Belonging |
value()
value() is a more typesafe implementation of clone() |
void |
valueOf(java.lang.String expression)
Populate this Logical from the given expression string. |
Methods inherited from class com.beasys.commerce.foundation.expression.ExpressionImpl |
clone, equals, getNot, setNot, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.beasys.commerce.foundation.expression.Expression |
getNot, setNot, toString |
Methods inherited from interface com.beasys.commerce.foundation.Belonging |
clone, equals |
Field Detail |
public java.util.Collection children
public java.lang.String logical
Constructor Detail |
public LogicalImpl()
Method Detail |
public java.util.Collection getAllChildren()
getAllChildren
in interface Logical
public void setAllChildren(java.util.Collection collection)
setAllChildren
in interface Logical
public boolean addChildren(Expression element)
addChildren
in interface Logical
public boolean addAllChildren(java.util.Collection collection)
addAllChildren
in interface Logical
public void clearChildren()
clearChildren
in interface Logical
public boolean containsChildren(Expression element)
containsChildren
in interface Logical
public boolean containsAllChildren(java.util.Collection collection)
containsAllChildren
in interface Logical
public boolean equalsChildren(java.lang.Object object)
equalsChildren
in interface Logical
public int hashCodeChildren()
hashCodeChildren
in interface Logical
public boolean isEmptyChildren()
isEmptyChildren
in interface Logical
public java.util.Iterator iteratorChildren()
iteratorChildren
in interface Logical
public boolean removeChildren(Expression element)
removeChildren
in interface Logical
public boolean removeAllChildren(java.util.Collection collection)
removeAllChildren
in interface Logical
public boolean retainAllChildren(java.util.Collection collection)
retainAllChildren
in interface Logical
public int sizeChildren()
sizeChildren
in interface Logical
public java.lang.String getLogical()
getLogical
in interface Logical
public void setLogical(java.lang.String logical)
setLogical
in interface Logical
public Belonging value()
value
in interface Belonging
value
in class ExpressionImpl
public java.lang.String interfaceName()
interfaceName
in interface Belonging
interfaceName
in class ExpressionImpl
public void setByValue(Belonging value)
If that is the case, only the fields in the superclass will be set in this instance. The remaining fields get the default values. It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.
setByValue
in interface Belonging
setByValue
in class ExpressionImpl
com.beasys.commerce.foundation.Belonging
belonging
- The Belonging
to use for initialization.public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
compareTo
in class ExpressionImpl
o
- target object for comparisionpublic void valueOf(java.lang.String expression) throws java.lang.IllegalArgumentException
valueOf
in interface Expression
valueOf
in class ExpressionImpl
java.lang.IllegalArgumentException
- thrown on an invalid expression
string.ExpressionHelper.parse(java.lang.String)
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |