- All Superinterfaces:
org.refcodes.mixin.AliasAccessor
,Criteria
,org.refcodes.mixin.Schemable
- All Known Implementing Classes:
AbstractCriteriaNode
,AndCriteria
,IntersectWithCriteria
,NotCriteria
,OrCriteria
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).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a childCriteria
to theCriteriaNode
.Returns the list of childCriteria
instances contained in theCriteriaNode
.Methods inherited from interface org.refcodes.mixin.AliasAccessor
getAlias
-
Method Details
-
getChildren
Returns the list of childCriteria
instances contained in theCriteriaNode
.- Returns:
- The
Criteria
instances contained in theCriteriaNode
.
-
addChild
Adds a childCriteria
to theCriteriaNode
. In case a https://www.metacodes.proizedCriteriaNode
applies constraints on the number or type ofCriteria
which may be added, an according exception may be thrown. For example a singleCriteriaNode
may apply constraints on this method.- Parameters:
aChild
- The childCriteria
to be added.- Throws:
IllegalStateException
- the illegal state exceptionIllegalArgumentException
- the illegal argument exceptionIllegalStateException
- In case constraints in terms of state are violated, implementation depended.IllegalArgumentException
- In case constraints in terms of argument are violated, implementation depended.
-