Class OriginActor

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

@MetaschemaAssembly(formalName="Originating Actor", description="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.", name="origin-actor", moduleClass=OscalAssessmentCommonModule.class) public class OriginActor extends Object implements dev.metaschema.core.model.IBoundObject
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.
  • Constructor Details

    • OriginActor

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

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

      @NonNull public String getType()
      Get the "Actor Type".

      The kind of actor.

      Returns:
      the type value
    • setType

      public void setType(@NonNull String value)
      Set the "Actor Type".

      The kind of actor.

      Parameters:
      value - the type value to set
    • getActorUuid

      @NonNull public UUID getActorUuid()
      Get the "Actor Universally Unique Identifier Reference".

      A machine-oriented identifier reference to the tool or person based on the associated type.

      Returns:
      the actor-uuid value
    • setActorUuid

      public void setActorUuid(@NonNull UUID value)
      Set the "Actor Universally Unique Identifier Reference".

      A machine-oriented identifier reference to the tool or person based on the associated type.

      Parameters:
      value - the actor-uuid value to set
    • getRoleId

      @Nullable public String getRoleId()
      Get the "Actor Role".

      For a party, this can optionally be used to specify the role the actor was performing.

      Returns:
      the role-id value, or null if not set
    • setRoleId

      public void setRoleId(@Nullable String value)
      Set the "Actor Role".

      For a party, this can optionally be used to specify the role the actor was performing.

      Parameters:
      value - the role-id value to set, or null to clear
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object