public interface SingleCriteriaNode extends CriteriaNode
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
.
Modifier and Type | Method and Description |
---|---|
Criteria |
getChild()
Returns the single child
Criteria being stored in this
CriteriaNode . |
void |
setChild(Criteria aCriteria)
Sets the single child
Criteria to be stored in this
CriteriaNode . |
addChild, getChildren
Criteria getChild()
Criteria
being stored in this
CriteriaNode
.Criteria
.void setChild(Criteria aCriteria)
Criteria
to be stored in this
CriteriaNode
.aCriteria
- The according child Criteria
.Copyright © 2015. All rights reserved.