Class Control
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,dev.metaschema.databind.io.IDeserializationHandler,IControl,IControlContainer
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.metaschema.oscal.lib.model.control.catalog.AbstractControl
AbstractControl.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddControl(Control item) Add a newControlitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newParameteritem to the underlying collection.booleanaddPart(ControlPart item) Add a newControlPartitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.getClazz()Get the "Control Class".Get the "Control".getId()Get the "Control Identifier".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDataGet the "Parameter".getParts()Get the "Part".getProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Control Title".booleanremoveControl(Control item) Remove the first matchingControlitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveParam(Parameter item) Remove the first matchingParameteritem from the underlying collection.booleanremovePart(ControlPart item) Remove the first matchingControlPartitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidSet the "Control Class".voidsetControls(List<Control> value) Set the "Control".voidSet the "Control Identifier".voidSet the "Link".voidSet the "Parameter".voidsetParts(List<ControlPart> value) Set the "Part".voidSet the "Property".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Control Title".toString()Methods inherited from class dev.metaschema.oscal.lib.model.control.catalog.AbstractControl
afterDeserialize, beforeDeserialize, builder, getParentControl, getReferencedParameterIds, setParentControl
-
Constructor Details
-
Control
public Control()Constructs a newdev.metaschema.oscal.lib.model.Controlinstance with no metadata. -
Control
Constructs a newdev.metaschema.oscal.lib.model.Controlinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getId
Get the "Control Identifier".Identifies a control such that it can be referenced in the defining catalog and other OSCAL instances (e.g., profiles).
-
setId
Set the "Control Identifier".Identifies a control such that it can be referenced in the defining catalog and other OSCAL instances (e.g., profiles).
- Parameters:
value- the id value to set
-
getClazz
Get the "Control Class".A textual label that provides a sub-type or characterization of the control.
- Returns:
- the class value, or
nullif not set
-
setClazz
Set the "Control Class".A textual label that provides a sub-type or characterization of the control.
- Parameters:
value- the class value to set, ornullto clear
-
getTitle
Get the "Control Title".A name given to the control, which may be used by a tool for display and navigation.
- Returns:
- the title value
-
setTitle
Set the "Control Title".A name given to the control, which may be used by a tool for display and navigation.
- Parameters:
value- the title value to set
-
getParams
Get the "Parameter".Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
- Specified by:
getParamsin interfaceIControlContainer- Returns:
- the param value
-
setParams
Set the "Parameter".Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
- Parameters:
value- the param value to set
-
addParam
Add a newParameteritem to the underlying collection.- Specified by:
addParamin interfaceIControlContainer- Parameters:
item- the item to add- Returns:
true
-
removeParam
Remove the first matchingParameteritem from the underlying collection.- Specified by:
removeParamin interfaceIControlContainer- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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
-
getParts
Get the "Part".An annotated, markup-based textual element of a control's or catalog group's definition, or a child of another part.
-
setParts
Set the "Part".An annotated, markup-based textual element of a control's or catalog group's definition, or a child of another part.
- Parameters:
value- the part value to set
-
addPart
Add a newControlPartitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePart
Remove the first matchingControlPartitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getControls
Get the "Control".A structured object representing a requirement or guideline, which when implemented will reduce an aspect of risk related to an information system and its information.
- Specified by:
getControlsin interfaceIControlContainer- Returns:
- the control value
-
setControls
Set the "Control".A structured object representing a requirement or guideline, which when implemented will reduce an aspect of risk related to an information system and its information.
- Parameters:
value- the control value to set
-
addControl
Add a newControlitem to the underlying collection.- Specified by:
addControlin interfaceIControlContainer- Parameters:
item- the item to add- Returns:
true
-
removeControl
Remove the first matchingControlitem from the underlying collection.- Specified by:
removeControlin interfaceIControlContainer- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-