Class Impact

java.lang.Object
dev.metaschema.oscal.lib.model.Impact
All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject

@MetaschemaAssembly(formalName="Impact Level", description="The expected level of impact resulting from the described information.", name="impact", moduleClass=OscalSspModule.class) public class Impact extends Object implements dev.metaschema.core.model.IBoundObject
The expected level of impact resulting from the described information.
  • Constructor Details

    • Impact

      public Impact()
      Constructs a new dev.metaschema.oscal.lib.model.Impact instance with no metadata.
    • Impact

      public Impact(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.Impact instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public dev.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface dev.metaschema.core.model.IBoundObject
    • getProps

      @NonNull public List<Property> 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

      public void setProps(@NonNull List<Property> value)
      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

      public boolean addProp(Property item)
      Add a new Property item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeProp

      public boolean removeProp(Property item)
      Remove the first matching Property item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • getLinks

      @NonNull public List<Link> 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

      public void setLinks(@NonNull List<Link> value)
      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

      public boolean addLink(Link item)
      Add a new Link item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeLink

      public boolean removeLink(Link item)
      Remove the first matching Link item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • getBase

      @NonNull public String getBase()
      Get the "Base Level (Confidentiality, Integrity, or Availability)".

      The prescribed base (Confidentiality, Integrity, or Availability) security impact level.

      Returns:
      the base value
    • setBase

      public void setBase(@NonNull String value)
      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

      @Nullable public String getSelected()
      Get the "Selected Level (Confidentiality, Integrity, or Availability)".

      The selected (Confidentiality, Integrity, or Availability) security impact level.

      Returns:
      the selected value, or null if not set
    • setSelected

      public void setSelected(@Nullable String value)
      Set the "Selected Level (Confidentiality, Integrity, or Availability)".

      The selected (Confidentiality, Integrity, or Availability) security impact level.

      Parameters:
      value - the selected value to set, or null to clear
    • getAdjustmentJustification

      @Nullable public dev.metaschema.core.datatype.markup.MarkupMultiline 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 null if 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, or null to clear
    • toString

      public String toString()
      Overrides:
      toString in class Object