-
- All Superinterfaces:
Criteria
,org.refcodes.mixin.NameAccessor
- All Known Subinterfaces:
AndCriteria
,IntersectWithCriteria
,NotCriteria
,OrCriteria
,SingleCriteriaNode
- All Known Implementing Classes:
AbstractCriteriaNode
,AbstractSingleCriteriaNode
public interface CriteriaNode extends Criteria
A CriteriaNode tree node may represent a logical AND or a logical OR or a logical NOT applied on the node's children Criteria (CriteriaNode instances and CriteriaLeaf instances).- Version:
- $Id: $Id
- Author:
- steiner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addChild(Criteria aChild)
Adds a childCriteria
to theCriteriaNode
.List<Criteria>
getChildren()
Returns the list of childCriteria
instances contained in theCriteriaNode
.
-
-
-
Method Detail
-
getChildren
List<Criteria> getChildren()
Returns the list of childCriteria
instances contained in theCriteriaNode
.- Returns:
- The
Criteria
instances contained in theCriteriaNode
.
-
addChild
void addChild(Criteria aChild) throws IllegalStateException, IllegalArgumentException
Adds a childCriteria
to theCriteriaNode
. In case a specializedCriteriaNode
applies constraints on the number or type ofCriteria
which may be added, an according exception may be thrown. For example theSingleCriteriaNode
applies constraints on this method.- Parameters:
aChild
- The childCriteria
to be added.- Throws:
IllegalStateException
- In case constraints in terms of state are violated, implementation depended.IllegalArgumentException
- In case constraints in terms of argument are violated, implementation depended.
-
-