Class AbstractProfileConstraintProvider
- java.lang.Object
-
- com.ibm.fhir.model.constraint.spi.AbstractConstraintProvider
-
- com.ibm.fhir.profile.constraint.spi.AbstractProfileConstraintProvider
-
- All Implemented Interfaces:
ConstraintProvider
,ProfileConstraintProvider
public abstract class AbstractProfileConstraintProvider extends AbstractConstraintProvider implements ProfileConstraintProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractProfileConstraintProvider()
-
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.String url, java.lang.String version)
Indicates whether this constraint provider applies to a profile with the given url and version-
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.String url, java.lang.String version)
Description copied from interface:ProfileConstraintProvider
Indicates whether this constraint provider applies to a profile with the given url and version- Specified by:
appliesTo
in interfaceProfileConstraintProvider
- Parameters:
url
- the urlversion
- the version- Returns:
- true if this constraint provider applies to a profile with the given url and version, 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
-
-