Package gov.nist.secauto.oscal.lib.model
Class ParameterConstraint
java.lang.Object
gov.nist.secauto.oscal.lib.model.ParameterConstraint
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Constraint",
description="A formal or informal expression of a constraint or test.",
name="parameter-constraint",
moduleClass=OscalControlCommonModule.class)
public class ParameterConstraint
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
A formal or informal expression of a constraint or test.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA test expression which is expected to be evaluated by a tool. -
Constructor Summary
ConstructorsConstructorDescriptionParameterConstraint(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newParameterConstraint.Testitem to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegov.nist.secauto.metaschema.core.model.IMetaschemaDatagetTests()booleanRemove the first matchingParameterConstraint.Testitem from the underlying collection.voidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetTests(List<ParameterConstraint.Test> value) toString()
-
Constructor Details
-
ParameterConstraint
public ParameterConstraint() -
ParameterConstraint
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getDescription
-
setDescription
-
getTests
-
setTests
-
addTest
Add a newParameterConstraint.Testitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTest
Remove the first matchingParameterConstraint.Testitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-