Package dev.metaschema.oscal.lib.model
Class ProfileImport
java.lang.Object
dev.metaschema.oscal.lib.model.ProfileImport
- All Implemented Interfaces:
dev.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 dev.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
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.ProfileImportinstance with no metadata.ProfileImport(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.ProfileImportinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newProfileSelectControlByIditem to the underlying collection.booleanAdd a newProfileSelectControlByIditem to the underlying collection.Get the "Select Control".getHref()Get the "Catalog or Profile Reference".Get the "Include All".Get the "Select Control".dev.metaschema.core.model.IMetaschemaDatabooleanRemove the first matchingProfileSelectControlByIditem from the underlying collection.booleanRemove the first matchingProfileSelectControlByIditem from the underlying collection.voidSet the "Select Control".voidSet the "Catalog or Profile Reference".voidsetIncludeAll(IncludeAll value) Set the "Include All".voidSet the "Select Control".toString()
-
Constructor Details
-
ProfileImport
public ProfileImport()Constructs a newdev.metaschema.oscal.lib.model.ProfileImportinstance with no metadata. -
ProfileImport
Constructs a newdev.metaschema.oscal.lib.model.ProfileImportinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getHref
Get the "Catalog or Profile Reference".A resolvable URL reference to the base catalog or profile that this profile is tailoring.
- Returns:
- the href value
-
setHref
Set the "Catalog or Profile Reference".A resolvable URL reference to the base catalog or profile that this profile is tailoring.
- Parameters:
value- the href value to set
-
getIncludeAll
Get the "Include All".Include all controls from the imported catalog or profile resources.
- Returns:
- the include-all value, or
nullif not set
-
setIncludeAll
Set the "Include All".Include all controls from the imported catalog or profile resources.
- Parameters:
value- the include-all value to set, ornullto clear
-
getIncludeControls
Get the "Select Control".Select a control or controls from an imported control set.
- Returns:
- the include-controls value
-
setIncludeControls
Set the "Select Control".Select a control or controls from an imported control set.
- Parameters:
value- the include-controls value to set
-
addIncludeControls
Add a newProfileSelectControlByIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeIncludeControls
Remove the first matchingProfileSelectControlByIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getExcludeControls
Get the "Select Control".Select a control or controls from an imported control set.
- Returns:
- the exclude-controls value
-
setExcludeControls
Set the "Select Control".Select a control or controls from an imported control set.
- Parameters:
value- the exclude-controls value to set
-
addExcludeControls
Add a newProfileSelectControlByIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeExcludeControls
Remove the first matchingProfileSelectControlByIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-