Class PoamItem.Origin

java.lang.Object
dev.metaschema.oscal.lib.model.PoamItem.Origin
All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
Enclosing class:
PoamItem

@MetaschemaAssembly(formalName="Origin", description="Identifies the source of the finding, such as a tool or person.", name="origin", moduleClass=OscalPoamModule.class, remarks="Used to identify the individual and/or tool generated this poam-item.") public static class PoamItem.Origin extends Object implements dev.metaschema.core.model.IBoundObject
Identifies the source of the finding, such as a tool or person.
  • Constructor Details

    • Origin

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

      public Origin(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.PoamItem.Origin 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
    • getActors

      @NonNull public List<OriginActor> getActors()
      Get the "Originating Actor".

      The actor that produces an observation, a finding, or a risk. One or more actor type can be used to specify a person that is using a tool.

      Returns:
      the actor value
    • setActors

      public void setActors(@NonNull List<OriginActor> value)
      Set the "Originating Actor".

      The actor that produces an observation, a finding, or a risk. One or more actor type can be used to specify a person that is using a tool.

      Parameters:
      value - the actor value to set
    • addActor

      public boolean addActor(OriginActor item)
      Add a new OriginActor item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeActor

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

      public String toString()
      Overrides:
      toString in class Object