Class Parameter
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,IParameter
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.metaschema.oscal.lib.model.control.AbstractParameter
AbstractParameter.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newParameterConstraintitem to the underlying collection.booleanAdd a newParameterGuidelineitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newStringitem to the underlying collection.getClazz()Get the "Parameter Class".Get the "Constraint".Get the "Depends on".Get the "Guideline".getId()Get the "Parameter Identifier".dev.metaschema.core.datatype.markup.MarkupLinegetLabel()Get the "Parameter Label".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Selection".dev.metaschema.core.datatype.markup.MarkupMultilinegetUsage()Get the "Parameter Usage Description".Get the "Parameter Value".booleanRemove the first matchingParameterConstraintitem from the underlying collection.booleanRemove the first matchingParameterGuidelineitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanremoveValue(String item) Remove the first matchingStringitem from the underlying collection.voidSet the "Parameter Class".voidsetConstraints(List<ParameterConstraint> value) Set the "Constraint".voidsetDependsOn(String value) Set the "Depends on".voidsetGuidelines(List<ParameterGuideline> value) Set the "Guideline".voidSet the "Parameter Identifier".voidsetLabel(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Parameter Label".voidSet the "Link".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetSelect(ParameterSelection value) Set the "Selection".voidsetUsage(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Parameter Usage Description".voidSet the "Parameter Value".toString()Methods inherited from class dev.metaschema.oscal.lib.model.control.AbstractParameter
builder, getParameterReferences
-
Constructor Details
-
Parameter
public Parameter()Constructs a newdev.metaschema.oscal.lib.model.Parameterinstance with no metadata. -
Parameter
Constructs a newdev.metaschema.oscal.lib.model.Parameterinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getId
Get the "Parameter Identifier".A unique identifier for the parameter.
- Returns:
- the id value
-
setId
Set the "Parameter Identifier".A unique identifier for the parameter.
- Parameters:
value- the id value to set
-
getClazz
Get the "Parameter Class".A textual label that provides a characterization of the type, purpose, use or scope of the parameter.
- Returns:
- the class value, or
nullif not set
-
setClazz
Set the "Parameter Class".A textual label that provides a characterization of the type, purpose, use or scope of the parameter.
- Parameters:
value- the class value to set, ornullto clear
-
getDependsOn
Get the "Depends on".(deprecated) Another parameter invoking this one. This construct has been deprecated and should not be used.
- Returns:
- the depends-on value, or
nullif not set
-
setDependsOn
Set the "Depends on".(deprecated) Another parameter invoking this one. This construct has been deprecated and should not be used.
- Parameters:
value- the depends-on value to set, ornullto clear
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Specified by:
getPropsin interfaceIParameter- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLabel
Get the "Parameter Label".A short, placeholder name for the parameter, which can be used as a substitute for a
valueif no value is assigned.- Returns:
- the label value, or
nullif not set
-
setLabel
Set the "Parameter Label".A short, placeholder name for the parameter, which can be used as a substitute for a
valueif no value is assigned.- Parameters:
value- the label value to set, ornullto clear
-
getUsage
Get the "Parameter Usage Description".Describes the purpose and use of a parameter.
- Returns:
- the usage value, or
nullif not set
-
setUsage
Set the "Parameter Usage Description".Describes the purpose and use of a parameter.
- Parameters:
value- the usage value to set, ornullto clear
-
getConstraints
Get the "Constraint".A formal or informal expression of a constraint or test.
- Returns:
- the constraint value
-
setConstraints
Set the "Constraint".A formal or informal expression of a constraint or test.
- Parameters:
value- the constraint value to set
-
addConstraint
Add a newParameterConstraintitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeConstraint
Remove the first matchingParameterConstraintitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getGuidelines
Get the "Guideline".A prose statement that provides a recommendation for the use of a parameter.
- Returns:
- the guideline value
-
setGuidelines
Set the "Guideline".A prose statement that provides a recommendation for the use of a parameter.
- Parameters:
value- the guideline value to set
-
addGuideline
Add a newParameterGuidelineitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeGuideline
Remove the first matchingParameterGuidelineitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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
-
getSelect
Get the "Selection".Presenting a choice among alternatives.
- Specified by:
getSelectin interfaceIParameter- Returns:
- the select value, or
nullif not set
-
setSelect
Set the "Selection".Presenting a choice among alternatives.
- Parameters:
value- the select value to set, ornullto clear
-
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
-