Class AbstractModelConstraintProvider
- java.lang.Object
-
- com.ibm.fhir.model.constraint.spi.AbstractConstraintProvider
-
- com.ibm.fhir.model.constraint.spi.AbstractModelConstraintProvider
-
- All Implemented Interfaces:
ConstraintProvider
,ModelConstraintProvider
public abstract class AbstractModelConstraintProvider extends AbstractConstraintProvider implements ModelConstraintProvider
An abstract base class that extendsAbstractConstraintProvider
and implementsModelConstraintProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractModelConstraintProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addConstraints(java.util.List<Constraint> constraints)
Add zero or more constraints to the given list of constraints.protected void
addRemovalPredicates(java.util.List<java.util.function.Predicate<Constraint>> removalPredicates)
Add zero or more removal predicates to the given list of removal predicates.abstract boolean
appliesTo(java.lang.Class<?> modelClass)
Indicates whether this constraint provider applies to the given model class-
Methods inherited from class com.ibm.fhir.model.constraint.spi.AbstractConstraintProvider
constraint, constraint, constraint, getConstraints, getRemovalPredicates, idEquals, locationEquals, sourceEquals
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.model.constraint.spi.ConstraintProvider
getConstraints, getRemovalPredicates
-
-
-
-
Method Detail
-
appliesTo
public abstract boolean appliesTo(java.lang.Class<?> modelClass)
Description copied from interface:ModelConstraintProvider
Indicates whether this constraint provider applies to the given model class- Specified by:
appliesTo
in interfaceModelConstraintProvider
- Parameters:
modelClass
- the model class- Returns:
- true if this constraint provider applies to the given model class, false otherwise
-
addRemovalPredicates
protected void addRemovalPredicates(java.util.List<java.util.function.Predicate<Constraint>> removalPredicates)
Description copied from class:AbstractConstraintProvider
Add zero or more removal predicates to the given list of removal predicates.- Specified by:
addRemovalPredicates
in classAbstractConstraintProvider
- Parameters:
removalPredicates
- the list of removal predicates
-
addConstraints
protected void addConstraints(java.util.List<Constraint> constraints)
Description copied from class:AbstractConstraintProvider
Add zero or more constraints to the given list of constraints.- Specified by:
addConstraints
in classAbstractConstraintProvider
- Parameters:
constraints
- the list of constraints
-
-