Class Action
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
Constructors -
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.getDate()Get the "Action Occurrence Date".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 "Action Type System".getType()Get the "Action Type".getUuid()Get the "Action 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 matchingResponsiblePartyitem from the underlying collection.voidsetDate(ZonedDateTime value) Set the "Action Occurrence Date".voidSet the "Link".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidSet the "Responsible Party".voidSet the "Action Type System".voidSet the "Action Type".voidSet the "Action Universally Unique Identifier".toString()
-
Constructor Details
-
Action
public Action()Constructs a newdev.metaschema.oscal.lib.model.Actioninstance with no metadata. -
Action
Constructs a newdev.metaschema.oscal.lib.model.Actioninstance 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 "Action Universally Unique Identifier".A unique identifier that can be used to reference this defined action elsewhere in an OSCAL document. A UUID should be consistently used for a given location across revisions of the document.
- Returns:
- the uuid value
-
setUuid
Set the "Action Universally Unique Identifier".A unique identifier that can be used to reference this defined action elsewhere in an OSCAL document. A UUID should be consistently used for a given location across revisions of the document.
- Parameters:
value- the uuid value to set
-
getDate
Get the "Action Occurrence Date".The date and time when the action occurred.
- Returns:
- the date value, or
nullif not set
-
setDate
Set the "Action Occurrence Date".The date and time when the action occurred.
- Parameters:
value- the date value to set, ornullto clear
-
getType
Get the "Action Type".The type of action documented by the assembly, such as an approval.
- Returns:
- the type value
-
setType
Set the "Action Type".The type of action documented by the assembly, such as an approval.
- Parameters:
value- the type value to set
-
getSystem
Get the "Action Type System".Specifies the action type system used.
- Returns:
- the system value
-
setSystem
Set the "Action Type System".Specifies the action type system used.
- Parameters:
value- the system 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
-
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
-