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 AbstractOscalInstance
Each OSCAL profile is defined by aprofile
element.
-
-
Constructor Summary
Constructors Constructor Description Profile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addImport(ProfileImport item)
Add a newProfileImport
item to the underlying collection.BackMatter
getBackMatter()
List<ProfileImport>
getImports()
Merge
getMerge()
Metadata
getMetadata()
Modify
getModify()
UUID
getUuid()
boolean
removeImport(ProfileImport item)
Remove the first matchingProfileImport
item from the underlying collection.void
setBackMatter(BackMatter value)
void
setImports(List<ProfileImport> value)
void
setMerge(Merge value)
void
setMetadata(Metadata value)
void
setModify(Modify value)
void
setUuid(UUID value)
String
toString()
-
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 newProfileImport
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeImport
public boolean removeImport(ProfileImport item)
Remove the first matchingProfileImport
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getBackMatter
public BackMatter getBackMatter()
-
setBackMatter
public void setBackMatter(BackMatter value)
-
-