Module dev.metaschema.core
Interface IFeatureValueConstrained
- All Superinterfaces:
IValueConstrained
- All Known Subinterfaces:
IAssemblyDefinition,IBindingDefinitionModel,IBindingDefinitionModelAssembly,IBoundDefinition,IBoundDefinitionFlag,IBoundDefinitionModel<ITEM>,IBoundDefinitionModelAssembly,IBoundDefinitionModelComplex,IBoundDefinitionModelField<ITEM>,IBoundDefinitionModelFieldComplex,IBoundInstanceFlag,IBoundInstanceModelFieldScalar,IDefinition,IFeatureContainerFlag<FI>,IFeatureDefinitionInstanceInlined<DEFINITION,,INSTANCE> IFeatureModelConstrained,IFieldDefinition,IFlagDefinition,IModelDefinition,IValuedDefinition
- All Known Implementing Classes:
AbstractGlobalAssemblyDefinition,AbstractGlobalDefinition,AbstractGlobalFieldDefinition,AbstractGlobalFlagDefinition,AbstractInlineAssemblyDefinition,AbstractInlineFieldDefinition,AbstractInlineFlagDefinition,AbstractTargetedConstraints,AssemblyTargetedConstraints,FieldTargetedConstraints,FlagTargetedConstraints,ModelTargetedConstraints
A marker interface for a Metaschema valued construct (i.e. flag, field) that
can be constrained using Metaschema constraints.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddConstraint(IAllowedValuesConstraint constraint) Add a new constraint.default voidaddConstraint(IExpectConstraint constraint) Add a new constraint.default voidaddConstraint(IIndexHasKeyConstraint constraint) Add a new constraint.default voidaddConstraint(IMatchesConstraint constraint) Add a new constraint.default voidaddConstraint(IReportConstraint constraint) Add a new constraint.default ILetaddLetExpression(ILet let) Add a new let expression.default List<? extends IAllowedValuesConstraint>Get the collection of allowed value constraints, if any.default List<? extends IConstraint>Retrieve the ordered collection of constraints.Lazy initialize the instances for the constraints when the constraints are first accessed.default List<? extends IExpectConstraint>Get the collection of expect constraints, if any.default List<? extends IIndexHasKeyConstraint>Get the collection of index key reference constraints, if any.default Map<IEnhancedQName,ILet> Get the collection of let expressions, if any.default List<? extends IMatchesConstraint>Get the collection of matches constraints, if any.default List<? extends IReportConstraint>Get the collection of report constraints, if any.Methods inherited from interface dev.metaschema.core.model.constraint.IValueConstrained
getSource
-
Method Details
-
getConstraintSupport
Lazy initialize the instances for the constraints when the constraints are first accessed.- Returns:
- the constraints instance
-
addLetExpression
Description copied from interface:IValueConstrainedAdd a new let expression.- Specified by:
addLetExpressionin interfaceIValueConstrained- Parameters:
let- the let statement to add- Returns:
- the original let with the same name or
nullif no let existed with the same name
-
getLetExpressions
Description copied from interface:IValueConstrainedGet the collection of let expressions, if any.- Specified by:
getLetExpressionsin interfaceIValueConstrained- Returns:
- the constraints or an empty list
-
getConstraints
Description copied from interface:IValueConstrainedRetrieve the ordered collection of constraints.- Specified by:
getConstraintsin interfaceIValueConstrained- Returns:
- the constraints or an empty list
-
getAllowedValuesConstraints
Description copied from interface:IValueConstrainedGet the collection of allowed value constraints, if any.- Specified by:
getAllowedValuesConstraintsin interfaceIValueConstrained- Returns:
- the constraints or an empty list
-
getMatchesConstraints
Description copied from interface:IValueConstrainedGet the collection of matches constraints, if any.- Specified by:
getMatchesConstraintsin interfaceIValueConstrained- Returns:
- the constraints or an empty list
-
getIndexHasKeyConstraints
Description copied from interface:IValueConstrainedGet the collection of index key reference constraints, if any.- Specified by:
getIndexHasKeyConstraintsin interfaceIValueConstrained- Returns:
- the constraints or an empty list
-
getExpectConstraints
Description copied from interface:IValueConstrainedGet the collection of expect constraints, if any.- Specified by:
getExpectConstraintsin interfaceIValueConstrained- Returns:
- the constraints or an empty list
-
getReportConstraints
Description copied from interface:IValueConstrainedGet the collection of report constraints, if any.- Specified by:
getReportConstraintsin interfaceIValueConstrained- Returns:
- the constraints or an empty list
-
addConstraint
Description copied from interface:IValueConstrainedAdd a new constraint.- Specified by:
addConstraintin interfaceIValueConstrained- Parameters:
constraint- the constraint to add
-
addConstraint
Description copied from interface:IValueConstrainedAdd a new constraint.- Specified by:
addConstraintin interfaceIValueConstrained- Parameters:
constraint- the constraint to add
-
addConstraint
Description copied from interface:IValueConstrainedAdd a new constraint.- Specified by:
addConstraintin interfaceIValueConstrained- Parameters:
constraint- the constraint to add
-
addConstraint
Description copied from interface:IValueConstrainedAdd a new constraint.- Specified by:
addConstraintin interfaceIValueConstrained- Parameters:
constraint- the constraint to add
-
addConstraint
Description copied from interface:IValueConstrainedAdd a new constraint.- Specified by:
addConstraintin interfaceIValueConstrained- Parameters:
constraint- the constraint to add
-