Class ResponsibleParty

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

@MetaschemaAssembly(formalName="Responsible Party", description="A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.", name="responsible-party", moduleClass=OscalMetadataModule.class, remarks="A `responsible-party` requires one or more `party-uuid` references creating a strong relationship arc between the referenced `role-id` and the reference parties. This differs in semantics from `responsible-role` which doesn\'t require that a `party-uuid` is referenced.\n\nThe scope of use of this object determines if the responsibility has been performed or will be performed in the future. The containing object will describe the intent.", valueConstraints=@ValueConstraints(indexHasKey=@IndexHasKey(id="oscal-metadata-responsible-party-index-metadata-role-id",level=ERROR,indexName="index-metadata-role-id",keyFields=@KeyField(target="@role-id")))) public class ResponsibleParty extends Object implements dev.metaschema.core.model.IBoundObject
A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.
  • Constructor Details

    • ResponsibleParty

      Constructs a new dev.metaschema.oscal.lib.model.ResponsibleParty instance with no metadata.
    • ResponsibleParty

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

      @NonNull public String getRoleId()
      Get the "Responsible Role".

      A reference to a role performed by a party.

      Returns:
      the role-id value
    • setRoleId

      public void setRoleId(@NonNull String value)
      Set the "Responsible Role".

      A reference to a role performed by a party.

      Parameters:
      value - the role-id value to set
    • getPartyUuids

      @NonNull public List<UUID> getPartyUuids()
      Get the "Party Universally Unique Identifier Reference".

      Specifies one or more parties responsible for performing the associated role.

      Returns:
      the party-uuid value
    • setPartyUuids

      public void setPartyUuids(@NonNull List<UUID> value)
      Set the "Party Universally Unique Identifier Reference".

      Specifies one or more parties responsible for performing the associated role.

      Parameters:
      value - the party-uuid value to set
    • addPartyUuid

      public boolean addPartyUuid(UUID item)
      Add a new UUID item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removePartyUuid

      public boolean removePartyUuid(UUID item)
      Remove the first matching UUID item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • 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
    • getRemarks

      @Nullable public dev.metaschema.core.datatype.markup.MarkupMultiline getRemarks()
      Get the "Remarks".

      Additional commentary about the containing object.

      Returns:
      the remarks value, or null if not set
    • setRemarks

      public void setRemarks(@Nullable dev.metaschema.core.datatype.markup.MarkupMultiline value)
      Set the "Remarks".

      Additional commentary about the containing object.

      Parameters:
      value - the remarks value to set, or null to clear
    • toString

      public String toString()
      Overrides:
      toString in class Object