Class AssessmentPart
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.AssessmentPartinstance with no metadata.AssessmentPart(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.AssessmentPartinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanaddPart(AssessmentPart item) Add a newAssessmentPartitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.getClazz()Get the "Part Class".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetName()Get the "Part Name".getNs()Get the "Part Namespace".getParts()Get the "Assessment Part".getProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilinegetProse()Get the "Part Text".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Part Title".getUuid()Get the "Part Identifier".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremovePart(AssessmentPart item) Remove the first matchingAssessmentPartitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidSet the "Part Class".voidSet the "Link".voidSet the "Part Name".voidSet the "Part Namespace".voidsetParts(List<AssessmentPart> value) Set the "Assessment Part".voidSet the "Property".voidsetProse(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Part Text".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Part Title".voidSet the "Part Identifier".toString()
-
Constructor Details
-
AssessmentPart
public AssessmentPart()Constructs a newdev.metaschema.oscal.lib.model.AssessmentPartinstance with no metadata. -
AssessmentPart
Constructs a newdev.metaschema.oscal.lib.model.AssessmentPartinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "Part Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this part elsewhere in this or other OSCAL instances. The locally defined UUID of the
partcan be used to reference the data item locally or globally (e.g., in an ported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Returns:
- the uuid value, or
nullif not set
-
setUuid
Set the "Part Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this part elsewhere in this or other OSCAL instances. The locally defined UUID of the
partcan be used to reference the data item locally or globally (e.g., in an ported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Parameters:
value- the uuid value to set, ornullto clear
-
getName
Get the "Part Name".A textual label that uniquely identifies the part's semantic type.
- Returns:
- the name value
-
setName
Set the "Part Name".A textual label that uniquely identifies the part's semantic type.
- Parameters:
value- the name value to set
-
getNs
Get the "Part Namespace".A namespace qualifying the part's name. This allows different organizations to associate distinct semantics with the same name.
- Returns:
- the ns value, or
nullif not set
-
setNs
Set the "Part Namespace".A namespace qualifying the part's name. This allows different organizations to associate distinct semantics with the same name.
- Parameters:
value- the ns value to set, ornullto clear
-
getClazz
Get the "Part Class".A textual label that provides a sub-type or characterization of the part's
name. This can be used to further distinguish or discriminate between the semantics of multiple parts of the same control with the samenameandns.- Returns:
- the class value, or
nullif not set
-
setClazz
Set the "Part Class".A textual label that provides a sub-type or characterization of the part's
name. This can be used to further distinguish or discriminate between the semantics of multiple parts of the same control with the samenameandns.- Parameters:
value- the class value to set, ornullto clear
-
getTitle
Get the "Part Title".A name given to the part, which may be used by a tool for display and navigation.
- Returns:
- the title value, or
nullif not set
-
setTitle
Set the "Part Title".A name given to the part, which may be used by a tool for display and navigation.
- Parameters:
value- the title 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.
- 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
-
getProse
Get the "Part Text".Permits multiple paragraphs, lists, tables etc.
- Returns:
- the prose value, or
nullif not set
-
setProse
Set the "Part Text".Permits multiple paragraphs, lists, tables etc.
- Parameters:
value- the prose value to set, ornullto clear
-
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
-
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
-
toString
-