Class AbstractTargetedConstraints<T extends IValueConstrained>
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.model.constraint.AbstractTargetedConstraints<T>
-
- Type Parameters:
T
- the type of the constraint container
- All Implemented Interfaces:
IConstrained
,gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureValueConstrained
,ITargetedConstaints
,IValueConstrained
public abstract class AbstractTargetedConstraints<T extends IValueConstrained> extends Object implements ITargetedConstaints, gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureValueConstrained
Provides an base implementation for a set of external constraints that target a given definition using a target Metapath expression.
-
-
Constructor Summary
Constructors Constructor Description AbstractTargetedConstraints(MetapathExpression targetExpression, T constraints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyTo(IDefinition definition)
T
getConstraintSupport()
Lazy initialize the instances for the constraints when the constraints are first accessed.MetapathExpression
getTargetExpression()
void
target(IAssemblyDefinition definition)
void
target(IFieldDefinition definition)
void
target(IFlagDefinition definition)
-
-
-
Constructor Detail
-
AbstractTargetedConstraints
public AbstractTargetedConstraints(@NonNull MetapathExpression targetExpression, @NonNull T constraints)
-
-
Method Detail
-
getTargetExpression
public MetapathExpression getTargetExpression()
- Specified by:
getTargetExpression
in interfaceITargetedConstaints
-
getConstraintSupport
public T getConstraintSupport()
Description copied from interface:gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureValueConstrained
Lazy initialize the instances for the constraints when the constraints are first accessed.- Specified by:
getConstraintSupport
in interfacegov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureValueConstrained
- Returns:
- the constraints instance
-
applyTo
protected void applyTo(@NonNull IDefinition definition)
-
target
public void target(@NonNull IFlagDefinition definition)
- Specified by:
target
in interfaceITargetedConstaints
-
target
public void target(@NonNull IFieldDefinition definition)
- Specified by:
target
in interfaceITargetedConstaints
-
target
public void target(@NonNull IAssemblyDefinition definition)
- Specified by:
target
in interfaceITargetedConstaints
-
-