Package dev.metaschema.oscal.lib.model
Class AssessmentPlan.TermsAndConditions
java.lang.Object
dev.metaschema.oscal.lib.model.AssessmentPlan.TermsAndConditions
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- AssessmentPlan
@MetaschemaAssembly(formalName="Assessment Plan Terms and Conditions",
description="Used to define various terms and conditions under which an assessment, described by the plan, can be performed. Each child part defines a different type of term or condition.",
name="terms-and-conditions",
moduleClass=OscalApModule.class,
valueConstraints=@ValueConstraints(allowedValues=@AllowedValues(id="oscal-terms-and-conditions-part-name",level=ERROR,target="part[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values={@AllowedValue(value="rules-of-engagement",description="Defines the circumstances, conditions, degree, and manner in which the use of cyber-attack techniques or actions may be applied to the assessment."),@AllowedValue(value="disclosures",description="Any information the assessor should make known to the system owner or authorizing official. Has child \'item\' parts for each individual disclosure."),@AllowedValue(value="assessment-inclusions",description="Defines any assessment activities which the system owner or authorizing official wishes to ensure are performed as part of the assessment."),@AllowedValue(value="assessment-exclusions",description="Defines any assessment activities which the system owner or authorizing official explicitly prohibits from being performed as part of the assessment."),@AllowedValue(value="results-delivery",description="Defines conditions related to the delivery of the assessment results, such as when to deliver, how, and to whom."),@AllowedValue(value="assumptions",description="Defines any supposition made by the assessor. Has child \'item\' parts for each assumption."),@AllowedValue(value="methodology",description="An explanation of practices, procedures, and rules used in the course of the assessment.")})))
public static class AssessmentPlan.TermsAndConditions
extends Object
implements dev.metaschema.core.model.IBoundObject
Used to define various terms and conditions under which an assessment, described by the plan, can be performed. Each child part defines a different type of term or condition.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.AssessmentPlan.TermsAndConditionsinstance with no metadata.TermsAndConditions(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.AssessmentPlan.TermsAndConditionsinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPart(AssessmentPart item) Add a newAssessmentPartitem to the underlying collection.dev.metaschema.core.model.IMetaschemaDatagetParts()Get the "Assessment Part".booleanremovePart(AssessmentPart item) Remove the first matchingAssessmentPartitem from the underlying collection.voidsetParts(List<AssessmentPart> value) Set the "Assessment Part".toString()
-
Constructor Details
-
TermsAndConditions
public TermsAndConditions()Constructs a newdev.metaschema.oscal.lib.model.AssessmentPlan.TermsAndConditionsinstance with no metadata. -
TermsAndConditions
Constructs a newdev.metaschema.oscal.lib.model.AssessmentPlan.TermsAndConditionsinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getParts
Get the "Assessment Part".A partition of an assessment plan or results or a child of another part.
- Returns:
- the part value
-
setParts
Set the "Assessment Part".A partition of an assessment plan or results or a child of another part.
- Parameters:
value- the part value to set
-
addPart
Add a newAssessmentPartitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePart
Remove the first matchingAssessmentPartitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-