Package gov.nist.secauto.oscal.lib.model
Class LocalObjective
java.lang.Object
gov.nist.secauto.oscal.lib.model.LocalObjective
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Assessment-Specific Control Objective",
description="A local definition of a control objective for this assessment. Uses catalog syntax for control objective and assessment actions.",
name="local-objective",
moduleClass=OscalAssessmentCommonModule.class,
valueConstraints=@ValueConstraints(allowedValues=@AllowedValues(level=ERROR,target="part[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values={@AllowedValue(value="objective",description="\\*\\*(deprecated)\\*\\* Use \'assessment-objective\' instead.",deprecatedVersion="1.0.1"),@AllowedValue(value="assessment",description="\\*\\*(deprecated)\\*\\* Use \'assessment-method\' instead.",deprecatedVersion="1.0.1"),@AllowedValue(value="assessment-objective",description="The part defines an assessment objective."),@AllowedValue(value="assessment-method",description="The part defines an assessment method.")})),
modelConstraints=@HasCardinality(level=ERROR,target="part[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=(\'objective\',\'assessment-objective\')]",maxOccurs=1) @HasCardinality(level=ERROR,target="part[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=(\'assessment\',\'assessment-method\')]/prop[has-oscal-namespace((\'http://csrc.nist.gov/ns/oscal\',\'http://csrc.nist.gov/ns/rmf\')) and @name=\'method\']",minOccurs=1,maxOccurs=1) @HasCardinality(level=ERROR,target="part[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=(\'assessment\',\'assessment-method\')]/part[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=(\'objects\',\'assessment-objects\')]",minOccurs=1,maxOccurs=1) @HasCardinality(level=ERROR,target="part[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=(\'objective\',\'assessment-objective\')]/prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=\'method-id\']",minOccurs=1))
public class LocalObjective
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
A local definition of a control objective for this assessment. Uses catalog syntax for control objective and assessment actions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanaddPart(ControlPart item) Add a newControlPartitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetParts()getProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinebooleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremovePart(ControlPart item) Remove the first matchingControlPartitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidsetControlId(String value) voidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidsetParts(List<ControlPart> value) voidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) toString()
-
Constructor Details
-
LocalObjective
public LocalObjective() -
LocalObjective
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getControlId
-
setControlId
-
getDescription
-
setDescription
-
getProps
-
setProps
-
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
-
setLinks
-
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
-
getParts
-
setParts
-
addPart
Add a newControlPartitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePart
Remove the first matchingControlPartitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-