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 Object
Describes an individual finding.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Finding.AssociatedRisk
Relates the finding to a set of referenced risks that were used to determine the finding.static class
Finding.RelatedObservation
Relates 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 boolean
addAssociatedRisk(Finding.AssociatedRisk item)
Add a newFinding.AssociatedRisk
item to the underlying collection.boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addOrigin(Origin item)
Add a newOrigin
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.boolean
addRelatedObservation(Finding.RelatedObservation item)
Add a newFinding.RelatedObservation
item to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getDescription()
UUID
getImplementationStatementUuid()
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.MarkupMultiline
getRemarks()
FindingTarget
getTarget()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine
getTitle()
UUID
getUuid()
boolean
removeAssociatedRisk(Finding.AssociatedRisk item)
Remove the first matchingFinding.AssociatedRisk
item from the underlying collection.boolean
removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.boolean
removeOrigin(Origin item)
Remove the first matchingOrigin
item from the underlying collection.boolean
removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.boolean
removeRelatedObservation(Finding.RelatedObservation item)
Remove the first matchingFinding.RelatedObservation
item from the underlying collection.void
setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setImplementationStatementUuid(UUID value)
void
setLinks(List<Link> value)
void
setOrigins(List<Origin> value)
void
setProps(List<Property> value)
void
setRelatedObservations(List<Finding.RelatedObservation> value)
void
setRelatedRisks(List<Finding.AssociatedRisk> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setTarget(FindingTarget value)
void
setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
void
setUuid(UUID value)
String
toString()
-
-
-
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 newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addLink
public boolean addLink(Link item)
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getOrigins
public List<Origin> getOrigins()
-
setOrigins
public void setOrigins(List<Origin> value)
-
addOrigin
public boolean addOrigin(Origin item)
Add a newOrigin
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeOrigin
public boolean removeOrigin(Origin item)
Remove the first matchingOrigin
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
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.RelatedObservation
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRelatedObservation
public boolean removeRelatedObservation(Finding.RelatedObservation item)
Remove the first matchingFinding.RelatedObservation
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRelatedRisks
public List<Finding.AssociatedRisk> getRelatedRisks()
-
setRelatedRisks
public void setRelatedRisks(List<Finding.AssociatedRisk> value)
-
addAssociatedRisk
public boolean addAssociatedRisk(Finding.AssociatedRisk item)
Add a newFinding.AssociatedRisk
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAssociatedRisk
public boolean removeAssociatedRisk(Finding.AssociatedRisk item)
Remove the first matchingFinding.AssociatedRisk
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
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)
-
-