Class ConfidenceScore

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

@MetaschemaField(formalName="Confidence Score", description="This records either a string category or a decimal value from 0-1 representing a percentage. Both of these values describe an estimation of the author\'s confidence that this mapping is correct and accurate.", name="confidence-score", moduleClass=OscalMappingCommonModule.class) public class ConfidenceScore extends Object implements dev.metaschema.core.model.IBoundObject
This records either a string category or a decimal value from 0-1 representing a percentage. Both of these values describe an estimation of the author's confidence that this mapping is correct and accurate.
  • Constructor Details

    • ConfidenceScore

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

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

      @Nullable public String getCategory()
      Get the category property.
      Returns:
      the category value, or null if not set
    • setCategory

      public void setCategory(@Nullable String value)
      Set the category property.
      Parameters:
      value - the category value to set, or null to clear
    • getPercentage

      @Nullable public BigDecimal getPercentage()
      Get the percentage property.
      Returns:
      the percentage value, or null if not set
    • setPercentage

      public void setPercentage(@Nullable BigDecimal value)
      Set the percentage property.
      Parameters:
      value - the percentage value to set, or null to clear
    • getValue

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

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

      public String toString()
      Overrides:
      toString in class Object