it.amattioli.dominate.specifications
Class CompositeSpecification<T extends Entity<?>>

Show UML class diagram
java.lang.Object
  extended by it.amattioli.dominate.specifications.AbstractSpecification<T>
      extended by it.amattioli.dominate.specifications.CompositeSpecification<T>
All Implemented Interfaces:
Specification<T>, PropertyChangeEmitter
Direct Known Subclasses:
ConjunctionSpecification, DisjunctionSpecification

public abstract class CompositeSpecification<T extends Entity<?>>
extends AbstractSpecification<T>


Constructor Summary
CompositeSpecification()
           
CompositeSpecification(Specification<T>... specs)
           
 
Method Summary
 void addSpecification(Specification<T> spec)
           
protected  Collection<Specification<T>> getSpecifications()
           
 void removeSpecification(Specification<T> spec)
           
 boolean supportsAssembler(Assembler assembler)
          Check if the passed query assembler can be passed to the Specification.assembleQuery(Assembler) of thie specification
 boolean wasSet()
          If this specification is parametric check if the parameter(s) has been set.
 
Methods inherited from class it.amattioli.dominate.specifications.AbstractSpecification
addPropertyChangeListener, firePropertyChange, isSatisfiedIfNotSet, removePropertyChangeListener, setSatisfiedIfNotSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.amattioli.dominate.Specification
assembleQuery, isSatisfiedBy
 

Constructor Detail

CompositeSpecification

public CompositeSpecification()

CompositeSpecification

public CompositeSpecification(Specification<T>... specs)
Method Detail

addSpecification

public void addSpecification(Specification<T> spec)

removeSpecification

public void removeSpecification(Specification<T> spec)

getSpecifications

protected Collection<Specification<T>> getSpecifications()

supportsAssembler

public boolean supportsAssembler(Assembler assembler)
Description copied from interface: Specification
Check if the passed query assembler can be passed to the Specification.assembleQuery(Assembler) of thie specification

Returns:

wasSet

public boolean wasSet()
Description copied from interface: Specification
If this specification is parametric check if the parameter(s) has been set. If this specification is not parametric always returns true.

Returns:


Copyright © 2011. All Rights Reserved.