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 Object
Describes an individual POA&M item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PoamItem.AssociatedRisk
Relates the finding to a set of referenced risks that were used to determine the finding.static class
PoamItem.Origin
Identifies the source of the finding, such as a tool or person.static class
PoamItem.RelatedFinding
Relates the poam-item to referenced finding(s).static class
PoamItem.RelatedObservation
Relates 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 boolean
addAssociatedRisk(PoamItem.AssociatedRisk item)
Add a newPoamItem.AssociatedRisk
item to the underlying collection.boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addOrigin(PoamItem.Origin item)
Add a newPoamItem.Origin
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.boolean
addRelatedFinding(PoamItem.RelatedFinding item)
Add a newPoamItem.RelatedFinding
item to the underlying collection.boolean
addRelatedObservation(PoamItem.RelatedObservation item)
Add a newPoamItem.RelatedObservation
item to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getDescription()
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.MarkupMultiline
getRemarks()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine
getTitle()
UUID
getUuid()
boolean
removeAssociatedRisk(PoamItem.AssociatedRisk item)
Remove the first matchingPoamItem.AssociatedRisk
item from the underlying collection.boolean
removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.boolean
removeOrigin(PoamItem.Origin item)
Remove the first matchingPoamItem.Origin
item from the underlying collection.boolean
removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.boolean
removeRelatedFinding(PoamItem.RelatedFinding item)
Remove the first matchingPoamItem.RelatedFinding
item from the underlying collection.boolean
removeRelatedObservation(PoamItem.RelatedObservation item)
Remove the first matchingPoamItem.RelatedObservation
item from the underlying collection.void
setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setLinks(List<Link> value)
void
setOrigins(List<PoamItem.Origin> value)
void
setProps(List<Property> value)
void
setRelatedFindings(List<PoamItem.RelatedFinding> value)
void
setRelatedObservations(List<PoamItem.RelatedObservation> value)
void
setRelatedRisks(List<PoamItem.AssociatedRisk> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
void
setUuid(UUID value)
String
toString()
-
-
-
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 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<PoamItem.Origin> getOrigins()
-
setOrigins
public void setOrigins(List<PoamItem.Origin> value)
-
addOrigin
public boolean addOrigin(PoamItem.Origin item)
Add a newPoamItem.Origin
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeOrigin
public boolean removeOrigin(PoamItem.Origin item)
Remove the first matchingPoamItem.Origin
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRelatedFindings
public List<PoamItem.RelatedFinding> getRelatedFindings()
-
setRelatedFindings
public void setRelatedFindings(List<PoamItem.RelatedFinding> value)
-
addRelatedFinding
public boolean addRelatedFinding(PoamItem.RelatedFinding item)
Add a newPoamItem.RelatedFinding
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRelatedFinding
public boolean removeRelatedFinding(PoamItem.RelatedFinding item)
Remove the first matchingPoamItem.RelatedFinding
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRelatedObservations
public List<PoamItem.RelatedObservation> getRelatedObservations()
-
setRelatedObservations
public void setRelatedObservations(List<PoamItem.RelatedObservation> value)
-
addRelatedObservation
public boolean addRelatedObservation(PoamItem.RelatedObservation item)
Add a newPoamItem.RelatedObservation
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRelatedObservation
public boolean removeRelatedObservation(PoamItem.RelatedObservation item)
Remove the first matchingPoamItem.RelatedObservation
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRelatedRisks
public List<PoamItem.AssociatedRisk> getRelatedRisks()
-
setRelatedRisks
public void setRelatedRisks(List<PoamItem.AssociatedRisk> value)
-
addAssociatedRisk
public boolean addAssociatedRisk(PoamItem.AssociatedRisk item)
Add a newPoamItem.AssociatedRisk
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAssociatedRisk
public boolean removeAssociatedRisk(PoamItem.AssociatedRisk item)
Remove the first matchingPoamItem.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)
-
-