Class DefinedComponent
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.DefinedComponentinstance with no metadata.DefinedComponent(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.DefinedComponentinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newComponentControlImplementationitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanaddProtocol(Protocol item) Add a newProtocolitem to the underlying collection.booleanAdd a newResponsibleRoleitem to the underlying collection.Get the "Control Implementation Set".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Component Description".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".Get the "Service Protocol Information".dev.metaschema.core.datatype.markup.MarkupLineGet the "Purpose".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Responsible Role".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Component Title".getType()Get the "Component Type".getUuid()Get the "Component Identifier".booleanRemove the first matchingComponentControlImplementationitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanremoveProtocol(Protocol item) Remove the first matchingProtocolitem from the underlying collection.booleanRemove the first matchingResponsibleRoleitem from the underlying collection.voidSet the "Control Implementation Set".voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Component Description".voidSet the "Link".voidSet the "Property".voidsetProtocols(List<Protocol> value) Set the "Service Protocol Information".voidsetPurpose(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Purpose".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetResponsibleRoles(List<ResponsibleRole> value) Set the "Responsible Role".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Component Title".voidSet the "Component Type".voidSet the "Component Identifier".toString()
-
Constructor Details
-
DefinedComponent
public DefinedComponent()Constructs a newdev.metaschema.oscal.lib.model.DefinedComponentinstance with no metadata. -
DefinedComponent
Constructs a newdev.metaschema.oscal.lib.model.DefinedComponentinstance 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 "Component Identifier".Provides a globally unique means to identify a given component.
- Returns:
- the uuid value
-
setUuid
Set the "Component Identifier".Provides a globally unique means to identify a given component.
- Parameters:
value- the uuid value to set
-
getType
Get the "Component Type".A category describing the purpose of the component.
- Returns:
- the type value
-
setType
Set the "Component Type".A category describing the purpose of the component.
- Parameters:
value- the type value to set
-
getTitle
Get the "Component Title".A human readable name for the component.
- Returns:
- the title value
-
setTitle
Set the "Component Title".A human readable name for the component.
- Parameters:
value- the title value to set
-
getDescription
Get the "Component Description".A description of the component, including information about its function.
- Returns:
- the description value
-
setDescription
Set the "Component Description".A description of the component, including information about its function.
- Parameters:
value- the description value to set
-
getPurpose
Get the "Purpose".A summary of the technological or business purpose of the component.
- Returns:
- the purpose value, or
nullif not set
-
setPurpose
Set the "Purpose".A summary of the technological or business purpose of the component.
- Parameters:
value- the purpose 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
-
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
-
getResponsibleRoles
Get the "Responsible Role".A reference to a role with responsibility for performing a function relative to the containing object, optionally associated with a set of persons and/or organizations that perform that role.
- Returns:
- the responsible-role value
-
setResponsibleRoles
Set the "Responsible Role".A reference to a role with responsibility for performing a function relative to the containing object, optionally associated with a set of persons and/or organizations that perform that role.
- Parameters:
value- the responsible-role value to set
-
addResponsibleRole
Add a newResponsibleRoleitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponsibleRole
Remove the first matchingResponsibleRoleitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getProtocols
Get the "Service Protocol Information".Information about the protocol used to provide a service.
- Returns:
- the protocol value
-
setProtocols
Set the "Service Protocol Information".Information about the protocol used to provide a service.
- Parameters:
value- the protocol value to set
-
addProtocol
Add a newProtocolitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProtocol
Remove the first matchingProtocolitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getControlImplementations
Get the "Control Implementation Set".Defines how the component or capability supports a set of controls.
- Returns:
- the control-implementation value
-
setControlImplementations
Set the "Control Implementation Set".Defines how the component or capability supports a set of controls.
- Parameters:
value- the control-implementation value to set
-
addControlImplementation
Add a newComponentControlImplementationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeControlImplementation
Remove the first matchingComponentControlImplementationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-