public class ConstraintQueryBuilder extends Object
AccessQuery
from a single constraint by assembling all
of the individual functions that make up the constraint.Constructor and Description |
---|
ConstraintQueryBuilder()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addConstraintFunction(AccessConstraintEvaluator evaluator)
Adds a constraint function to the query.
|
void |
addConstraintFunction(AccessConstraintEvaluator evaluator,
IServiceProvider requiredTimeObserver)
Adds a constraint function to the query.
|
List<AccessConstraintEvaluator> |
getEvaluators()
Gets the list of evaluators that are part of this constraint query.
|
IServiceProvider |
getInputTimeObserver()
Gets the
IServiceProvider to use as the time observer for this query. |
List<IServiceProvider> |
getRequiredTimeObservers()
Gets the list of time observers required by each evaluator in this constraint query.
|
void |
setInputTimeObserver(IServiceProvider value)
Sets the
IServiceProvider to use as the time observer for this query. |
public ConstraintQueryBuilder()
public final IServiceProvider getInputTimeObserver()
IServiceProvider
to use as the time observer for this query.
Inputs into this query will be adjusted as necessary for the time observers of the constraints
in the query.public final void setInputTimeObserver(IServiceProvider value)
IServiceProvider
to use as the time observer for this query.
Inputs into this query will be adjusted as necessary for the time observers of the constraints
in the query.@Nonnull public final List<AccessConstraintEvaluator> getEvaluators()
ConstraintQueryBuilder.addConstraintFunction(AccessConstraintEvaluator,IServiceProvider)
.@Nonnull public final List<IServiceProvider> getRequiredTimeObservers()
Evaluators
(get
).public final void addConstraintFunction(AccessConstraintEvaluator evaluator)
The default participant for a constraint is:
ISingleObjectConstraint
, the
ConstrainedObject
(get
/ set
).
ILinkConstraint
, the participant on the
end of the ConstrainedLink
(get
/ set
) indicated by
ConstrainedLinkEnd
(get
/ set
).
evaluator
- The evaluator for the constraint function to add.public final void addConstraintFunction(AccessConstraintEvaluator evaluator, IServiceProvider requiredTimeObserver)
evaluator
- The evaluator for the constraint function to add.requiredTimeObserver
- The participant on which times passed to the evaluator should be expressed. For a constraint
that implements ISingleObjectConstraint
, this parameter must be null
or the same as ConstrainedObject
(get
/ set
). For a constraint that implements
ILinkConstraint
, this parameter must be null
or the same as one of the
two ends of the ConstrainedLink
(get
/ set
).
If this parameter is null
, this method is identical to
ConstraintQueryBuilder.addConstraintFunction(AccessConstraintEvaluator)
.