Package gov.nist.secauto.oscal.lib.model
Class Catalog
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.AbstractOscalInstance
-
- gov.nist.secauto.oscal.lib.model.control.catalog.AbstractCatalog
-
- gov.nist.secauto.oscal.lib.model.Catalog
-
- All Implemented Interfaces:
ICatalog,IControlContainer,IGroupContainer,IOscalInstance
@MetaschemaAssembly(formalName="Catalog", description="A structured, [organized collection](https://pages.nist.gov/OSCAL/concepts/terminology/#catalog) of control information.", name="catalog", metaschema=OscalCatalogMetaschema.class, rootName="catalog", remarks="Catalogs may use one or more `group` objects to subdivide the control contents of a catalog.") @AllowedValues(level=ERROR,target="metadata/prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values={@AllowedValue(value="resolution-tool",description="The tool used to produce a resolved profile."),@AllowedValue(value="source-profile-uuid",description="The document-level `uuid` of the source profile from which the catalog was produced by [profile resolution](https://pages.nist.gov/OSCAL/concepts/processing/profile-resolution/).")}) @AllowedValues(level=ERROR,target="metadata/link/@rel",allowOthers=true,values={@AllowedValue(value="source-profile",description="The profile from which the catalog was produced by [profile resolution](https://pages.nist.gov/OSCAL/concepts/processing/profile-resolution/)."),@AllowedValue(value="source-profile-uuid",description="The document-level `uuid` of the profile from which the catalog was produced by [profile resolution](https://pages.nist.gov/OSCAL/concepts/processing/profile-resolution/).")}) @Index(level=ERROR,target="//part",name="catalog-parts",keyFields=@KeyField(target="@id")) @Index(level=ERROR,target="//prop",name="catalog-props",keyFields=@KeyField(target="@uuid")) @Index(level=ERROR,target="//(control|group|part)",name="catalog-groups-controls-parts",keyFields=@KeyField(target="@id")) @Index(level=ERROR,target="//control",name="catalog-controls",keyFields=@KeyField(target="@id")) @Index(level=ERROR,target="//param",name="catalog-params",keyFields=@KeyField(target="@id")) @Index(level=ERROR,target="//group",name="catalog-groups",keyFields=@KeyField(target="@id")) public class Catalog extends AbstractCatalogA structured, organized collection of control information.
-
-
Constructor Summary
Constructors Constructor Description Catalog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddControl(Control item)Add a newControlitem to the underlying collection.booleanaddGroup(CatalogGroup item)Add a newCatalogGroupitem to the underlying collection.booleanaddParam(Parameter item)Add a newParameteritem to the underlying collection.BackMattergetBackMatter()List<Control>getControls()List<CatalogGroup>getGroups()MetadatagetMetadata()List<Parameter>getParams()UUIDgetUuid()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)voidsetControls(List<Control> value)voidsetGroups(List<CatalogGroup> value)voidsetMetadata(Metadata value)voidsetParams(List<Parameter> value)voidsetUuid(UUID value)StringtoString()-
Methods inherited from class gov.nist.secauto.oscal.lib.model.control.catalog.AbstractCatalog
getReferencedParameterIds
-
Methods inherited from class gov.nist.secauto.oscal.lib.model.AbstractOscalInstance
getResourceByUuid
-
-
-
-
Constructor Detail
-
Catalog
public Catalog()
-
-
Method Detail
-
getMetadata
public Metadata getMetadata()
-
setMetadata
public void setMetadata(Metadata value)
-
addParam
public boolean addParam(Parameter item)
Add a newParameteritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeParam
public boolean removeParam(Parameter item)
Remove the first matchingParameteritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getControls
public List<Control> getControls()
-
setControls
public void setControls(List<Control> value)
-
addControl
public boolean addControl(Control item)
Add a newControlitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeControl
public boolean removeControl(Control item)
Remove the first matchingControlitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getGroups
public List<CatalogGroup> getGroups()
-
setGroups
public void setGroups(List<CatalogGroup> value)
-
addGroup
public boolean addGroup(CatalogGroup item)
Add a newCatalogGroupitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeGroup
public boolean removeGroup(CatalogGroup item)
Remove the first matchingCatalogGroupitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getBackMatter
public BackMatter getBackMatter()
-
setBackMatter
public void setBackMatter(BackMatter value)
-
-