Interface SingleCriteriaNode

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
    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.

    Methods inherited from interface org.refcodes.criteria.CriteriaNode

    addChild, getChildren

    Methods inherited from interface org.refcodes.mixin.NameAccessor

    getName