Package dev.metaschema.oscal.lib.model
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 Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.ConfidenceScoreinstance with no metadata.ConfidenceScore(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.ConfidenceScoreinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionGet thecategoryproperty.dev.metaschema.core.model.IMetaschemaDataGet thepercentageproperty.getValue()Get the field value.voidsetCategory(String value) Set thecategoryproperty.voidsetPercentage(BigDecimal value) Set thepercentageproperty.voidSet the field value.toString()
-
Constructor Details
-
ConfidenceScore
public ConfidenceScore()Constructs a newdev.metaschema.oscal.lib.model.ConfidenceScoreinstance with no metadata. -
ConfidenceScore
Constructs a newdev.metaschema.oscal.lib.model.ConfidenceScoreinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getCategory
Get thecategoryproperty.- Returns:
- the category value, or
nullif not set
-
setCategory
Set thecategoryproperty.- Parameters:
value- the category value to set, ornullto clear
-
getPercentage
Get thepercentageproperty.- Returns:
- the percentage value, or
nullif not set
-
setPercentage
Set thepercentageproperty.- Parameters:
value- the percentage value to set, ornullto clear
-
getValue
Get the field value.- Returns:
- the value
-
setValue
Set the field value.- Parameters:
value- the value to set
-
toString
-