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 Object
Identifies an individual task for which the containing object is a consequence of.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RelatedTask.IdentifiedSubject
Used 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 boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.boolean
addResponsibleParty(ResponsibleParty item)
Add a newResponsibleParty
item to the underlying collection.boolean
addSubject(AssessmentSubject item)
Add a newAssessmentSubject
item to the underlying collection.RelatedTask.IdentifiedSubject
getIdentifiedSubject()
List<Link>
getLinks()
List<Property>
getProps()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
List<ResponsibleParty>
getResponsibleParties()
List<AssessmentSubject>
getSubjects()
UUID
getTaskUuid()
boolean
removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.boolean
removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.boolean
removeResponsibleParty(ResponsibleParty item)
Remove the first matchingResponsibleParty
item from the underlying collection.boolean
removeSubject(AssessmentSubject item)
Remove the first matchingAssessmentSubject
item from the underlying collection.void
setIdentifiedSubject(RelatedTask.IdentifiedSubject value)
void
setLinks(List<Link> value)
void
setProps(List<Property> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setResponsibleParties(List<ResponsibleParty> value)
void
setSubjects(List<AssessmentSubject> value)
void
setTaskUuid(UUID value)
String
toString()
-
-
-
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 newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addLink
public boolean addLink(Link item)
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getResponsibleParties
public List<ResponsibleParty> getResponsibleParties()
-
setResponsibleParties
public void setResponsibleParties(List<ResponsibleParty> value)
-
addResponsibleParty
public boolean addResponsibleParty(ResponsibleParty item)
Add a newResponsibleParty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeResponsibleParty
public boolean removeResponsibleParty(ResponsibleParty item)
Remove the first matchingResponsibleParty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getSubjects
public List<AssessmentSubject> getSubjects()
-
setSubjects
public void setSubjects(List<AssessmentSubject> value)
-
addSubject
public boolean addSubject(AssessmentSubject item)
Add a newAssessmentSubject
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeSubject
public boolean removeSubject(AssessmentSubject item)
Remove the first matchingAssessmentSubject
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
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)
-
-