Package gov.nist.secauto.oscal.lib.model
Class Risk.RiskLog
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Risk.RiskLog
-
- Enclosing class:
- Risk
@MetaschemaAssembly(formalName="Risk Log", description="A log of all risk-related tasks taken.", name="risk-log", metaschema=OscalAssessmentCommonMetaschema.class) public static class Risk.RiskLog extends Object
A log of all risk-related tasks taken.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Risk.RiskLog.Entry
Identifies an individual risk response that occurred as part of managing an identified risk.
-
Constructor Summary
Constructors Constructor Description RiskLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addEntry(Risk.RiskLog.Entry item)
Add a newRisk.RiskLog.Entry
item to the underlying collection.List<Risk.RiskLog.Entry>
getEntries()
boolean
removeEntry(Risk.RiskLog.Entry item)
Remove the first matchingRisk.RiskLog.Entry
item from the underlying collection.void
setEntries(List<Risk.RiskLog.Entry> value)
String
toString()
-
-
-
Constructor Detail
-
RiskLog
public RiskLog()
-
-
Method Detail
-
getEntries
public List<Risk.RiskLog.Entry> getEntries()
-
setEntries
public void setEntries(List<Risk.RiskLog.Entry> value)
-
addEntry
public boolean addEntry(Risk.RiskLog.Entry item)
Add a newRisk.RiskLog.Entry
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeEntry
public boolean removeEntry(Risk.RiskLog.Entry item)
Remove the first matchingRisk.RiskLog.Entry
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-