Package gov.nist.secauto.oscal.lib.model
Class PoamItem
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.PoamItem
-
@MetaschemaAssembly(formalName="POA&M Item", description="Describes an individual POA\\&M item.", name="poam-item", metaschema=OscalPoamMetaschema.class) @ValueConstraints(expect=@Expect(level=WARNING,test="@uuid",message="It is a best practice to provide a UUID.")) public class PoamItem extends ObjectDescribes an individual POA&M item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPoamItem.AssociatedRiskRelates the finding to a set of referenced risks that were used to determine the finding.static classPoamItem.OriginIdentifies the source of the finding, such as a tool or person.static classPoamItem.RelatedFindingRelates the poam-item to referenced finding(s).static classPoamItem.RelatedObservationRelates the poam-item to a set of referenced observations that were used to determine the finding.
-
Constructor Summary
Constructors Constructor Description PoamItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAssociatedRisk(PoamItem.AssociatedRisk item)Add a newPoamItem.AssociatedRiskitem to the underlying collection.booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddOrigin(PoamItem.Origin item)Add a newPoamItem.Originitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddRelatedFinding(PoamItem.RelatedFinding item)Add a newPoamItem.RelatedFindingitem to the underlying collection.booleanaddRelatedObservation(PoamItem.RelatedObservation item)Add a newPoamItem.RelatedObservationitem to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()List<Link>getLinks()List<PoamItem.Origin>getOrigins()List<Property>getProps()List<PoamItem.RelatedFinding>getRelatedFindings()List<PoamItem.RelatedObservation>getRelatedObservations()List<PoamItem.AssociatedRisk>getRelatedRisks()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLinegetTitle()UUIDgetUuid()booleanremoveAssociatedRisk(PoamItem.AssociatedRisk item)Remove the first matchingPoamItem.AssociatedRiskitem from the underlying collection.booleanremoveLink(Link item)Remove the first matchingLinkitem from the underlying collection.booleanremoveOrigin(PoamItem.Origin item)Remove the first matchingPoamItem.Originitem from the underlying collection.booleanremoveProp(Property item)Remove the first matchingPropertyitem from the underlying collection.booleanremoveRelatedFinding(PoamItem.RelatedFinding item)Remove the first matchingPoamItem.RelatedFindingitem from the underlying collection.booleanremoveRelatedObservation(PoamItem.RelatedObservation item)Remove the first matchingPoamItem.RelatedObservationitem from the underlying collection.voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetLinks(List<Link> value)voidsetOrigins(List<PoamItem.Origin> value)voidsetProps(List<Property> value)voidsetRelatedFindings(List<PoamItem.RelatedFinding> value)voidsetRelatedObservations(List<PoamItem.RelatedObservation> value)voidsetRelatedRisks(List<PoamItem.AssociatedRisk> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
PoamItem
public PoamItem()
-
-
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<PoamItem.Origin> getOrigins()
-
setOrigins
public void setOrigins(List<PoamItem.Origin> value)
-
addOrigin
public boolean addOrigin(PoamItem.Origin item)
Add a newPoamItem.Originitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
public boolean removeOrigin(PoamItem.Origin item)
Remove the first matchingPoamItem.Originitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedFindings
public List<PoamItem.RelatedFinding> getRelatedFindings()
-
setRelatedFindings
public void setRelatedFindings(List<PoamItem.RelatedFinding> value)
-
addRelatedFinding
public boolean addRelatedFinding(PoamItem.RelatedFinding item)
Add a newPoamItem.RelatedFindingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedFinding
public boolean removeRelatedFinding(PoamItem.RelatedFinding item)
Remove the first matchingPoamItem.RelatedFindingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedObservations
public List<PoamItem.RelatedObservation> getRelatedObservations()
-
setRelatedObservations
public void setRelatedObservations(List<PoamItem.RelatedObservation> value)
-
addRelatedObservation
public boolean addRelatedObservation(PoamItem.RelatedObservation item)
Add a newPoamItem.RelatedObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedObservation
public boolean removeRelatedObservation(PoamItem.RelatedObservation item)
Remove the first matchingPoamItem.RelatedObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedRisks
public List<PoamItem.AssociatedRisk> getRelatedRisks()
-
setRelatedRisks
public void setRelatedRisks(List<PoamItem.AssociatedRisk> value)
-
addAssociatedRisk
public boolean addAssociatedRisk(PoamItem.AssociatedRisk item)
Add a newPoamItem.AssociatedRiskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssociatedRisk
public boolean removeAssociatedRisk(PoamItem.AssociatedRisk item)
Remove the first matchingPoamItem.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)
-
-