Interface IValueConstrained
-
- All Superinterfaces:
IConstrained
- All Known Subinterfaces:
IAssemblyDefinition
,IDefinition
,IFeatureFlagContainer<F>
,IFeatureInlinedDefinition<INSTANCE>
,gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureModelConstrained
,gov.nist.secauto.metaschema.core.model.constraint.impl.IFeatureValueConstrained
,IFieldDefinition
,IFlagContainer
,IFlagDefinition
,IModelConstrained
,ITargetedConstaints
,IValuedDefinition
- All Known Implementing Classes:
AbstractTargetedConstraints
public interface IValueConstrained extends IConstrained
Represents a container of rules constraining the effective model of a Metaschema field or flag data instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addConstraint(IAllowedValuesConstraint constraint)
void
addConstraint(IExpectConstraint constraint)
void
addConstraint(IIndexHasKeyConstraint constraint)
void
addConstraint(IMatchesConstraint constraint)
List<? extends IAllowedValuesConstraint>
getAllowedValuesConstraints()
Get the collection of allowed value constraints, if any.List<? extends IExpectConstraint>
getExpectConstraints()
Get the collection of expect constraints, if any.List<? extends IIndexHasKeyConstraint>
getIndexHasKeyConstraints()
Get the collection of index key reference constraints, if any.List<? extends IMatchesConstraint>
getMatchesConstraints()
Get the collection of matches constraints, if any.-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.constraint.IConstrained
getConstraints
-
-
-
-
Method Detail
-
getAllowedValuesConstraints
@NonNull List<? extends IAllowedValuesConstraint> getAllowedValuesConstraints()
Get the collection of allowed value constraints, if any.- Returns:
- the constraints or an empty list
-
getMatchesConstraints
@NonNull List<? extends IMatchesConstraint> getMatchesConstraints()
Get the collection of matches constraints, if any.- Returns:
- the constraints or an empty list
-
getIndexHasKeyConstraints
@NonNull List<? extends IIndexHasKeyConstraint> getIndexHasKeyConstraints()
Get the collection of index key reference constraints, if any.- Returns:
- the constraints or an empty list
-
getExpectConstraints
@NonNull List<? extends IExpectConstraint> getExpectConstraints()
Get the collection of expect constraints, if any.- Returns:
- the constraints or an empty list
-
addConstraint
void addConstraint(@NonNull IAllowedValuesConstraint constraint)
-
addConstraint
void addConstraint(@NonNull IMatchesConstraint constraint)
-
addConstraint
void addConstraint(@NonNull IIndexHasKeyConstraint constraint)
-
addConstraint
void addConstraint(@NonNull IExpectConstraint constraint)
-
-