Class Statement
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddByComponent(ByComponent item) Add a newByComponentitem 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.Get the "Component Control Implementation".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 "Control Statement Reference".getUuid()Get the "Control Statement Reference Universally Unique Identifier".booleanremoveByComponent(ByComponent item) Remove the first matchingByComponentitem 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.voidsetByComponents(List<ByComponent> value) Set the "Component Control Implementation".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".voidsetStatementId(String value) Set the "Control Statement Reference".voidSet the "Control Statement Reference Universally Unique Identifier".toString()
-
Constructor Details
-
Statement
public Statement()Constructs a newdev.metaschema.oscal.lib.model.Statementinstance with no metadata. -
Statement
Constructs a newdev.metaschema.oscal.lib.model.Statementinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getStatementId
Get the "Control Statement Reference".A human-oriented identifier reference to a
control statement.- Returns:
- the statement-id value
-
setStatementId
Set the "Control Statement Reference".A human-oriented identifier reference to a
control statement.- Parameters:
value- the statement-id value to set
-
getUuid
Get the "Control Statement Reference Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this control statement elsewhere in this or other OSCAL instances. The UUID of the
control statementin the source OSCAL instance is sufficient to reference the data item locally or globally (e.g., in an imported OSCAL instance).- Returns:
- the uuid value
-
setUuid
Set the "Control Statement Reference Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this control statement elsewhere in this or other OSCAL instances. The UUID of the
control statementin the source OSCAL instance is sufficient to reference the data item locally or globally (e.g., in an imported OSCAL instance).- Parameters:
value- the 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
-
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
-
getByComponents
Get the "Component Control Implementation".Defines how the referenced component implements a set of controls.
- Returns:
- the by-component value
-
setByComponents
Set the "Component Control Implementation".Defines how the referenced component implements a set of controls.
- Parameters:
value- the by-component value to set
-
addByComponent
Add a newByComponentitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeByComponent
Remove the first matchingByComponentitem 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
-