Package gov.nist.secauto.oscal.lib.model
Class LocalObjective
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.LocalObjective
-
@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", metaschema=OscalAssessmentCommonMetaschema.class) @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."),@AllowedValue(value="assessment",description="\\*\\*(deprecated)\\*\\* Use \'assessment-method\' instead."),@AllowedValue(value="assessment-objective",description="The part defines an assessment objective."),@AllowedValue(value="assessment-method",description="The part defines an assessment method.")})) @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 ObjectA local definition of a control objective for this assessment. Uses catalog syntax for control objective and assessment actions.
-
-
Constructor Summary
Constructors Constructor Description LocalObjective()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddPart(ControlPart item)Add a newControlPartitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.StringgetControlId()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()List<Link>getLinks()List<ControlPart>getParts()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()booleanremoveLink(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.model.common.datatype.markup.MarkupMultiline value)voidsetLinks(List<Link> value)voidsetParts(List<ControlPart> value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)StringtoString()
-
-
-
Constructor Detail
-
LocalObjective
public LocalObjective()
-
-
Method Detail
-
getControlId
public String getControlId()
-
setControlId
public void setControlId(String value)
-
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)
-
addProp
public boolean addProp(Property item)
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getParts
public List<ControlPart> getParts()
-
setParts
public void setParts(List<ControlPart> value)
-
addPart
public boolean addPart(ControlPart item)
Add a newControlPartitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePart
public boolean removePart(ControlPart item)
Remove the first matchingControlPartitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-