Package gov.nist.secauto.oscal.lib.model
Class Finding
java.lang.Object
gov.nist.secauto.oscal.lib.model.Finding
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Finding",
description="Describes an individual finding.",
name="finding",
moduleClass=OscalAssessmentCommonModule.class)
public class Finding
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Describes an individual finding.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRelates the finding to a set of referenced risks that were used to determine the finding.static classRelates the finding to a set of referenced observations that were used to determine the finding. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newFinding.AssociatedRiskitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newOriginitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newFinding.RelatedObservationitem to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegov.nist.secauto.metaschema.core.datatype.markup.MarkupLinegetTitle()getUuid()booleanRemove the first matchingFinding.AssociatedRiskitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveOrigin(Origin item) Remove the first matchingOriginitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingFinding.RelatedObservationitem from the underlying collection.voidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidvoidsetOrigins(List<Origin> value) voidvoidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetTarget(FindingTarget value) voidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) voidtoString()
-
Constructor Details
-
Finding
public Finding() -
Finding
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
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
-
getOrigins
-
setOrigins
-
addOrigin
Add a newOriginitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
Remove the first matchingOriginitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTarget
-
setTarget
-
getImplementationStatementUuid
-
setImplementationStatementUuid
-
getRelatedObservations
-
setRelatedObservations
-
addRelatedObservation
Add a newFinding.RelatedObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedObservation
Remove the first matchingFinding.RelatedObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedRisks
-
setRelatedRisks
-
addAssociatedRisk
Add a newFinding.AssociatedRiskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssociatedRisk
Remove the first matchingFinding.AssociatedRiskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-