Package dev.metaschema.oscal.lib.model
Class Merge.Custom
java.lang.Object
dev.metaschema.oscal.lib.model.Merge.Custom
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Merge
@MetaschemaAssembly(formalName="Custom Grouping",
description="Provides an alternate grouping structure that selected controls will be placed in.",
name="custom",
moduleClass=OscalProfileModule.class,
remarks="The `custom` element represents a custom arrangement or organization of controls in the resolution of a catalog. This structuring directive gives the profile author the ability to define an entirely different organization of controls as compared to their source catalog(s).")
public static class Merge.Custom
extends Object
implements dev.metaschema.core.model.IBoundObject
Provides an alternate grouping structure that selected controls will be placed in.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroup(ProfileGroup item) Add a newProfileGroupitem to the underlying collection.booleanAdd a newInsertControlsitem to the underlying collection.Get the "Control Group".Get the "Insert Controls".dev.metaschema.core.model.IMetaschemaDatabooleanremoveGroup(ProfileGroup item) Remove the first matchingProfileGroupitem from the underlying collection.booleanRemove the first matchingInsertControlsitem from the underlying collection.voidsetGroups(List<ProfileGroup> value) Set the "Control Group".voidsetInsertControls(List<InsertControls> value) Set the "Insert Controls".toString()
-
Constructor Details
-
Custom
public Custom()Constructs a newdev.metaschema.oscal.lib.model.Merge.Custominstance with no metadata. -
Custom
Constructs a newdev.metaschema.oscal.lib.model.Merge.Custominstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getGroups
Get the "Control Group".A group of (selected) controls or of groups of controls.
- Returns:
- the group value
-
setGroups
Set the "Control Group".A group of (selected) controls or of groups of controls.
- Parameters:
value- the group value to set
-
addGroup
Add a newProfileGroupitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeGroup
Remove the first matchingProfileGroupitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getInsertControls
Get the "Insert Controls".Specifies which controls to use in the containing context.
- Returns:
- the insert-controls value
-
setInsertControls
Set the "Insert Controls".Specifies which controls to use in the containing context.
- Parameters:
value- the insert-controls value to set
-
addInsertControls
Add a newInsertControlsitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeInsertControls
Remove the first matchingInsertControlsitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-