Class Impact
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Adjustment Justification".getBase()Get the "Base Level (Confidentiality, Integrity, or Availability)".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".Get the "Selected Level (Confidentiality, Integrity, or Availability)".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidsetAdjustmentJustification(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Adjustment Justification".voidSet the "Base Level (Confidentiality, Integrity, or Availability)".voidSet the "Link".voidSet the "Property".voidsetSelected(String value) Set the "Selected Level (Confidentiality, Integrity, or Availability)".toString()
-
Constructor Details
-
Impact
public Impact()Constructs a newdev.metaschema.oscal.lib.model.Impactinstance with no metadata. -
Impact
Constructs a newdev.metaschema.oscal.lib.model.Impactinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
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
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
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
-
getBase
Get the "Base Level (Confidentiality, Integrity, or Availability)".The prescribed base (Confidentiality, Integrity, or Availability) security impact level.
- Returns:
- the base value
-
setBase
Set the "Base Level (Confidentiality, Integrity, or Availability)".The prescribed base (Confidentiality, Integrity, or Availability) security impact level.
- Parameters:
value- the base value to set
-
getSelected
Get the "Selected Level (Confidentiality, Integrity, or Availability)".The selected (Confidentiality, Integrity, or Availability) security impact level.
- Returns:
- the selected value, or
nullif not set
-
setSelected
Set the "Selected Level (Confidentiality, Integrity, or Availability)".The selected (Confidentiality, Integrity, or Availability) security impact level.
- Parameters:
value- the selected value to set, ornullto clear
-
getAdjustmentJustification
Get the "Adjustment Justification".If the selected security level is different from the base security level, this contains the justification for the change.
- Returns:
- the adjustment-justification value, or
nullif not set
-
setAdjustmentJustification
public void setAdjustmentJustification(@Nullable dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Adjustment Justification".If the selected security level is different from the base security level, this contains the justification for the change.
- Parameters:
value- the adjustment-justification value to set, ornullto clear
-
toString
-