Class MetaschemaModuleConstraints
- All Implemented Interfaces:
IBoundObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeclares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets.static classA binding class for thescopedefinition. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraintsinstance with no metadata.Constructs a newdev.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraintsinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newMetaschemaModuleConstraints.Importitem to the underlying collection.booleanAdd a newMetapathNamespaceitem to the underlying collection.booleanAdd a newMetaschemaModuleConstraints.Scopeitem to the underlying collection.Get theimportproperty.Get additional Metaschema-related information for the object (i.e., resource location).getName()Get thenameproperty.Get the metapath Namespace Declaration.Get thescopeproperty.Get theversionproperty.booleanRemove the first matchingMetaschemaModuleConstraints.Importitem from the underlying collection.booleanRemove the first matchingMetapathNamespaceitem from the underlying collection.booleanRemove the first matchingMetaschemaModuleConstraints.Scopeitem from the underlying collection.voidSet theimportproperty.voidSet thenameproperty.voidSet the metapath Namespace Declaration.voidSet thescopeproperty.voidsetVersion(String value) Set theversionproperty.toString()
-
Constructor Details
-
MetaschemaModuleConstraints
public MetaschemaModuleConstraints()Constructs a newdev.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraintsinstance with no metadata. -
MetaschemaModuleConstraints
Constructs a newdev.metaschema.databind.model.metaschema.binding.MetaschemaModuleConstraintsinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
Description copied from interface:IBoundObjectGet additional Metaschema-related information for the object (i.e., resource location).- Specified by:
getMetaschemaDatain interfaceIBoundObject- Returns:
- the Metaschema-related information
-
getName
Get thenameproperty.The name of this constraint set.
- Returns:
- the name value
-
setName
Set thenameproperty.The name of this constraint set.
- Parameters:
value- the name value to set
-
getVersion
Get theversionproperty.The version of this constraint set. A version string used to distinguish between multiple revisions of the same resource.
- Returns:
- the version value
-
setVersion
Set theversionproperty.The version of this constraint set. A version string used to distinguish between multiple revisions of the same resource.
- Parameters:
value- the version value to set
-
getImports
Get theimportproperty.Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets.
- Returns:
- the import value
-
setImports
Set theimportproperty.Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets.
- Parameters:
value- the import value to set
-
addImport
Add a newMetaschemaModuleConstraints.Importitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeImport
Remove the first matchingMetaschemaModuleConstraints.Importitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getNamespaceBindings
Get the metapath Namespace Declaration.Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name.
- Returns:
- the namespace-binding value
-
setNamespaceBindings
Set the metapath Namespace Declaration.Assigns a Metapath namespace to a prefix for use in a Metapath expression in a lexical qualified name.
- Parameters:
value- the namespace-binding value to set
-
addNamespaceBinding
Add a newMetapathNamespaceitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeNamespaceBinding
Remove the first matchingMetapathNamespaceitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getScopes
Get thescopeproperty.- Returns:
- the scope value
-
setScopes
Set thescopeproperty.- Parameters:
value- the scope value to set
-
addScope
Add a newMetaschemaModuleConstraints.Scopeitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeScope
Remove the first matchingMetaschemaModuleConstraints.Scopeitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-