Package gov.nist.secauto.oscal.lib.model
Class Profile
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.AbstractOscalInstance
-
- gov.nist.secauto.oscal.lib.model.Profile
-
- All Implemented Interfaces:
IOscalInstance
@MetaschemaAssembly(formalName="Profile", description="Each OSCAL profile is defined by a `profile` element.", name="profile", metaschema=OscalProfileMetaschema.class, rootName="profile", remarks="An OSCAL document that describes a tailoring of controls from one or more catalogs, with possible modification of multiple controls. It provides mechanisms by which controls may be selected (`import`), merged or (re)structured (`merge`), and amended (`modify`). OSCAL profiles may select subsets of controls, set parameter values for them in application, and even adjust the representation of controls as given in and by a catalog. They may also serve as sources for further modification in and by other profiles, that import them.") public class Profile extends AbstractOscalInstanceEach OSCAL profile is defined by aprofileelement.
-
-
Constructor Summary
Constructors Constructor Description Profile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddImport(ProfileImport item)Add a newProfileImportitem to the underlying collection.BackMattergetBackMatter()List<ProfileImport>getImports()MergegetMerge()MetadatagetMetadata()ModifygetModify()UUIDgetUuid()booleanremoveImport(ProfileImport item)Remove the first matchingProfileImportitem from the underlying collection.voidsetBackMatter(BackMatter value)voidsetImports(List<ProfileImport> value)voidsetMerge(Merge value)voidsetMetadata(Metadata value)voidsetModify(Modify value)voidsetUuid(UUID value)StringtoString()-
Methods inherited from class gov.nist.secauto.oscal.lib.model.AbstractOscalInstance
getResourceByUuid
-
-
-
-
Constructor Detail
-
Profile
public Profile()
-
-
Method Detail
-
getMetadata
public Metadata getMetadata()
-
setMetadata
public void setMetadata(Metadata value)
-
getImports
public List<ProfileImport> getImports()
-
setImports
public void setImports(List<ProfileImport> value)
-
addImport
public boolean addImport(ProfileImport item)
Add a newProfileImportitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeImport
public boolean removeImport(ProfileImport item)
Remove the first matchingProfileImportitem 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)
-
-