Class Result.Attestation

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

@MetaschemaAssembly(formalName="Attestation Statements", description="A set of textual statements, typically written by the assessor.", name="attestation", moduleClass=OscalArModule.class, modelConstraints=@AssemblyConstraints(unique=@IsUnique(id="oscal-unique-ar-attestation-responsible-party",level=ERROR,target="responsible-party",keyFields=@KeyField(target="@role-id"),remarks="Since `responsible-party` associates multiple `party-uuid` entries with a single `role-id`, each role-id must be referenced only once."))) public static class Result.Attestation extends Object implements dev.metaschema.core.model.IBoundObject
A set of textual statements, typically written by the assessor.
  • Constructor Details

    • Attestation

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

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

      Get the "Responsible Party".

      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.

      Returns:
      the responsible-party value
    • setResponsibleParties

      public void setResponsibleParties(@NonNull List<ResponsibleParty> value)
      Set the "Responsible Party".

      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.

      Parameters:
      value - the responsible-party value to set
    • addResponsibleParty

      public boolean addResponsibleParty(ResponsibleParty item)
      Add a new ResponsibleParty item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeResponsibleParty

      Remove the first matching ResponsibleParty item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • getParts

      @NonNull public List<AssessmentPart> getParts()
      Get the "Assessment Part".

      A partition of an assessment plan or results or a child of another part.

      Returns:
      the part value
    • setParts

      public void setParts(@NonNull List<AssessmentPart> value)
      Set the "Assessment Part".

      A partition of an assessment plan or results or a child of another part.

      Parameters:
      value - the part value to set
    • addPart

      public boolean addPart(AssessmentPart item)
      Add a new AssessmentPart item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removePart

      public boolean removePart(AssessmentPart item)
      Remove the first matching AssessmentPart 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