|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicConstraint
org.mmbase.storage.search.implementation.BasicCompositeConstraint
public class BasicCompositeConstraint
Basic implementation.
| Field Summary |
|---|
| Fields inherited from class org.mmbase.storage.search.implementation.BasicConstraint |
|---|
modifiable |
| Fields inherited from interface org.mmbase.storage.search.CompositeConstraint |
|---|
LOGICAL_AND, LOGICAL_OPERATOR_DESCRIPTIONS, LOGICAL_OR |
| Constructor Summary | |
|---|---|
BasicCompositeConstraint(int logicalOperator,
Constraint... childs)
Constructor. |
|
| Method Summary | |
|---|---|
BasicCompositeConstraint |
addChild(Constraint child)
Adds new child constraint. |
boolean |
equals(Object obj)
Compares this constraint to the specified object. |
int |
getBasicSupportLevel()
Tests if this constraint is supported by the basic queryhandler. |
List<Constraint> |
getChilds()
Gets the child constraints. |
int |
getLogicalOperator()
Gets the logical operator used to combine the child constraints. |
String |
getLogicalOperatorDescription()
Returns a description of the logical operator |
int |
hashCode()
|
BasicCompositeConstraint |
removeChild(Constraint child)
|
void |
setUnmodifiable()
|
String |
toString()
Returns a string representation of this CompositeConstraint. |
| Methods inherited from class org.mmbase.storage.search.implementation.BasicConstraint |
|---|
isInverse, setInverse |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.storage.search.Constraint |
|---|
isInverse |
| Constructor Detail |
|---|
public BasicCompositeConstraint(int logicalOperator,
Constraint... childs)
logicalOperator - The logical operator.
IllegalArgumentException - when an invalid argument is supplied.| Method Detail |
|---|
public void setUnmodifiable()
setUnmodifiable in interface ConstraintsetUnmodifiable in class BasicConstraintpublic BasicCompositeConstraint addChild(Constraint child)
child - The child constraint.
BasicCompositeConstraint instance.
IllegalArgumentException - when an invalid argument is supplied.public BasicCompositeConstraint removeChild(Constraint child)
public List<Constraint> getChilds()
CompositeConstraint
getChilds in interface CompositeConstraintpublic int getLogicalOperator()
CompositeConstraint
getLogicalOperator in interface CompositeConstraintpublic String getLogicalOperatorDescription()
public int getBasicSupportLevel()
Constraint
getBasicSupportLevel in interface ConstraintgetBasicSupportLevel in class BasicConstraintpublic boolean equals(Object obj)
Constrainttrue if and only if the argument is a non-null
Constraint object representing the same constraint(s).
equals in interface CompositeConstraintequals in interface Constraintequals in class BasicConstraintobj - The object to compare with.
true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface CompositeConstrainthashCode in interface ConstrainthashCode in class BasicConstraintpublic String toString()
CompositeConstraintisInverse()
getLogicalOperator()
getChilds()
toString in interface CompositeConstrainttoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||