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 Details

    • Custom

      public Custom()
      Constructs a new dev.metaschema.oscal.lib.model.Merge.Custom instance with no metadata.
    • Custom

      public Custom(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.Merge.Custom instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public dev.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface dev.metaschema.core.model.IBoundObject
    • getGroups

      @NonNull public List<ProfileGroup> getGroups()
      Get the "Control Group".

      A group of (selected) controls or of groups of controls.

      Returns:
      the group value
    • setGroups

      public void setGroups(@NonNull List<ProfileGroup> value)
      Set the "Control Group".

      A group of (selected) controls or of groups of controls.

      Parameters:
      value - the group value to set
    • addGroup

      public boolean addGroup(ProfileGroup item)
      Add a new ProfileGroup item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeGroup

      public boolean removeGroup(ProfileGroup item)
      Remove the first matching ProfileGroup item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • getInsertControls

      Get the "Insert Controls".

      Specifies which controls to use in the containing context.

      Returns:
      the insert-controls value
    • setInsertControls

      public void setInsertControls(@NonNull List<InsertControls> value)
      Set the "Insert Controls".

      Specifies which controls to use in the containing context.

      Parameters:
      value - the insert-controls value to set
    • addInsertControls

      public boolean addInsertControls(InsertControls item)
      Add a new InsertControls item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeInsertControls

      public boolean removeInsertControls(InsertControls item)
      Remove the first matching InsertControls item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object