Package gov.nist.secauto.oscal.lib.model
Class Task
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Task
-
@MetaschemaAssembly(formalName="Task", description="Represents a scheduled event or milestone, which may be associated with a series of assessment actions.", name="task", metaschema=OscalAssessmentCommonMetaschema.class) public class Task extends Object
Represents a scheduled event or milestone, which may be associated with a series of assessment actions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Task.AssociatedActivity
Identifies an individual activity to be performed as part of a task.static class
Task.Dependency
Used to indicate that a task is dependent on another task.static class
Task.Timing
The timing under which the task is intended to occur.
-
Constructor Summary
Constructors Constructor Description Task()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAssociatedActivity(Task.AssociatedActivity item)
Add a newTask.AssociatedActivity
item to the underlying collection.boolean
addDependency(Task.Dependency item)
Add a newTask.Dependency
item to the underlying collection.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
addResponsibleRole(ResponsibleRole item)
Add a newResponsibleRole
item to the underlying collection.boolean
addSubject(AssessmentSubject item)
Add a newAssessmentSubject
item to the underlying collection.boolean
addTask(Task item)
Add a newTask
item to the underlying collection.List<Task.AssociatedActivity>
getAssociatedActivities()
List<Task.Dependency>
getDependencies()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getDescription()
List<Link>
getLinks()
List<Property>
getProps()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
List<ResponsibleRole>
getResponsibleRoles()
List<AssessmentSubject>
getSubjects()
List<Task>
getTasks()
Task.Timing
getTiming()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine
getTitle()
String
getType()
UUID
getUuid()
boolean
removeAssociatedActivity(Task.AssociatedActivity item)
Remove the first matchingTask.AssociatedActivity
item from the underlying collection.boolean
removeDependency(Task.Dependency item)
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
removeResponsibleRole(ResponsibleRole item)
Remove the first matchingResponsibleRole
item from the underlying collection.boolean
removeSubject(AssessmentSubject item)
Remove the first matchingAssessmentSubject
item from the underlying collection.boolean
removeTask(Task item)
Remove the first matchingTask
item from the underlying collection.void
setAssociatedActivities(List<Task.AssociatedActivity> value)
void
setDependencies(List<Task.Dependency> value)
void
setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setLinks(List<Link> value)
void
setProps(List<Property> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setResponsibleRoles(List<ResponsibleRole> value)
void
setSubjects(List<AssessmentSubject> value)
void
setTasks(List<Task> value)
void
setTiming(Task.Timing value)
void
setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
void
setType(String value)
void
setUuid(UUID value)
String
toString()
-
-
-
Constructor Detail
-
Task
public Task()
-
-
Method Detail
-
getTitle
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine getTitle()
-
setTitle
public void setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
-
getDescription
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getDescription()
-
setDescription
public void setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline 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
-
getTiming
public Task.Timing getTiming()
-
setTiming
public void setTiming(Task.Timing value)
-
getDependencies
public List<Task.Dependency> getDependencies()
-
setDependencies
public void setDependencies(List<Task.Dependency> value)
-
addDependency
public boolean addDependency(Task.Dependency item)
Add a newTask.Dependency
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeDependency
public boolean removeDependency(Task.Dependency item)
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
-
addTask
public boolean addTask(Task item)
Add a newTask
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeTask
public boolean removeTask(Task item)
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
public List<Task.AssociatedActivity> getAssociatedActivities()
-
setAssociatedActivities
public void setAssociatedActivities(List<Task.AssociatedActivity> value)
-
addAssociatedActivity
public boolean addAssociatedActivity(Task.AssociatedActivity item)
Add a newTask.AssociatedActivity
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAssociatedActivity
public boolean removeAssociatedActivity(Task.AssociatedActivity item)
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
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
-
getResponsibleRoles
public List<ResponsibleRole> getResponsibleRoles()
-
setResponsibleRoles
public void setResponsibleRoles(List<ResponsibleRole> value)
-
addResponsibleRole
public boolean addResponsibleRole(ResponsibleRole item)
Add a newResponsibleRole
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeResponsibleRole
public boolean removeResponsibleRole(ResponsibleRole item)
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
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)
-
-