Class RelatedTask
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to detail assessment subjects that were identified by this task. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.RelatedTaskinstance with no metadata.RelatedTask(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.RelatedTaskinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newResponsiblePartyitem to the underlying collection.booleanaddSubject(AssessmentSubject item) Add a newAssessmentSubjectitem to the underlying collection.Get the "Identified Subject".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Responsible Party".Get the "Subject of Assessment".Get the "Task Universally Unique Identifier Reference".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 matchingResponsiblePartyitem from the underlying collection.booleanRemove the first matchingAssessmentSubjectitem from the underlying collection.voidSet the "Identified Subject".voidSet the "Link".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidSet the "Responsible Party".voidsetSubjects(List<AssessmentSubject> value) Set the "Subject of Assessment".voidsetTaskUuid(UUID value) Set the "Task Universally Unique Identifier Reference".toString()
-
Constructor Details
-
RelatedTask
public RelatedTask()Constructs a newdev.metaschema.oscal.lib.model.RelatedTaskinstance with no metadata. -
RelatedTask
Constructs a newdev.metaschema.oscal.lib.model.RelatedTaskinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getTaskUuid
Get the "Task Universally Unique Identifier Reference".A machine-oriented identifier reference to a unique task.
- Returns:
- the task-uuid value
-
setTaskUuid
Set the "Task Universally Unique Identifier Reference".A machine-oriented identifier reference to a unique task.
- Parameters:
value- the task-uuid value to set
-
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
-
getResponsibleParties
Get the "Responsible Party".A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.
- Returns:
- the responsible-party value
-
setResponsibleParties
Set the "Responsible Party".A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.
- Parameters:
value- the responsible-party value to set
-
addResponsibleParty
Add a newResponsiblePartyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponsibleParty
Remove the first matchingResponsiblePartyitem 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
-
getIdentifiedSubject
Get the "Identified Subject".Used to detail assessment subjects that were identified by this task.
- Returns:
- the identified-subject value, or
nullif not set
-
setIdentifiedSubject
Set the "Identified Subject".Used to detail assessment subjects that were identified by this task.
- Parameters:
value- the identified-subject value to set, ornullto clear
-
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
-