Package com.example.metaschema
Class MetaschemaModuleConstraints
java.lang.Object
com.example.metaschema.MetaschemaModuleConstraints
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="External Module Constraints",
description="Defines constraint rules to be applied to an existing set of Metaschema module-based models.",
name="metaschema-module-constraints",
moduleClass=MetaschemaModelModule.class,
rootName="METASCHEMA-CONSTRAINTS",
valueConstraints=@ValueConstraints(lets=@Let(name="deprecated-type-map",target="map { \'base64Binary\':\'base64\',\'dateTime\':\'date-time\',\'dateTime-with-timezone\':\'date-time-with-timezone\',\'email\':\'email-address\',\'nonNegativeInteger\':\'non-negative-integer\',\'positiveInteger\':\'positive-integer\' }"),expect=@Expect(id="metaschema-deprecated-types",formalName="Avoid Deprecated Data Type Use",description="Ensure that the data type specified is not one of the legacy Metaschema data types which have been deprecated (i.e. base64Binary, dateTime, dateTime-with-timezone, email, nonNegativeInteger, positiveInteger).",level=WARNING,target=".//matches/@datatype|.//(define-field|define-flag)/@as-type",test="not(.=(\'base64Binary\',\'dateTime\',\'dateTime-with-timezone\',\'email\',\'nonNegativeInteger\',\'positiveInteger\'))",message="Use of the type \'{ . }\' is deprecated. Use \'{ $deprecated-type-map(.)}\' instead.")))
public class MetaschemaModuleConstraints
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Defines constraint rules to be applied to an existing set of Metaschema module-based models.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Declares a set of Metaschema constraints from an out-of-line resource to import, supporting composition of constraint sets.static class
-
Constructor Summary
ConstructorDescriptionMetaschemaModuleConstraints
(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newMetaschemaModuleConstraints.Import
item to the underlying collection.boolean
Add a newMetapathNamespace
item to the underlying collection.boolean
Add a newMetaschemaModuleConstraints.Scope
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
getName()
boolean
Remove the first matchingMetaschemaModuleConstraints.Import
item from the underlying collection.boolean
Remove the first matchingMetapathNamespace
item from the underlying collection.boolean
Remove the first matchingMetaschemaModuleConstraints.Scope
item from the underlying collection.void
void
void
void
void
setVersion
(String value) toString()
-
Constructor Details
-
MetaschemaModuleConstraints
public MetaschemaModuleConstraints() -
MetaschemaModuleConstraints
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getName
-
setName
-
getVersion
-
setVersion
-
getImports
-
setImports
-
addImport
Add a newMetaschemaModuleConstraints.Import
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeImport
Remove the first matchingMetaschemaModuleConstraints.Import
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getNamespaceBindings
-
setNamespaceBindings
-
addNamespaceBinding
Add a newMetapathNamespace
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeNamespaceBinding
Remove the first matchingMetapathNamespace
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getScopes
-
setScopes
-
addScope
Add a newMetaschemaModuleConstraints.Scope
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeScope
Remove the first matchingMetaschemaModuleConstraints.Scope
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-