Package gov.nist.secauto.oscal.lib.model
Class PoamItem
java.lang.Object
gov.nist.secauto.oscal.lib.model.PoamItem
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="POA&M Item",
description="Describes an individual POA\\&M item.",
name="poam-item",
moduleClass=OscalPoamModule.class,
valueConstraints=@ValueConstraints(expect=@Expect(level=WARNING,test="@uuid",message="It is a best practice to provide a UUID.")))
public class PoamItem
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Describes an individual POA&M item.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRelates the finding to a set of referenced risks that were used to determine the finding.static classIdentifies the source of the finding, such as a tool or person.static classRelates the poam-item to referenced finding(s).static classRelates the poam-item to a set of referenced observations that were used to determine the finding. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newPoamItem.AssociatedRiskitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanaddOrigin(PoamItem.Origin item) Add a newPoamItem.Originitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newPoamItem.RelatedFindingitem to the underlying collection.booleanAdd a newPoamItem.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 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.booleanRemove the first matchingPoamItem.RelatedFindingitem from the underlying collection.booleanRemove the first matchingPoamItem.RelatedObservationitem from the underlying collection.voidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidsetOrigins(List<PoamItem.Origin> value) voidvoidvoidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) voidtoString()
-
Constructor Details
-
PoamItem
public PoamItem() -
PoamItem
-
-
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 newPoamItem.Originitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
Remove the first matchingPoamItem.Originitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedFindings
-
setRelatedFindings
-
addRelatedFinding
Add a newPoamItem.RelatedFindingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedFinding
Remove the first matchingPoamItem.RelatedFindingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedObservations
-
setRelatedObservations
-
addRelatedObservation
Add a newPoamItem.RelatedObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedObservation
Remove the first matchingPoamItem.RelatedObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedRisks
-
setRelatedRisks
-
addAssociatedRisk
Add a newPoamItem.AssociatedRiskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssociatedRisk
Remove the first matchingPoamItem.AssociatedRiskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-