Package gov.nist.secauto.oscal.lib.model
Class Task
java.lang.Object
gov.nist.secauto.oscal.lib.model.Task
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Task",
description="Represents a scheduled event or milestone, which may be associated with a series of assessment actions.",
name="task",
moduleClass=OscalAssessmentCommonModule.class)
public class Task
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Represents a scheduled event or milestone, which may be associated with a series of assessment actions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIdentifies an individual activity to be performed as part of a task.static classUsed to indicate that a task is dependent on another task.static classThe timing under which the task is intended to occur. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newTask.AssociatedActivityitem to the underlying collection.booleanaddDependency(Task.Dependency item) Add a newTask.Dependencyitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newResponsibleRoleitem to the underlying collection.booleanaddSubject(AssessmentSubject item) Add a newAssessmentSubjectitem to the underlying collection.booleanAdd a newTaskitem to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetTasks()gov.nist.secauto.metaschema.core.datatype.markup.MarkupLinegetTitle()getType()getUuid()booleanRemove the first matchingTask.AssociatedActivityitem from the underlying collection.booleanRemove the first matchingTask.Dependencyitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingResponsibleRoleitem from the underlying collection.booleanRemove the first matchingAssessmentSubjectitem from the underlying collection.booleanremoveTask(Task item) Remove the first matchingTaskitem from the underlying collection.voidvoidsetDependencies(List<Task.Dependency> value) voidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetResponsibleRoles(List<ResponsibleRole> value) voidsetSubjects(List<AssessmentSubject> value) voidvoidsetTiming(Task.Timing value) voidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) voidvoidtoString()
-
Constructor Details
-
Task
public Task() -
Task
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getType
-
setType
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getProps
-
setProps
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
-
setLinks
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTiming
-
setTiming
-
getDependencies
-
setDependencies
-
addDependency
Add a newTask.Dependencyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeDependency
Remove the first matchingTask.Dependencyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTasks
-
setTasks
-
addTask
Add a newTaskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTask
Remove the first matchingTaskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAssociatedActivities
-
setAssociatedActivities
-
addAssociatedActivity
Add a newTask.AssociatedActivityitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssociatedActivity
Remove the first matchingTask.AssociatedActivityitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getSubjects
-
setSubjects
-
addSubject
Add a newAssessmentSubjectitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSubject
Remove the first matchingAssessmentSubjectitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getResponsibleRoles
-
setResponsibleRoles
-
addResponsibleRole
Add a newResponsibleRoleitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponsibleRole
Remove the first matchingResponsibleRoleitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-