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 Object
A formal or informal expression of a constraint or test.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParameterConstraint.Test
A 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 boolean
addTest(ParameterConstraint.Test item)
Add a newParameterConstraint.Test
item to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getDescription()
List<ParameterConstraint.Test>
getTests()
boolean
removeTest(ParameterConstraint.Test item)
Remove the first matchingParameterConstraint.Test
item from the underlying collection.void
setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setTests(List<ParameterConstraint.Test> value)
String
toString()
-
-
-
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.Test
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeTest
public boolean removeTest(ParameterConstraint.Test item)
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
-
-