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
Modifier and TypeClassDescriptionstatic class
A test expression which is expected to be evaluated by a tool. -
Constructor Summary
ConstructorDescriptionParameterConstraint
(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newParameterConstraint.Test
item to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getTests()
boolean
Remove the first matchingParameterConstraint.Test
item from the underlying collection.void
setDescription
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
setTests
(List<ParameterConstraint.Test> value) toString()
-
Constructor Details
-
ParameterConstraint
public ParameterConstraint() -
ParameterConstraint
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getDescription
-
setDescription
-
getTests
-
setTests
-
addTest
Add a newParameterConstraint.Test
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeTest
Remove the first matchingParameterConstraint.Test
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-