Package gov.nist.secauto.oscal.lib.model
Class ParameterConstraint
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.ParameterConstraint
-
@MetaschemaAssembly(formalName="Constraint", description="A formal or informal expression of a constraint or test.", name="parameter-constraint", metaschema=OscalControlCommonMetaschema.class) public class ParameterConstraint extends ObjectA formal or informal expression of a constraint or test.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParameterConstraint.TestA test expression which is expected to be evaluated by a tool.
-
Constructor Summary
Constructors Constructor Description ParameterConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddTest(ParameterConstraint.Test item)Add a newParameterConstraint.Testitem to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()List<ParameterConstraint.Test>getTests()booleanremoveTest(ParameterConstraint.Test item)Remove the first matchingParameterConstraint.Testitem from the underlying collection.voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetTests(List<ParameterConstraint.Test> value)StringtoString()
-
-
-
Constructor Detail
-
ParameterConstraint
public ParameterConstraint()
-
-
Method Detail
-
getDescription
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getDescription()
-
setDescription
public void setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
getTests
public List<ParameterConstraint.Test> getTests()
-
setTests
public void setTests(List<ParameterConstraint.Test> value)
-
addTest
public boolean addTest(ParameterConstraint.Test item)
Add a newParameterConstraint.Testitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTest
public boolean removeTest(ParameterConstraint.Test item)
Remove the first matchingParameterConstraint.Testitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-