Class Merge.Combine

java.lang.Object
dev.metaschema.oscal.lib.model.Merge.Combine
All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
Enclosing class:
Merge

@MetaschemaAssembly(formalName="Combination Rule", description="A Combine element defines how to resolve duplicate instances of the same control (e.g., controls with the same ID).", name="combine", moduleClass=OscalProfileModule.class, valueConstraints=@ValueConstraints(expect=@Expect(id="oscal-profile-req-merge-combine",level=ERROR,test="not(@method=\'merge\')"))) public static class Merge.Combine extends Object implements dev.metaschema.core.model.IBoundObject
A Combine element defines how to resolve duplicate instances of the same control (e.g., controls with the same ID).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new dev.metaschema.oscal.lib.model.Merge.Combine instance with no metadata.
    Combine(dev.metaschema.core.model.IMetaschemaData data)
    Constructs a new dev.metaschema.oscal.lib.model.Merge.Combine instance with the specified metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.metaschema.core.model.IMetaschemaData
     
    Get the "Combination Method".
    void
    Set the "Combination Method".
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Combine

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

      public Combine(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.Merge.Combine 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
    • getMethod

      @Nullable public String getMethod()
      Get the "Combination Method".

      Declare how clashing controls should be handled.

      Returns:
      the method value, or null if not set
    • setMethod

      public void setMethod(@Nullable String value)
      Set the "Combination Method".

      Declare how clashing controls should be handled.

      Parameters:
      value - the method value to set, or null to clear
    • toString

      public String toString()
      Overrides:
      toString in class Object