Package dev.metaschema.oscal.lib.model
Class Risk.RiskLog
java.lang.Object
dev.metaschema.oscal.lib.model.Risk.RiskLog
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Risk
@MetaschemaAssembly(formalName="Risk Log",
description="A log of all risk-related tasks taken.",
name="risk-log",
moduleClass=OscalAssessmentCommonModule.class)
public static class Risk.RiskLog
extends Object
implements dev.metaschema.core.model.IBoundObject
A log of all risk-related tasks taken.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIdentifies an individual risk response that occurred as part of managing an identified risk. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEntry(Risk.RiskLog.Entry item) Add a newRisk.RiskLog.Entryitem to the underlying collection.Get the "Risk Log Entry".dev.metaschema.core.model.IMetaschemaDatabooleanRemove the first matchingRisk.RiskLog.Entryitem from the underlying collection.voidsetEntries(List<Risk.RiskLog.Entry> value) Set the "Risk Log Entry".toString()
-
Constructor Details
-
RiskLog
public RiskLog()Constructs a newdev.metaschema.oscal.lib.model.Risk.RiskLoginstance with no metadata. -
RiskLog
Constructs a newdev.metaschema.oscal.lib.model.Risk.RiskLoginstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getEntries
Get the "Risk Log Entry".Identifies an individual risk response that occurred as part of managing an identified risk.
- Returns:
- the entry value
-
setEntries
Set the "Risk Log Entry".Identifies an individual risk response that occurred as part of managing an identified risk.
- Parameters:
value- the entry value to set
-
addEntry
Add a newRisk.RiskLog.Entryitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeEntry
Remove the first matchingRisk.RiskLog.Entryitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-