Class AbstractCriteriaNode

    • 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
    • Constructor Detail

      • AbstractCriteriaNode

        public AbstractCriteriaNode​(java.lang.String aName)
        Constructs a CriteriaNode with the given name.
        Parameters:
        aName - The name of the CriteriaNode.
      • AbstractCriteriaNode

        public AbstractCriteriaNode​(java.lang.String aName,
                                    Criteria... aChildren)
        Constructs a CriteriaNode with the given name and the provided Criteria children.
        Parameters:
        aName - The name of the CriteriaNode.
        aChildren - The Criteria children to be contained in the CriteriaNode.
    • Method Detail

      • addChild

        public void addChild​(Criteria aChild)
                      throws java.lang.IllegalStateException,
                             java.lang.IllegalArgumentException
        Adds a child 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.
        Specified by:
        addChild in interface CriteriaNode
        Parameters:
        aChild - The child Criteria to be added.
        Throws:
        java.lang.IllegalStateException - In case constraints in terms of state are violated, implementation depended.
        java.lang.IllegalArgumentException - In case constraints in terms of argument are violated, implementation depended.