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
Modifier and TypeClassDescriptionstatic class
Identifies an individual activity to be performed as part of a task.static class
Used to indicate that a task is dependent on another task.static class
The timing under which the task is intended to occur. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newTask.AssociatedActivity
item to the underlying collection.boolean
addDependency
(Task.Dependency item) Add a newTask.Dependency
item to the underlying collection.boolean
Add a newLink
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.boolean
Add a newResponsibleRole
item to the underlying collection.boolean
addSubject
(AssessmentSubject item) Add a newAssessmentSubject
item to the underlying collection.boolean
Add a newTask
item to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getTasks()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine
getTitle()
getType()
getUuid()
boolean
Remove the first matchingTask.AssociatedActivity
item from the underlying collection.boolean
Remove the first matchingTask.Dependency
item from the underlying collection.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 matchingResponsibleRole
item from the underlying collection.boolean
Remove the first matchingAssessmentSubject
item from the underlying collection.boolean
removeTask
(Task item) Remove the first matchingTask
item from the underlying collection.void
void
setDependencies
(List<Task.Dependency> value) void
setDescription
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
void
void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
setResponsibleRoles
(List<ResponsibleRole> value) void
setSubjects
(List<AssessmentSubject> value) void
void
setTiming
(Task.Timing value) void
setTitle
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) void
void
toString()
-
Constructor Details
-
Task
public Task() -
Task
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getType
-
setType
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
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
-
getTiming
-
setTiming
-
getDependencies
-
setDependencies
-
addDependency
Add a newTask.Dependency
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeDependency
Remove the first matchingTask.Dependency
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getTasks
-
setTasks
-
addTask
Add a newTask
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeTask
Remove the first matchingTask
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getAssociatedActivities
-
setAssociatedActivities
-
addAssociatedActivity
Add a newTask.AssociatedActivity
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAssociatedActivity
Remove the first matchingTask.AssociatedActivity
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
-
getResponsibleRoles
-
setResponsibleRoles
-
addResponsibleRole
Add a newResponsibleRole
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeResponsibleRole
Remove the first matchingResponsibleRole
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRemarks
-
setRemarks
-
toString
-