Module dev.metaschema.databind
Class AssemblyConstraints
java.lang.Object
dev.metaschema.databind.model.metaschema.binding.AssemblyConstraints
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,IModelConstraintsBase,IValueConstraintsBase
@MetaschemaAssembly(name="assembly-constraints",
moduleClass=MetaschemaModelModule.class)
public class AssemblyConstraints
extends Object
implements IModelConstraintsBase
A binding class for the
assembly-constraints definition.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.model.metaschema.binding.AssemblyConstraintsinstance with no metadata.AssemblyConstraints(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.databind.model.metaschema.binding.AssemblyConstraintsinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newConstraintLetExpressionitem to the underlying collection.getLets()Get the constraint Let Expression.dev.metaschema.core.model.IMetaschemaDataList<? extends ITargetedConstraintBase>getRules()Get theruleschoice group items.booleanRemove the first matchingConstraintLetExpressionitem from the underlying collection.voidsetLets(List<ConstraintLetExpression> value) Set the constraint Let Expression.voidsetRules(List<? extends ITargetedConstraintBase> value) Set theruleschoice group items.toString()
-
Constructor Details
-
AssemblyConstraints
public AssemblyConstraints()Constructs a newdev.metaschema.databind.model.metaschema.binding.AssemblyConstraintsinstance with no metadata. -
AssemblyConstraints
Constructs a newdev.metaschema.databind.model.metaschema.binding.AssemblyConstraintsinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getLets
Get the constraint Let Expression.- Specified by:
getLetsin interfaceIValueConstraintsBase- Returns:
- the let value
-
setLets
Set the constraint Let Expression.- Parameters:
value- the let value to set
-
addLet
Add a newConstraintLetExpressionitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLet
Remove the first matchingConstraintLetExpressionitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRules
Get theruleschoice group items.Items in this collection implement
ITargetedConstraintBase.- Specified by:
getRulesin interfaceIModelConstraintsBase- Specified by:
getRulesin interfaceIValueConstraintsBase- Returns:
- the rules items
-
setRules
Set theruleschoice group items.Items in this collection must implement
ITargetedConstraintBase.- Parameters:
value- the rules items to set
-
toString
-