Class Activity
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIdentifies an individual step in a series of steps related to an activity, such as an assessment test or examination procedure. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newResponsibleRoleitem to the underlying collection.booleanaddStep(Activity.Step item) Add a newActivity.Stepitem to the underlying collection.dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Included Activity Description".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".Get the "Reviewed Controls and Control Objectives".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Responsible Role".getSteps()Get the "Step".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Included Activity Title".getUuid()Get the "Assessment Activity Universally Unique Identifier".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.booleanremoveStep(Activity.Step item) Remove the first matchingActivity.Stepitem from the underlying collection.voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Included Activity Description".voidSet the "Link".voidSet the "Property".voidSet the "Reviewed Controls and Control Objectives".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetResponsibleRoles(List<ResponsibleRole> value) Set the "Responsible Role".voidsetSteps(List<Activity.Step> value) Set the "Step".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Included Activity Title".voidSet the "Assessment Activity Universally Unique Identifier".toString()
-
Constructor Details
-
Activity
public Activity()Constructs a newdev.metaschema.oscal.lib.model.Activityinstance with no metadata. -
Activity
Constructs a newdev.metaschema.oscal.lib.model.Activityinstance 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 "Assessment Activity Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this assessment activity elsewhere in this or other OSCAL instances. The locally defined UUID of the
activitycan 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 "Assessment Activity Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this assessment activity elsewhere in this or other OSCAL instances. The locally defined UUID of the
activitycan 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
-
getTitle
Get the "Included Activity Title".The title for this included activity.
- Returns:
- the title value, or
nullif not set
-
setTitle
Set the "Included Activity Title".The title for this included activity.
- Parameters:
value- the title value to set, ornullto clear
-
getDescription
Get the "Included Activity Description".A human-readable description of this included activity.
- Returns:
- the description value
-
setDescription
Set the "Included Activity Description".A human-readable description of this included activity.
- Parameters:
value- the description 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
-
getSteps
Get the "Step".Identifies an individual step in a series of steps related to an activity, such as an assessment test or examination procedure.
- Returns:
- the step value
-
setSteps
Set the "Step".Identifies an individual step in a series of steps related to an activity, such as an assessment test or examination procedure.
- Parameters:
value- the step value to set
-
addStep
Add a newActivity.Stepitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeStep
Remove the first matchingActivity.Stepitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedControls
Get the "Reviewed Controls and Control Objectives".Identifies the controls being assessed and their control objectives.
- Returns:
- the related-controls value, or
nullif not set
-
setRelatedControls
Set the "Reviewed Controls and Control Objectives".Identifies the controls being assessed and their control objectives.
- Parameters:
value- the related-controls value to set, ornullto clear
-
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
-