Package dev.metaschema.oscal.lib.model
Class InsertControls
java.lang.Object
dev.metaschema.oscal.lib.model.InsertControls
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Insert Controls",
description="Specifies which controls to use in the containing context.",
name="insert-controls",
moduleClass=OscalProfileModule.class,
remarks="To be schema-valid, this element must contain either (but not both) a single `include-all` directive, or a sequence of `include-controls` directives.\n\nIf this directive is not provided, then no controls are to be inserted; i.e., all controls are included explicitly.")
public class InsertControls
extends Object
implements dev.metaschema.core.model.IBoundObject
Specifies which controls to use in the containing context.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.InsertControlsinstance with no metadata.InsertControls(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.InsertControlsinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newProfileSelectControlByIditem to the underlying collection.booleanAdd a newProfileSelectControlByIditem to the underlying collection.Get the "Select Control".Get the "Include All".Get the "Select Control".dev.metaschema.core.model.IMetaschemaDatagetOrder()Get the "Order".booleanRemove the first matchingProfileSelectControlByIditem from the underlying collection.booleanRemove the first matchingProfileSelectControlByIditem from the underlying collection.voidSet the "Select Control".voidsetIncludeAll(IncludeAll value) Set the "Include All".voidSet the "Select Control".voidSet the "Order".toString()
-
Constructor Details
-
InsertControls
public InsertControls()Constructs a newdev.metaschema.oscal.lib.model.InsertControlsinstance with no metadata. -
InsertControls
Constructs a newdev.metaschema.oscal.lib.model.InsertControlsinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getOrder
Get the "Order".A designation of how a selection of controls in a profile is to be ordered.
- Returns:
- the order value, or
nullif not set
-
setOrder
Set the "Order".A designation of how a selection of controls in a profile is to be ordered.
- Parameters:
value- the order value to set, ornullto clear
-
getIncludeAll
Get the "Include All".Include all controls from the imported catalog or profile resources.
- Returns:
- the include-all value, or
nullif not set
-
setIncludeAll
Set the "Include All".Include all controls from the imported catalog or profile resources.
- Parameters:
value- the include-all value to set, ornullto clear
-
getIncludeControls
Get the "Select Control".Select a control or controls from an imported control set.
- Returns:
- the include-controls value
-
setIncludeControls
Set the "Select Control".Select a control or controls from an imported control set.
- Parameters:
value- the include-controls value to set
-
addIncludeControls
Add a newProfileSelectControlByIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeIncludeControls
Remove the first matchingProfileSelectControlByIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getExcludeControls
Get the "Select Control".Select a control or controls from an imported control set.
- Returns:
- the exclude-controls value
-
setExcludeControls
Set the "Select Control".Select a control or controls from an imported control set.
- Parameters:
value- the exclude-controls value to set
-
addExcludeControls
Add a newProfileSelectControlByIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeExcludeControls
Remove the first matchingProfileSelectControlByIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-