Package gov.nist.secauto.oscal.lib.model
Class Mapping
java.lang.Object
gov.nist.secauto.oscal.lib.model.Mapping
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Control Mapping",
description="A mapping between two target resources.",
name="mapping",
moduleClass=OscalMappingCommonModule.class)
public class Mapping
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
A mapping between two target resources.
-
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.getLinks()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetMaps()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetUuid()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.voidvoidsetCoverage(Coverage value) voidvoidsetMappingDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetMaps(List<MappingEntry> value) voidsetMatchingRationale(String value) voidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetSourceGapSummary(GapSummary value) voidvoidvoidsetTargetGapSummary(GapSummary value) voidvoidtoString()
-
Constructor Details
-
Mapping
public Mapping() -
Mapping
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getMethod
-
setMethod
-
getMatchingRationale
-
setMatchingRationale
-
getStatus
-
setStatus
-
getSourceResource
-
setSourceResource
-
getTargetResource
-
setTargetResource
-
getMaps
-
setMaps
-
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
-
setProps
-
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
-
setLinks
-
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
-
setRemarks
-
getMappingDescription
-
setMappingDescription
public void setMappingDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) -
getSourceGapSummary
-
setSourceGapSummary
-
getTargetGapSummary
-
setTargetGapSummary
-
getConfidenceScore
-
setConfidenceScore
-
getCoverage
-
setCoverage
-
toString
-