Package gov.nist.secauto.oscal.lib.model
Class RelatedTask
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.RelatedTask
-
@MetaschemaAssembly(formalName="Task Reference", description="Identifies an individual task for which the containing object is a consequence of.", name="related-task", metaschema=OscalAssessmentCommonMetaschema.class) @AssemblyConstraints(isUnique=@IsUnique(id="unique-ssp-related-task-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 class RelatedTask extends ObjectIdentifies an individual task for which the containing object is a consequence of.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelatedTask.IdentifiedSubjectUsed to detail assessment subjects that were identfied by this task.
-
Constructor Summary
Constructors Constructor Description RelatedTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddResponsibleParty(ResponsibleParty item)Add a newResponsiblePartyitem to the underlying collection.booleanaddSubject(AssessmentSubject item)Add a newAssessmentSubjectitem to the underlying collection.RelatedTask.IdentifiedSubjectgetIdentifiedSubject()List<Link>getLinks()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()List<ResponsibleParty>getResponsibleParties()List<AssessmentSubject>getSubjects()UUIDgetTaskUuid()booleanremoveLink(Link item)Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item)Remove the first matchingPropertyitem from the underlying collection.booleanremoveResponsibleParty(ResponsibleParty item)Remove the first matchingResponsiblePartyitem from the underlying collection.booleanremoveSubject(AssessmentSubject item)Remove the first matchingAssessmentSubjectitem from the underlying collection.voidsetIdentifiedSubject(RelatedTask.IdentifiedSubject value)voidsetLinks(List<Link> value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetResponsibleParties(List<ResponsibleParty> value)voidsetSubjects(List<AssessmentSubject> value)voidsetTaskUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
RelatedTask
public RelatedTask()
-
-
Method Detail
-
getTaskUuid
public UUID getTaskUuid()
-
setTaskUuid
public void setTaskUuid(UUID value)
-
addProp
public boolean addProp(Property item)
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getResponsibleParties
public List<ResponsibleParty> getResponsibleParties()
-
setResponsibleParties
public void setResponsibleParties(List<ResponsibleParty> value)
-
addResponsibleParty
public boolean addResponsibleParty(ResponsibleParty item)
Add a newResponsiblePartyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponsibleParty
public boolean removeResponsibleParty(ResponsibleParty item)
Remove the first matchingResponsiblePartyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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
-
getIdentifiedSubject
public RelatedTask.IdentifiedSubject getIdentifiedSubject()
-
setIdentifiedSubject
public void setIdentifiedSubject(RelatedTask.IdentifiedSubject value)
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-