Class MappingCollection
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,IOscalInstance
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.MappingCollectioninstance with no metadata.MappingCollection(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.MappingCollectioninstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddMapping(Mapping item) Add a newMappingitem to the underlying collection.Get the "Back matter".Get the "Control Mapping".Get the "Document Metadata".dev.metaschema.core.model.IMetaschemaDataGet the "Mapping Provenance".getUuid()Get the "Mapping Collection Universally Unique Identifier".booleanremoveMapping(Mapping item) Remove the first matchingMappingitem from the underlying collection.voidsetBackMatter(BackMatter value) Set the "Back matter".voidsetMappings(List<Mapping> value) Set the "Control Mapping".voidsetMetadata(Metadata value) Set the "Document Metadata".voidsetProvenance(MappingProvenance value) Set the "Mapping Provenance".voidSet the "Mapping Collection Universally Unique Identifier".toString()Methods inherited from class dev.metaschema.oscal.lib.model.AbstractOscalInstance
getResourceByUuid
-
Constructor Details
-
MappingCollection
public MappingCollection()Constructs a newdev.metaschema.oscal.lib.model.MappingCollectioninstance with no metadata. -
MappingCollection
Constructs a newdev.metaschema.oscal.lib.model.MappingCollectioninstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "Mapping Collection Universally Unique Identifier".A globally unique identifier with cross-instance scope for this catalog instance. This UUID should be changed when this document is revised.
- Specified by:
getUuidin interfaceIOscalInstance- Returns:
- the uuid value
-
setUuid
Set the "Mapping Collection Universally Unique Identifier".A globally unique identifier with cross-instance scope for this catalog instance. This UUID should be changed when this document is revised.
- Parameters:
value- the uuid value to set
-
getMetadata
Get the "Document Metadata".Provides information about the containing document, and defines concepts that are shared across the document.
- Specified by:
getMetadatain interfaceIOscalInstance- Returns:
- the metadata value
-
setMetadata
Set the "Document Metadata".Provides information about the containing document, and defines concepts that are shared across the document.
- Parameters:
value- the metadata value to set
-
getProvenance
Get the "Mapping Provenance".Describes requirements, incompatibilities and gaps that are identified between a target and source in a mapping item.
- Returns:
- the provenance value
-
setProvenance
Set the "Mapping Provenance".Describes requirements, incompatibilities and gaps that are identified between a target and source in a mapping item.
- Parameters:
value- the provenance value to set
-
getMappings
Get the "Control Mapping".A mapping between two target resources.
- Returns:
- the mapping value
-
setMappings
Set the "Control Mapping".A mapping between two target resources.
- Parameters:
value- the mapping value to set
-
addMapping
Add a newMappingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMapping
Remove the first matchingMappingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getBackMatter
Get the "Back matter".A collection of resources that may be referenced from within the OSCAL document instance.
- Specified by:
getBackMatterin interfaceIOscalInstance- Returns:
- the back-matter value, or
nullif not set
-
setBackMatter
Set the "Back matter".A collection of resources that may be referenced from within the OSCAL document instance.
- Parameters:
value- the back-matter value to set, ornullto clear
-
toString
-