Class ControlPart
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,IPart
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.metaschema.oscal.lib.model.control.AbstractPart
AbstractPart.Builder -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.ControlPartinstance with no metadata.ControlPart(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.ControlPartinstance with the specified metadata. -
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.getClazz()Get the "Part Class".getId()Get the "Part Identifier".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetName()Get the "Part Name".getNs()Get the "Part Namespace".getParts()Get the "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".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.voidSet the "Part Class".voidSet the "Part Identifier".voidSet the "Link".voidSet the "Part Name".voidSet the "Part Namespace".voidsetParts(List<ControlPart> value) Set the "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".toString()Methods inherited from class dev.metaschema.oscal.lib.model.control.AbstractPart
builder, getInserts, getPartsRecursively
-
Constructor Details
-
ControlPart
public ControlPart()Constructs a newdev.metaschema.oscal.lib.model.ControlPartinstance with no metadata. -
ControlPart
Constructs a newdev.metaschema.oscal.lib.model.ControlPartinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getId
Get the "Part Identifier".A unique identifier for the part.
- Returns:
- the id value, or
nullif not set
-
setId
Set the "Part Identifier".A unique identifier for the part.
- Parameters:
value- the id value to set, ornullto clear
-
getName
Get the "Part Name".A textual label that uniquely identifies the part's semantic type, which exists in a value space qualified by the
ns.- Returns:
- the name value
-
setName
Set the "Part Name".A textual label that uniquely identifies the part's semantic type, which exists in a value space qualified by the
ns.- Parameters:
value- the name value to set
-
getNs
Get the "Part Namespace".An optional 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".An optional 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".An optional textual providing a sub-type or characterization of the part's
name, or a category to which the part belongs.- Returns:
- the class value, or
nullif not set
-
setClazz
Set the "Part Class".An optional textual providing a sub-type or characterization of the part's
name, or a category to which the part belongs.- Parameters:
value- the class value to set, ornullto clear
-
getTitle
Get the "Part Title".An optional 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".An optional 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.
-
setProse
Set the "Part Text".Permits multiple paragraphs, lists, tables etc.
- Parameters:
value- the prose value to set, ornullto clear
-
getParts
Get the "Part".An annotated, markup-based textual element of a control's or catalog group's definition, or a child of another part.
-
setParts
Set the "Part".An annotated, markup-based textual element of a control's or catalog group's definition, or a child of another part.
- Parameters:
value- the part value to set
-
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
-
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
-