Package dev.metaschema.oscal.lib.model
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet thegeneration-methodproperty.dev.metaschema.core.model.IMetaschemaDatagetValue()Get the field value.voidsetGenerationMethod(String value) Set thegeneration-methodproperty.voidsetValue(BigDecimal value) Set the field value.toString()
-
Constructor Details
-
Coverage
public Coverage()Constructs a newdev.metaschema.oscal.lib.model.Coverageinstance with no metadata. -
Coverage
Constructs a newdev.metaschema.oscal.lib.model.Coverageinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getGenerationMethod
Get thegeneration-methodproperty.- Returns:
- the generation-method value, or
nullif not set
-
setGenerationMethod
Set thegeneration-methodproperty.- Parameters:
value- the generation-method 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
-