Package gov.nist.secauto.oscal.lib.model
Class Finding
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Finding
-
@MetaschemaAssembly(formalName="Finding", description="Describes an individual finding.", name="finding", metaschema=OscalAssessmentCommonMetaschema.class) public class Finding extends ObjectDescribes an individual finding.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFinding.AssociatedRiskRelates the finding to a set of referenced risks that were used to determine the finding.static classFinding.RelatedObservationRelates the finding to a set of referenced observations that were used to determine the finding.
-
Constructor Summary
Constructors Constructor Description Finding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAssociatedRisk(Finding.AssociatedRisk item)Add a newFinding.AssociatedRiskitem to the underlying collection.booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddOrigin(Origin item)Add a newOriginitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddRelatedObservation(Finding.RelatedObservation item)Add a newFinding.RelatedObservationitem to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()UUIDgetImplementationStatementUuid()List<Link>getLinks()List<Origin>getOrigins()List<Property>getProps()List<Finding.RelatedObservation>getRelatedObservations()List<Finding.AssociatedRisk>getRelatedRisks()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()FindingTargetgetTarget()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLinegetTitle()UUIDgetUuid()booleanremoveAssociatedRisk(Finding.AssociatedRisk item)Remove 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.booleanremoveRelatedObservation(Finding.RelatedObservation item)Remove the first matchingFinding.RelatedObservationitem from the underlying collection.voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetImplementationStatementUuid(UUID value)voidsetLinks(List<Link> value)voidsetOrigins(List<Origin> value)voidsetProps(List<Property> value)voidsetRelatedObservations(List<Finding.RelatedObservation> value)voidsetRelatedRisks(List<Finding.AssociatedRisk> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetTarget(FindingTarget value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
Finding
public Finding()
-
-
Method Detail
-
getTitle
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine getTitle()
-
setTitle
public void setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
-
getDescription
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getDescription()
-
setDescription
public void setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
addProp
public boolean addProp(Property item)
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getOrigins
public List<Origin> getOrigins()
-
setOrigins
public void setOrigins(List<Origin> value)
-
addOrigin
public boolean addOrigin(Origin item)
Add a newOriginitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
public boolean removeOrigin(Origin item)
Remove the first matchingOriginitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTarget
public FindingTarget getTarget()
-
setTarget
public void setTarget(FindingTarget value)
-
getImplementationStatementUuid
public UUID getImplementationStatementUuid()
-
setImplementationStatementUuid
public void setImplementationStatementUuid(UUID value)
-
getRelatedObservations
public List<Finding.RelatedObservation> getRelatedObservations()
-
setRelatedObservations
public void setRelatedObservations(List<Finding.RelatedObservation> value)
-
addRelatedObservation
public boolean addRelatedObservation(Finding.RelatedObservation item)
Add a newFinding.RelatedObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedObservation
public boolean removeRelatedObservation(Finding.RelatedObservation item)
Remove the first matchingFinding.RelatedObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedRisks
public List<Finding.AssociatedRisk> getRelatedRisks()
-
setRelatedRisks
public void setRelatedRisks(List<Finding.AssociatedRisk> value)
-
addAssociatedRisk
public boolean addAssociatedRisk(Finding.AssociatedRisk item)
Add a newFinding.AssociatedRiskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssociatedRisk
public boolean removeAssociatedRisk(Finding.AssociatedRisk item)
Remove the first matchingFinding.AssociatedRiskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-