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 ObjectRepresents 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 classTask.AssociatedActivityIdentifies an individual activity to be performed as part of a task.static classTask.DependencyUsed to indicate that a task is dependent on another task.static classTask.TimingThe 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 booleanaddAssociatedActivity(Task.AssociatedActivity item)Add a newTask.AssociatedActivityitem to the underlying collection.booleanaddDependency(Task.Dependency item)Add a newTask.Dependencyitem to the underlying collection.booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddResponsibleRole(ResponsibleRole item)Add a newResponsibleRoleitem to the underlying collection.booleanaddSubject(AssessmentSubject item)Add a newAssessmentSubjectitem to the underlying collection.booleanaddTask(Task item)Add a newTaskitem to the underlying collection.List<Task.AssociatedActivity>getAssociatedActivities()List<Task.Dependency>getDependencies()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()List<Link>getLinks()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()List<ResponsibleRole>getResponsibleRoles()List<AssessmentSubject>getSubjects()List<Task>getTasks()Task.TiminggetTiming()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLinegetTitle()StringgetType()UUIDgetUuid()booleanremoveAssociatedActivity(Task.AssociatedActivity item)Remove the first matchingTask.AssociatedActivityitem from the underlying collection.booleanremoveDependency(Task.Dependency item)Remove 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.booleanremoveResponsibleRole(ResponsibleRole item)Remove the first matchingResponsibleRoleitem from the underlying collection.booleanremoveSubject(AssessmentSubject item)Remove the first matchingAssessmentSubjectitem from the underlying collection.booleanremoveTask(Task item)Remove the first matchingTaskitem from the underlying collection.voidsetAssociatedActivities(List<Task.AssociatedActivity> value)voidsetDependencies(List<Task.Dependency> value)voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetLinks(List<Link> value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetResponsibleRoles(List<ResponsibleRole> value)voidsetSubjects(List<AssessmentSubject> value)voidsetTasks(List<Task> value)voidsetTiming(Task.Timing value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)voidsetType(String value)voidsetUuid(UUID value)StringtoString()
-
-
-
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 newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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.Dependencyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeDependency
public boolean removeDependency(Task.Dependency item)
Remove the first matchingTask.Dependencyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addTask
public boolean addTask(Task item)
Add a newTaskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTask
public boolean removeTask(Task item)
Remove the first matchingTaskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAssociatedActivities
public List<Task.AssociatedActivity> getAssociatedActivities()
-
setAssociatedActivities
public void setAssociatedActivities(List<Task.AssociatedActivity> value)
-
addAssociatedActivity
public boolean addAssociatedActivity(Task.AssociatedActivity item)
Add a newTask.AssociatedActivityitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssociatedActivity
public boolean removeAssociatedActivity(Task.AssociatedActivity item)
Remove the first matchingTask.AssociatedActivityitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getSubjects
public List<AssessmentSubject> getSubjects()
-
setSubjects
public void setSubjects(List<AssessmentSubject> value)
-
addSubject
public boolean addSubject(AssessmentSubject item)
Add a newAssessmentSubjectitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSubject
public boolean removeSubject(AssessmentSubject item)
Remove the first matchingAssessmentSubjectitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getResponsibleRoles
public List<ResponsibleRole> getResponsibleRoles()
-
setResponsibleRoles
public void setResponsibleRoles(List<ResponsibleRole> value)
-
addResponsibleRole
public boolean addResponsibleRole(ResponsibleRole item)
Add a newResponsibleRoleitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponsibleRole
public boolean removeResponsibleRole(ResponsibleRole item)
Remove the first matchingResponsibleRoleitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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)
-
-