Package gov.nist.secauto.oscal.lib.model
Class ProfileImport
java.lang.Object
gov.nist.secauto.oscal.lib.model.ProfileImport
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Import Resource",
description="Designates a referenced source catalog or profile that provides a source of control information for use in creating a new overlay or baseline.",
name="import",
moduleClass=OscalProfileModule.class,
remarks="The contents of the `import` element indicate which controls from the source will be included. Controls from the source catalog or profile may be either selected, using the `include-all` or `include-controls` directives, or de-selected (using an `exclude-controls` directive).",
valueConstraints=@ValueConstraints(lets=@Let(name="resolved-profile-import",target=".[@href] ! resolve-profile(doc(resolve-uri(Q{http://csrc.nist.gov/ns/oscal/1.0}resolve-reference(@href))))/catalog"),indexHasKey=@IndexHasKey(id="oscal-profile-import-has-key-include-exclude-control-id",level=ERROR,target="(include-controls|exclude-controls)/with-id",indexName="profile-import-index-control-id",keyFields=@KeyField)),
modelConstraints=@AssemblyConstraints(index=@Index(id="oscal-profile-import-index-control-id",formalName="In-Scope Control Identifiers",description="An index of control identifiers that are in-scope for selection in the profile import.",level=ERROR,target="$resolved-profile-import//control",name="profile-import-index-control-id",keyFields=@KeyField(target="@id"))))
public class ProfileImport
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Designates a referenced source catalog or profile that provides a source of control information for use in creating a new overlay or baseline.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newProfileSelectControlById
item to the underlying collection.boolean
Add a newProfileSelectControlById
item to the underlying collection.getHref()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
boolean
Remove the first matchingProfileSelectControlById
item from the underlying collection.boolean
Remove the first matchingProfileSelectControlById
item from the underlying collection.void
void
void
setIncludeAll
(IncludeAll value) void
toString()
-
Constructor Details
-
ProfileImport
public ProfileImport() -
ProfileImport
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getHref
-
setHref
-
getIncludeAll
-
setIncludeAll
-
getIncludeControls
-
setIncludeControls
-
addIncludeControls
Add a newProfileSelectControlById
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeIncludeControls
Remove the first matchingProfileSelectControlById
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getExcludeControls
-
setExcludeControls
-
addExcludeControls
Add a newProfileSelectControlById
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeExcludeControls
Remove the first matchingProfileSelectControlById
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-