Class RelatedTask.IdentifiedSubject

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

@MetaschemaAssembly(formalName="Identified Subject", description="Used to detail assessment subjects that were identified by this task.", name="identified-subject", moduleClass=OscalAssessmentCommonModule.class) public static class RelatedTask.IdentifiedSubject extends Object implements dev.metaschema.core.model.IBoundObject
Used to detail assessment subjects that were identified by this task.
  • Constructor Details

    • IdentifiedSubject

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

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

      @NonNull public UUID getSubjectPlaceholderUuid()
      Get the "Assessment Subject Placeholder Universally Unique Identifier Reference".

      A machine-oriented identifier reference to a unique assessment subject placeholder defined by this task.

      Returns:
      the subject-placeholder-uuid value
    • setSubjectPlaceholderUuid

      public void setSubjectPlaceholderUuid(@NonNull UUID value)
      Set the "Assessment Subject Placeholder Universally Unique Identifier Reference".

      A machine-oriented identifier reference to a unique assessment subject placeholder defined by this task.

      Parameters:
      value - the subject-placeholder-uuid value to set
    • getSubjects

      @NonNull public List<AssessmentSubject> getSubjects()
      Get the "Subject of Assessment".

      Identifies system elements being assessed, such as components, inventory items, and locations. In the assessment plan, this identifies a planned assessment subject. In the assessment results this is an actual assessment subject, and reflects any changes from the plan. exactly what will be the focus of this assessment. Any subjects not identified in this way are out-of-scope.

      Returns:
      the subject value
    • setSubjects

      public void setSubjects(@NonNull List<AssessmentSubject> value)
      Set the "Subject of Assessment".

      Identifies system elements being assessed, such as components, inventory items, and locations. In the assessment plan, this identifies a planned assessment subject. In the assessment results this is an actual assessment subject, and reflects any changes from the plan. exactly what will be the focus of this assessment. Any subjects not identified in this way are out-of-scope.

      Parameters:
      value - the subject value to set
    • addSubject

      public boolean addSubject(AssessmentSubject item)
      Add a new AssessmentSubject item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeSubject

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