Package gov.nist.secauto.oscal.lib.model
Class RelatedTask.IdentifiedSubject
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.RelatedTask.IdentifiedSubject
-
- Enclosing class:
- RelatedTask
@MetaschemaAssembly(formalName="Identified Subject", description="Used to detail assessment subjects that were identfied by this task.", name="identified-subject", metaschema=OscalAssessmentCommonMetaschema.class) public static class RelatedTask.IdentifiedSubject extends ObjectUsed to detail assessment subjects that were identfied by this task.
-
-
Constructor Summary
Constructors Constructor Description IdentifiedSubject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddSubject(AssessmentSubject item)Add a newAssessmentSubjectitem to the underlying collection.UUIDgetSubjectPlaceholderUuid()List<AssessmentSubject>getSubjects()booleanremoveSubject(AssessmentSubject item)Remove the first matchingAssessmentSubjectitem from the underlying collection.voidsetSubjectPlaceholderUuid(UUID value)voidsetSubjects(List<AssessmentSubject> value)StringtoString()
-
-
-
Constructor Detail
-
IdentifiedSubject
public IdentifiedSubject()
-
-
Method Detail
-
getSubjectPlaceholderUuid
public UUID getSubjectPlaceholderUuid()
-
setSubjectPlaceholderUuid
public void setSubjectPlaceholderUuid(UUID value)
-
getSubjects
public List<AssessmentSubject> getSubjects()
-
setSubjects
public void setSubjects(List<AssessmentSubject> value)
-
addSubject
public boolean addSubject(AssessmentSubject item)
Add a newAssessmentSubjectitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSubject
public boolean removeSubject(AssessmentSubject item)
Remove the first matchingAssessmentSubjectitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-