Package dev.metaschema.oscal.lib.model
Class Result.Attestation
java.lang.Object
dev.metaschema.oscal.lib.model.Result.Attestation
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Result
@MetaschemaAssembly(formalName="Attestation Statements",
description="A set of textual statements, typically written by the assessor.",
name="attestation",
moduleClass=OscalArModule.class,
modelConstraints=@AssemblyConstraints(unique=@IsUnique(id="oscal-unique-ar-attestation-responsible-party",level=ERROR,target="responsible-party",keyFields=@KeyField(target="@role-id"),remarks="Since `responsible-party` associates multiple `party-uuid` entries with a single `role-id`, each role-id must be referenced only once.")))
public static class Result.Attestation
extends Object
implements dev.metaschema.core.model.IBoundObject
A set of textual statements, typically written by the assessor.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.Result.Attestationinstance with no metadata.Attestation(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.Result.Attestationinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPart(AssessmentPart item) Add a newAssessmentPartitem to the underlying collection.booleanAdd a newResponsiblePartyitem to the underlying collection.dev.metaschema.core.model.IMetaschemaDatagetParts()Get the "Assessment Part".Get the "Responsible Party".booleanremovePart(AssessmentPart item) Remove the first matchingAssessmentPartitem from the underlying collection.booleanRemove the first matchingResponsiblePartyitem from the underlying collection.voidsetParts(List<AssessmentPart> value) Set the "Assessment Part".voidSet the "Responsible Party".toString()
-
Constructor Details
-
Attestation
public Attestation()Constructs a newdev.metaschema.oscal.lib.model.Result.Attestationinstance with no metadata. -
Attestation
Constructs a newdev.metaschema.oscal.lib.model.Result.Attestationinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getResponsibleParties
Get the "Responsible Party".A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.
- Returns:
- the responsible-party value
-
setResponsibleParties
Set the "Responsible Party".A reference to a set of persons and/or organizations that have responsibility for performing the referenced role in the context of the containing object.
- Parameters:
value- the responsible-party value to set
-
addResponsibleParty
Add a newResponsiblePartyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponsibleParty
Remove the first matchingResponsiblePartyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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
-