public abstract class AbstractCriteriaNode extends AbstractCriteria implements CriteriaNode
CriteriaNode
functionality provided for CriteriaNode
implementations.Constructor and Description |
---|
AbstractCriteriaNode(String aName)
Constructs a
CriteriaNode with the given
name. |
AbstractCriteriaNode(String aName,
Criteria... aChildren)
Constructs a
CriteriaNode with the given
name and the provided Criteria children. |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Criteria aChild)
Adds a child
Criteria to the
CriteriaNode . |
List<Criteria> |
getChildren()
Returns the list of child
Criteria
instances contained in the CriteriaNode . |
getName
public AbstractCriteriaNode(String aName)
CriteriaNode
with the given
name.aName
- The name of the CriteriaNode
.public AbstractCriteriaNode(String aName, Criteria... aChildren)
CriteriaNode
with the given
name and the provided Criteria
children.aName
- The name of the CriteriaNode
.aChildren
- The Criteria
children to
be contained in the CriteriaNode
.public void addChild(Criteria aChild) throws IllegalStateException, IllegalArgumentException
Criteria
to the
CriteriaNode
. In case a specialized
CriteriaNode
applies constraints on the
number or type of Criteria
which may be
added, an according exception may be thrown. For example the
SingleCriteriaNode
applies constraints on
this method.addChild
in interface CriteriaNode
aChild
- The child Criteria
to be
added.IllegalStateException
- In case constraints in terms of
state are violated, implementation depended.IllegalArgumentException
- In case constraints in terms
of argument are violated, implementation depended.public List<Criteria> getChildren()
Criteria
instances contained in the CriteriaNode
.getChildren
in interface CriteriaNode
Criteria
instances contained in
the CriteriaNode
.Copyright © 2017. All rights reserved.