Class Coverage

java.lang.Object
dev.metaschema.oscal.lib.model.Coverage
All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject

@MetaschemaField(formalName="Coverage", description="A decimal value from 0-1, representing the percentage coverage of the targets by the sources.", name="coverage", moduleClass=OscalMappingCommonModule.class) public class Coverage extends Object implements dev.metaschema.core.model.IBoundObject
A decimal value from 0-1, representing the percentage coverage of the targets by the sources.
  • Constructor Details

    • Coverage

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

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

      @Nullable public String getGenerationMethod()
      Get the generation-method property.
      Returns:
      the generation-method value, or null if not set
    • setGenerationMethod

      public void setGenerationMethod(@Nullable String value)
      Set the generation-method property.
      Parameters:
      value - the generation-method value to set, or null to clear
    • getValue

      @Nullable public BigDecimal getValue()
      Get the field value.
      Returns:
      the value
    • setValue

      public void setValue(@Nullable BigDecimal value)
      Set the field value.
      Parameters:
      value - the value to set
    • toString

      public String toString()
      Overrides:
      toString in class Object