Class Mapping
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanaddMap(MappingEntry item) Add a newMappingEntryitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.Get the "Confidence Score".Get the "Coverage".getLinks()Get the "Link".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Mapping Description".getMaps()Get the "Mapping Entry".Get the "Matching".dev.metaschema.core.model.IMetaschemaDataGet the "Method".getProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Gap Summary".Get the "Mapped Resource Reference".Get the "Status".Get the "Gap Summary".Get the "Mapped Resource Reference".getUuid()Get the "Mapping Universally Unique Identifier".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveMap(MappingEntry item) Remove the first matchingMappingEntryitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidSet the "Confidence Score".voidsetCoverage(Coverage value) Set the "Coverage".voidSet the "Link".voidsetMappingDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Mapping Description".voidsetMaps(List<MappingEntry> value) Set the "Mapping Entry".voidsetMatchingRationale(String value) Set the "Matching".voidSet the "Method".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetSourceGapSummary(GapSummary value) Set the "Gap Summary".voidSet the "Mapped Resource Reference".voidSet the "Status".voidsetTargetGapSummary(GapSummary value) Set the "Gap Summary".voidSet the "Mapped Resource Reference".voidSet the "Mapping Universally Unique Identifier".toString()
-
Constructor Details
-
Mapping
public Mapping()Constructs a newdev.metaschema.oscal.lib.model.Mappinginstance with no metadata. -
Mapping
Constructs a newdev.metaschema.oscal.lib.model.Mappinginstance 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 Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this mapping definition elsewhere in this or other OSCAL instances. The locally defined UUID of the
mappingcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same mapping across revisions of the document.- Returns:
- the uuid value
-
setUuid
Set the "Mapping Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this mapping definition elsewhere in this or other OSCAL instances. The locally defined UUID of the
mappingcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same mapping across revisions of the document.- Parameters:
value- the uuid value to set
-
getMethod
Get the "Method".The method used to complete the overall mapping.
- Returns:
- the method value, or
nullif not set
-
setMethod
Set the "Method".The method used to complete the overall mapping.
- Parameters:
value- the method value to set, ornullto clear
-
getMatchingRationale
Get the "Matching".The method used for relating controls within the mapping. The supported methods are aligned with the NIST Interagency Report (IR) 8477, Section 4.3 Set Theory Relationship Mapping.
- Returns:
- the matching-rationale value, or
nullif not set
-
setMatchingRationale
Set the "Matching".The method used for relating controls within the mapping. The supported methods are aligned with the NIST Interagency Report (IR) 8477, Section 4.3 Set Theory Relationship Mapping.
- Parameters:
value- the matching-rationale value to set, ornullto clear
-
getStatus
Get the "Status".The current status of this mapping document.
- Returns:
- the status value, or
nullif not set
-
setStatus
Set the "Status".The current status of this mapping document.
- Parameters:
value- the status value to set, ornullto clear
-
getSourceResource
Get the "Mapped Resource Reference".A reference to a resource that is either the source or the target of a mapping.
- Returns:
- the source-resource value
-
setSourceResource
Set the "Mapped Resource Reference".A reference to a resource that is either the source or the target of a mapping.
- Parameters:
value- the source-resource value to set
-
getTargetResource
Get the "Mapped Resource Reference".A reference to a resource that is either the source or the target of a mapping.
- Returns:
- the target-resource value
-
setTargetResource
Set the "Mapped Resource Reference".A reference to a resource that is either the source or the target of a mapping.
- Parameters:
value- the target-resource value to set
-
getMaps
Get the "Mapping Entry".A relationship-based mapping between a source and target set consisting of members (i.e., controls, control statements) from the respective source and target.
- Returns:
- the map value
-
setMaps
Set the "Mapping Entry".A relationship-based mapping between a source and target set consisting of members (i.e., controls, control statements) from the respective source and target.
- Parameters:
value- the map value to set
-
addMap
Add a newMappingEntryitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMap
Remove the first matchingMappingEntryitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
getMappingDescription
Get the "Mapping Description".Description of the context and intended use of the mapping set.
- Returns:
- the mapping-description value, or
nullif not set
-
setMappingDescription
public void setMappingDescription(@Nullable dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Mapping Description".Description of the context and intended use of the mapping set.
- Parameters:
value- the mapping-description value to set, ornullto clear
-
getSourceGapSummary
Get the "Gap Summary".A by-id collection of all controls that were not mapped at all in this
mapping-collection. If a control is partially mapped, the parts of the control are not mappable, the gap and discrepancies should be documented in therelationship-gal.- Returns:
- the source-gap-summary value, or
nullif not set
-
setSourceGapSummary
Set the "Gap Summary".A by-id collection of all controls that were not mapped at all in this
mapping-collection. If a control is partially mapped, the parts of the control are not mappable, the gap and discrepancies should be documented in therelationship-gal.- Parameters:
value- the source-gap-summary value to set, ornullto clear
-
getTargetGapSummary
Get the "Gap Summary".A by-id collection of all controls that were not mapped at all in this
mapping-collection. If a control is partially mapped, the parts of the control are not mappable, the gap and discrepancies should be documented in therelationship-gal.- Returns:
- the target-gap-summary value, or
nullif not set
-
setTargetGapSummary
Set the "Gap Summary".A by-id collection of all controls that were not mapped at all in this
mapping-collection. If a control is partially mapped, the parts of the control are not mappable, the gap and discrepancies should be documented in therelationship-gal.- Parameters:
value- the target-gap-summary value to set, ornullto clear
-
getConfidenceScore
Get the "Confidence Score".This records either a string category or a decimal value from 0-1 representing a percentage. Both of these values describe an estimation of the author's confidence that this mapping is correct and accurate.
- Returns:
- the confidence-score value, or
nullif not set
-
setConfidenceScore
Set the "Confidence Score".This records either a string category or a decimal value from 0-1 representing a percentage. Both of these values describe an estimation of the author's confidence that this mapping is correct and accurate.
- Parameters:
value- the confidence-score value to set, ornullto clear
-
getCoverage
Get the "Coverage".A decimal value from 0-1, representing the percentage coverage of the targets by the sources.
- Returns:
- the coverage value, or
nullif not set
-
setCoverage
Set the "Coverage".A decimal value from 0-1, representing the percentage coverage of the targets by the sources.
- Parameters:
value- the coverage value to set, ornullto clear
-
toString
-