Package gov.nist.secauto.oscal.lib.model
Class RelatedTask
java.lang.Object
gov.nist.secauto.oscal.lib.model.RelatedTask
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Task Reference",
description="Identifies an individual task for which the containing object is a consequence of.",
name="related-task",
moduleClass=OscalAssessmentCommonModule.class,
modelConstraints=@AssemblyConstraints(unique=@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
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Identifies an individual task for which the containing object is a consequence of.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Used to detail assessment subjects that were identfied by this task. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newLink
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.boolean
Add a newResponsibleParty
item to the underlying collection.boolean
addSubject
(AssessmentSubject item) Add a newAssessmentSubject
item to the underlying collection.getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
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
Remove the first matchingResponsibleParty
item from the underlying collection.boolean
Remove the first matchingAssessmentSubject
item from the underlying collection.void
void
void
void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
void
setSubjects
(List<AssessmentSubject> value) void
setTaskUuid
(UUID value) toString()
-
Constructor Details
-
RelatedTask
public RelatedTask() -
RelatedTask
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getTaskUuid
-
setTaskUuid
-
getProps
-
setProps
-
addProp
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLinks
-
setLinks
-
addLink
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
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
-
setResponsibleParties
-
addResponsibleParty
Add a newResponsibleParty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeResponsibleParty
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
-
setSubjects
-
addSubject
Add a newAssessmentSubject
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeSubject
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
-
setIdentifiedSubject
-
getRemarks
-
setRemarks
-
toString
-