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"),expect=@Expect(id="oscal-profile-import-include-exclude-control-id-in-imported-catalog",formalName="In-Scope Control Identifier",description="Each referenced control identifier must match a control in the catalog resolved by the surrounding profile import.",level=ERROR,target="(include-controls|exclude-controls)/with-id",test="let $id := . return exists($resolved-profile-import//control[@id = $id])",message="Control identifier \'{ . }\' was not found in the imported catalog."))) 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 Details

    • ProfileImport

      public ProfileImport()
      Constructs a new dev.metaschema.oscal.lib.model.ProfileImport instance with no metadata.
    • ProfileImport

      public ProfileImport(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.ProfileImport instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details