Class Task
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
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.Get the "Associated Activity".Get the "Task Dependency".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Task Description".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Responsible Role".Get the "Subject of Assessment".getTasks()Get the "Task".Get the "Event Timing".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Task Title".getType()Get the "Task Type".getUuid()Get the "Task Universally Unique Identifier".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.voidSet the "Associated Activity".voidsetDependencies(List<Task.Dependency> value) Set the "Task Dependency".voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Task Description".voidSet the "Link".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetResponsibleRoles(List<ResponsibleRole> value) Set the "Responsible Role".voidsetSubjects(List<AssessmentSubject> value) Set the "Subject of Assessment".voidSet the "Task".voidsetTiming(Task.Timing value) Set the "Event Timing".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Task Title".voidSet the "Task Type".voidSet the "Task Universally Unique Identifier".toString()
-
Constructor Details
-
Task
public Task()Constructs a newdev.metaschema.oscal.lib.model.Taskinstance with no metadata. -
Task
Constructs a newdev.metaschema.oscal.lib.model.Taskinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "Task Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this task elsewhere in this or other OSCAL instances. The locally defined UUID of the
taskcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Returns:
- the uuid value
-
setUuid
Set the "Task Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this task elsewhere in this or other OSCAL instances. The locally defined UUID of the
taskcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Parameters:
value- the uuid value to set
-
getType
Get the "Task Type".The type of task.
- Returns:
- the type value
-
setType
Set the "Task Type".The type of task.
- Parameters:
value- the type value to set
-
getTitle
Get the "Task Title".The title for this task.
- Returns:
- the title value
-
setTitle
Set the "Task Title".The title for this task.
- Parameters:
value- the title value to set
-
getDescription
Get the "Task Description".A human-readable description of this task.
- Returns:
- the description value, or
nullif not set
-
setDescription
Set the "Task Description".A human-readable description of this task.
- Parameters:
value- the description value to set, ornullto clear
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
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
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
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
Get the "Event Timing".The timing under which the task is intended to occur.
- Returns:
- the timing value, or
nullif not set
-
setTiming
Set the "Event Timing".The timing under which the task is intended to occur.
- Parameters:
value- the timing value to set, ornullto clear
-
getDependencies
Get the "Task Dependency".Used to indicate that a task is dependent on another task.
- Returns:
- the dependency value
-
setDependencies
Set the "Task Dependency".Used to indicate that a task is dependent on another task.
- Parameters:
value- the dependency value to set
-
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
Get the "Task".Represents a scheduled event or milestone, which may be associated with a series of assessment actions.
- Returns:
- the task value
-
setTasks
Set the "Task".Represents a scheduled event or milestone, which may be associated with a series of assessment actions.
- Parameters:
value- the task value to set
-
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
Get the "Associated Activity".Identifies an individual activity to be performed as part of a task.
- Returns:
- the associated-activity value
-
setAssociatedActivities
Set the "Associated Activity".Identifies an individual activity to be performed as part of a task.
- Parameters:
value- the associated-activity value to set
-
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
Get the "Subject of Assessment".Identifies system elements being assessed, such as components, inventory items, and locations. In the assessment plan, this identifies a planned assessment subject. In the assessment results this is an actual assessment subject, and reflects any changes from the plan. exactly what will be the focus of this assessment. Any subjects not identified in this way are out-of-scope.
- Returns:
- the subject value
-
setSubjects
Set the "Subject of Assessment".Identifies system elements being assessed, such as components, inventory items, and locations. In the assessment plan, this identifies a planned assessment subject. In the assessment results this is an actual assessment subject, and reflects any changes from the plan. exactly what will be the focus of this assessment. Any subjects not identified in this way are out-of-scope.
- Parameters:
value- the subject value to set
-
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
Get the "Responsible Role".A reference to a role with responsibility for performing a function relative to the containing object, optionally associated with a set of persons and/or organizations that perform that role.
- Returns:
- the responsible-role value
-
setResponsibleRoles
Set the "Responsible Role".A reference to a role with responsibility for performing a function relative to the containing object, optionally associated with a set of persons and/or organizations that perform that role.
- Parameters:
value- the responsible-role value to set
-
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
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-