Class Catalog
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,ICatalog,IControlContainer,IGroupContainer,IOscalInstance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddControl(Control item) Add a newControlitem to the underlying collection.booleanaddGroup(CatalogGroup item) Add a newCatalogGroupitem to the underlying collection.booleanAdd a newParameteritem to the underlying collection.Get the "Back matter".Get the "Control".Get the "Control Group".Get the "Document Metadata".dev.metaschema.core.model.IMetaschemaDataGet the "Parameter".getUuid()Get the "Catalog Universally Unique Identifier".booleanremoveControl(Control item) Remove the first matchingControlitem from the underlying collection.booleanremoveGroup(CatalogGroup item) Remove the first matchingCatalogGroupitem from the underlying collection.booleanremoveParam(Parameter item) Remove the first matchingParameteritem from the underlying collection.voidsetBackMatter(BackMatter value) Set the "Back matter".voidsetControls(List<Control> value) Set the "Control".voidsetGroups(List<CatalogGroup> value) Set the "Control Group".voidsetMetadata(Metadata value) Set the "Document Metadata".voidSet the "Parameter".voidSet the "Catalog Universally Unique Identifier".toString()Methods inherited from class dev.metaschema.oscal.lib.model.control.catalog.AbstractCatalog
getReferencedParameterIdsMethods inherited from class dev.metaschema.oscal.lib.model.AbstractOscalInstance
getResourceByUuid
-
Constructor Details
-
Catalog
public Catalog()Constructs a newdev.metaschema.oscal.lib.model.Cataloginstance with no metadata. -
Catalog
Constructs a newdev.metaschema.oscal.lib.model.Cataloginstance 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 "Catalog Universally Unique Identifier".Provides a globally unique means to identify a given catalog instance.
- Specified by:
getUuidin interfaceIOscalInstance- Returns:
- the uuid value
-
setUuid
Set the "Catalog Universally Unique Identifier".Provides a globally unique means to identify a given catalog instance.
- Parameters:
value- the uuid value to set
-
getMetadata
Get the "Document Metadata".Provides information about the containing document, and defines concepts that are shared across the document.
- Specified by:
getMetadatain interfaceIOscalInstance- Returns:
- the metadata value
-
setMetadata
Set the "Document Metadata".Provides information about the containing document, and defines concepts that are shared across the document.
- Parameters:
value- the metadata value to set
-
getParams
Get the "Parameter".Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
- Specified by:
getParamsin interfaceIControlContainer- Returns:
- the param value
-
setParams
Set the "Parameter".Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
- Parameters:
value- the param value to set
-
addParam
Add a newParameteritem to the underlying collection.- Specified by:
addParamin interfaceIControlContainer- Parameters:
item- the item to add- Returns:
true
-
removeParam
Remove the first matchingParameteritem from the underlying collection.- Specified by:
removeParamin interfaceIControlContainer- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getControls
Get the "Control".A structured object representing a requirement or guideline, which when implemented will reduce an aspect of risk related to an information system and its information.
- Specified by:
getControlsin interfaceIControlContainer- Returns:
- the control value
-
setControls
Set the "Control".A structured object representing a requirement or guideline, which when implemented will reduce an aspect of risk related to an information system and its information.
- Parameters:
value- the control value to set
-
addControl
Add a newControlitem to the underlying collection.- Specified by:
addControlin interfaceIControlContainer- Parameters:
item- the item to add- Returns:
true
-
removeControl
Remove the first matchingControlitem from the underlying collection.- Specified by:
removeControlin interfaceIControlContainer- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getGroups
Get the "Control Group".A group of controls, or of groups of controls.
- Specified by:
getGroupsin interfaceIGroupContainer- Returns:
- the group value
-
setGroups
Set the "Control Group".A group of controls, or of groups of controls.
- Parameters:
value- the group value to set
-
addGroup
Add a newCatalogGroupitem to the underlying collection.- Specified by:
addGroupin interfaceIGroupContainer- Parameters:
item- the item to add- Returns:
true
-
removeGroup
Remove the first matchingCatalogGroupitem from the underlying collection.- Specified by:
removeGroupin interfaceIGroupContainer- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getBackMatter
Get the "Back matter".A collection of resources that may be referenced from within the OSCAL document instance.
- Specified by:
getBackMatterin interfaceIOscalInstance- Returns:
- the back-matter value, or
nullif not set
-
setBackMatter
Set the "Back matter".A collection of resources that may be referenced from within the OSCAL document instance.
- Parameters:
value- the back-matter value to set, ornullto clear
-
toString
-