Specifications.
This file is part of the everest project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
The central idea of a Specification is to separate the statement of how to match a candidate from the candidate object that it is matched against.
Bases: everest.querying.specifications.FilterSpecification
Abstract base class for specifications that are composed of two other specifications.
Constructs a CompositeFilterSpecification
Parameters: |
|
---|
Bases: everest.querying.specifications.CompositeFilterSpecification
Concrete conjuction specification.
Bases: everest.querying.specifications.LeafFilterSpecification
Abstract base class for specifications representing filter criteria.
Bases: everest.querying.specifications.CompositeFilterSpecification
Concrete disjuction specification.
Bases: everest.querying.base.Specification
Abstract base class for all filter specifications.
Generative method to create a ConjunctionFilterSpecification.
Parameters: | other (FilterSpecification) – the other specification |
---|---|
Returns: | a new conjuction specification |
Return type: | ConjunctionFilterSpecification |
Tells if the given candidate object matches this specification.
Parameters: | candidate (object) – the candidate object |
---|---|
Returns: | True if the specification is met by the candidate. |
Return type: | bool |
Generative method to create a NegationFilterSpecification
Returns: | a new negation specification |
---|---|
Return type: | NegationFilterSpecification |
Generative method to create a DisjuctionFilterSpecification
Parameters: | other (FilterSpecification) – the other specification |
---|---|
Returns: | a new disjuction specification |
Return type: | DisjuctionFilterSpecification |
Bases: object
Filter specification factory.
list of weak references to the object (if defined)
Bases: everest.querying.specifications.FilterSpecification
Abstract base class for specifications that represent leaves in a specification tree.
Bases: everest.querying.specifications.ObjectOrderSpecification
See http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html
Bases: everest.querying.specifications.FilterSpecification
Concrete negation specification.
Constructs a NegationFilterSpecification
Parameters: | wrapped (FilterSpecification) – the wrapped specification |
---|
Bases: object
Order specification factory.
list of weak references to the object (if defined)
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete value contained in a list of values specification
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete value contains specification
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete value ends with specification
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete value equal to specification
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete value greater than specification
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete value greater than or equal to specification
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete specification for a range of values
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete value less than specification
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete value less than or equal to specification
Bases: everest.querying.specifications.CriterionFilterSpecification
Concrete value starts with specification