Class MappingEntry
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.MappingEntryinstance with no metadata.MappingEntry(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.MappingEntryinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanaddQualifier(QualifierItem item) Add a newQualifierItemitem to the underlying collection.booleanaddSource(MappingItem item) Add a newMappingItemitem to the underlying collection.booleanaddTarget(MappingItem item) Add a newMappingItemitem to the underlying collection.Get the "Confidence Score".Get the "Coverage".getLinks()Get the "Link".Get the "Matching".dev.metaschema.core.model.IMetaschemaDatagetNs()Get the "Relationship Value Namespace".getProps()Get the "Property".Get the "Relationship Qualifier".Get the "Mapping Entry Relationship".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Mapping Entry Item (source or target)".Get the "Mapping Entry Item (source or target)".getUuid()Get the "Mapping Entry Identifier".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanremoveQualifier(QualifierItem item) Remove the first matchingQualifierItemitem from the underlying collection.booleanremoveSource(MappingItem item) Remove the first matchingMappingItemitem from the underlying collection.booleanremoveTarget(MappingItem item) Remove the first matchingMappingItemitem from the underlying collection.voidSet the "Confidence Score".voidsetCoverage(Coverage value) Set the "Coverage".voidSet the "Link".voidsetMatchingRationale(String value) Set the "Matching".voidSet the "Relationship Value Namespace".voidSet the "Property".voidsetQualifiers(List<QualifierItem> value) Set the "Relationship Qualifier".voidsetRelationship(String value) Set the "Mapping Entry Relationship".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetSources(List<MappingItem> value) Set the "Mapping Entry Item (source or target)".voidsetTargets(List<MappingItem> value) Set the "Mapping Entry Item (source or target)".voidSet the "Mapping Entry Identifier".toString()
-
Constructor Details
-
MappingEntry
public MappingEntry()Constructs a newdev.metaschema.oscal.lib.model.MappingEntryinstance with no metadata. -
MappingEntry
Constructs a newdev.metaschema.oscal.lib.model.MappingEntryinstance 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 Entry Identifier".The unique identifier for the mapping entry.
- Returns:
- the uuid value
-
setUuid
Set the "Mapping Entry Identifier".The unique identifier for the mapping entry.
- Parameters:
value- the uuid value to set
-
getNs
Get the "Relationship Value Namespace".A namespace qualifying the relationship's value. This allows different organizations to associate distinct semantics for relationships with the same name.
- Returns:
- the ns value, or
nullif not set
-
setNs
Set the "Relationship Value Namespace".A namespace qualifying the relationship's value. This allows different organizations to associate distinct semantics for relationships with the same name.
- Parameters:
value- the ns 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
-
getRelationship
Get the "Mapping Entry Relationship".The relationship type for the mapping entry, which describes the relationship between the effective requirements of the specified source and target sets in the context of the
matching-rationalemethod globaly defined in theprovenanceunless overwritten locally in themap. Therelationshiptype and thematching-rationalemust be used together. However, more than onematching-rationalemethod may apply to asourceandtargetpair.- Returns:
- the relationship value
-
setRelationship
Set the "Mapping Entry Relationship".The relationship type for the mapping entry, which describes the relationship between the effective requirements of the specified source and target sets in the context of the
matching-rationalemethod globaly defined in theprovenanceunless overwritten locally in themap. Therelationshiptype and thematching-rationalemust be used together. However, more than onematching-rationalemethod may apply to asourceandtargetpair.- Parameters:
value- the relationship value to set
-
getSources
Get the "Mapping Entry Item (source or target)".A specific edge within a source or target that is the subject of a mapping.
- Returns:
- the source value
-
setSources
Set the "Mapping Entry Item (source or target)".A specific edge within a source or target that is the subject of a mapping.
- Parameters:
value- the source value to set
-
addSource
Add a newMappingItemitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSource
Remove the first matchingMappingItemitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTargets
Get the "Mapping Entry Item (source or target)".A specific edge within a source or target that is the subject of a mapping.
- Returns:
- the target value
-
setTargets
Set the "Mapping Entry Item (source or target)".A specific edge within a source or target that is the subject of a mapping.
- Parameters:
value- the target value to set
-
addTarget
Add a newMappingItemitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTarget
Remove the first matchingMappingItemitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getQualifiers
Get the "Relationship Qualifier".Describes requirements, incompatibilities and gaps that are identified between a target and source in a mapping item.
- Returns:
- the qualifier value
-
setQualifiers
Set the "Relationship Qualifier".Describes requirements, incompatibilities and gaps that are identified between a target and source in a mapping item.
- Parameters:
value- the qualifier value to set
-
addQualifier
Add a newQualifierItemitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeQualifier
Remove the first matchingQualifierItemitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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
-
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
-
toString
-