- All Superinterfaces:
Criteria
,CriteriaNode
,org.refcodes.mixin.NameAccessor
- All Known Subinterfaces:
NotCriteria
- All Known Implementing Classes:
AbstractSingleCriteriaNode
public interface SingleCriteriaNode extends CriteriaNode
A special specialization of the
CriteriaNode
,
allowing just one child. This is required for nodes representing for example
a logical NOT. ATTENTION: Make sure you overwrite the
CriteriaNode.addChild(Criteria)
method to throw an according exception in case
more than one child Criteria
is to be stored in
the SingleCriteriaNode
.- Version:
- $Id: $Id
- Author:
- steiner
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.NameAccessor
org.refcodes.mixin.NameAccessor.NameBuilder<B extends org.refcodes.mixin.NameAccessor.NameBuilder<B>>, org.refcodes.mixin.NameAccessor.NameMutator, org.refcodes.mixin.NameAccessor.NameProperty
-
Method Summary
Modifier and Type Method Description Criteria
getChild()
Returns the single childCriteria
being stored in thisCriteriaNode
.void
setChild(Criteria aCriteria)
Sets the single childCriteria
to be stored in thisCriteriaNode
.Methods inherited from interface org.refcodes.criteria.CriteriaNode
addChild, getChildren
Methods inherited from interface org.refcodes.mixin.NameAccessor
getName
-
Method Details
-
getChild
Criteria getChild()Returns the single childCriteria
being stored in thisCriteriaNode
.- Returns:
- The according child
Criteria
.
-
setChild
Sets the single childCriteria
to be stored in thisCriteriaNode
.- Parameters:
aCriteria
- The according childCriteria
.
-