Package dev.metaschema.oscal.lib.model
Class SetParameter
java.lang.Object
dev.metaschema.oscal.lib.model.SetParameter
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Set Parameter Value",
description="Identifies the parameter that will be set by the enclosed value.",
name="set-parameter",
moduleClass=OscalImplementationCommonModule.class)
public class SetParameter
extends Object
implements dev.metaschema.core.model.IBoundObject
Identifies the parameter that will be set by the enclosed value.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.SetParameterinstance with no metadata.SetParameter(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.SetParameterinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newStringitem to the underlying collection.dev.metaschema.core.model.IMetaschemaDataGet the "Parameter ID".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Parameter Value".booleanremoveValue(String item) Remove the first matchingStringitem from the underlying collection.voidsetParamId(String value) Set the "Parameter ID".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidSet the "Parameter Value".toString()
-
Constructor Details
-
SetParameter
public SetParameter()Constructs a newdev.metaschema.oscal.lib.model.SetParameterinstance with no metadata. -
SetParameter
Constructs a newdev.metaschema.oscal.lib.model.SetParameterinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getParamId
Get the "Parameter ID".A human-oriented reference to a
parameterwithin a control, who's catalog has been imported into the current implementation context.- Returns:
- the param-id value
-
setParamId
Set the "Parameter ID".A human-oriented reference to a
parameterwithin a control, who's catalog has been imported into the current implementation context.- Parameters:
value- the param-id value to set
-
getValues
Get the "Parameter Value".A parameter value or set of values.
- Returns:
- the value value
-
setValues
Set the "Parameter Value".A parameter value or set of values.
- Parameters:
value- the value value to set
-
addValue
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeValue
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-