Class Risk.MitigatingFactor
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Risk
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.Risk.MitigatingFactorinstance with no metadata.MitigatingFactor(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.Risk.MitigatingFactorinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanaddSubject(SubjectReference item) Add a newSubjectReferenceitem to the underlying collection.dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Mitigating Factor Description".Get the "Implementation UUID".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".Get the "Identifies the Subject".getUuid()Get the "Mitigating Factor Universally Unique Identifier".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingSubjectReferenceitem from the underlying collection.voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Mitigating Factor Description".voidsetImplementationUuid(UUID value) Set the "Implementation UUID".voidSet the "Link".voidSet the "Property".voidsetSubjects(List<SubjectReference> value) Set the "Identifies the Subject".voidSet the "Mitigating Factor Universally Unique Identifier".toString()
-
Constructor Details
-
MitigatingFactor
public MitigatingFactor()Constructs a newdev.metaschema.oscal.lib.model.Risk.MitigatingFactorinstance with no metadata. -
MitigatingFactor
Constructs a newdev.metaschema.oscal.lib.model.Risk.MitigatingFactorinstance 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 "Mitigating Factor Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this mitigating factor elsewhere in this or other OSCAL instances. The locally defined UUID of the
mitigating factorcan 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 subject across revisions of the document.- Returns:
- the uuid value
-
setUuid
Set the "Mitigating Factor Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this mitigating factor elsewhere in this or other OSCAL instances. The locally defined UUID of the
mitigating factorcan 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 subject across revisions of the document.- Parameters:
value- the uuid value to set
-
getImplementationUuid
Get the "Implementation UUID".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this implementation statement elsewhere in this or other OSCAL instancess. The locally defined UUID of the
implementation statementcan 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 subject across revisions of the document.- Returns:
- the implementation-uuid value, or
nullif not set
-
setImplementationUuid
Set the "Implementation UUID".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this implementation statement elsewhere in this or other OSCAL instancess. The locally defined UUID of the
implementation statementcan 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 subject across revisions of the document.- Parameters:
value- the implementation-uuid value to set, ornullto clear
-
getDescription
Get the "Mitigating Factor Description".A human-readable description of this mitigating factor.
- Returns:
- the description value
-
setDescription
Set the "Mitigating Factor Description".A human-readable description of this mitigating factor.
- Parameters:
value- the description value to set
-
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
-
getSubjects
Get the "Identifies the Subject".A human-oriented identifier reference to a resource. Use type to indicate whether the identified resource is a component, inventory item, location, user, or something else.
- Returns:
- the subject value
-
setSubjects
Set the "Identifies the Subject".A human-oriented identifier reference to a resource. Use type to indicate whether the identified resource is a component, inventory item, location, user, or something else.
- Parameters:
value- the subject value to set
-
addSubject
Add a newSubjectReferenceitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSubject
Remove the first matchingSubjectReferenceitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-