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
@MetaschemaAssembly(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 the "Percentage".voidsetCategory(String value) Set thecategoryproperty.voidsetPercentage(BigDecimal value) Set the "Percentage".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 the "Percentage".A decimal value from 0-1, representing a percentage.
- Returns:
- the percentage value, or
nullif not set
-
setPercentage
Set the "Percentage".A decimal value from 0-1, representing a percentage.
- Parameters:
value- the percentage value to set, ornullto clear
-
toString
-