Class ProfileResolver
java.lang.Object
gov.nist.secauto.oscal.lib.profile.resolver.ProfileResolver
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionProfileResolver
(gov.nist.secauto.metaschema.core.metapath.DynamicContext dynamicContext) -
Method Summary
Modifier and TypeMethodDescriptiongov.nist.secauto.metaschema.core.metapath.IDocumentLoader
Gets the configured loader or creates a new default loader if no loader was configured.gov.nist.secauto.metaschema.core.metapath.DynamicContext
protected void
handleAlter
(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, IIndexer indexer) protected void
handleMerge
(Catalog resolvedCatalog, gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem, IIndexer importIndex) protected void
handleModify
(Catalog resolvedCatalog, gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem) protected void
handleSetParameter
(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, IIndexer indexer) gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem
resolve
(gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem profileOrCatalogDocument) gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem
resolve
(gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem profileOrCatalogDocument, Stack<URI> importHistory) gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem
resolve
(gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileOrCatalog, Stack<URI> importHistory) gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem
gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem
gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem
protected IIndexer
resolveImport
(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem profileImportItem, gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem, Stack<URI> importHistory, Catalog resolvedCatalog) protected gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem
resolveProfile
(gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem, Stack<URI> importHistory) Resolve the profile to a catalog.protected void
structureFlat
(Catalog resolvedCatalog, gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem, IIndexer importIndex)
-
Constructor Details
-
ProfileResolver
public ProfileResolver() -
ProfileResolver
public ProfileResolver(@NonNull gov.nist.secauto.metaschema.core.metapath.DynamicContext dynamicContext)
-
-
Method Details
-
getDocumentLoader
Gets the configured loader or creates a new default loader if no loader was configured.- Returns:
- the bound loader
- Since:
- 5.0.0
-
getDynamicContext
-
resolve
@NonNull public gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem resolve(@NonNull URL url) throws URISyntaxException, IOException, ProfileResolutionException -
resolve
@NonNull public gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem resolve(@NonNull File file) throws IOException, ProfileResolutionException -
resolve
@NonNull public gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem resolve(@NonNull Path path) throws IOException, ProfileResolutionException -
resolve
@NonNull public gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem resolve(@NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem profileOrCatalogDocument) throws IOException, ProfileResolutionException -
resolve
@NonNull public gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem resolve(@NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem profileOrCatalogDocument, @NonNull Stack<URI> importHistory) throws IOException, ProfileResolutionException -
resolve
@NonNull public gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem resolve(@NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileOrCatalog, @NonNull Stack<URI> importHistory) throws IOException, ProfileResolutionException -
resolveProfile
@NonNull protected gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem resolveProfile(@NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem, @NonNull Stack<URI> importHistory) throws IOException, ProfileResolutionException Resolve the profile to a catalog.- Parameters:
profileItem
- aIDocumentNodeItem
containing the profile to resolveimportHistory
- the import stack for cycle detection- Returns:
- the resolved profile
- Throws:
IOException
- if an error occurred while loading the profile or an importProfileResolutionException
- if an error occurred while resolving the profile
-
resolveImport
@NonNull protected IIndexer resolveImport(@NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem profileImportItem, @NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem, @NonNull Stack<URI> importHistory, @NonNull Catalog resolvedCatalog) throws IOException, ProfileResolutionException -
handleMerge
protected void handleMerge(@NonNull Catalog resolvedCatalog, @NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem, @NonNull IIndexer importIndex) -
structureFlat
protected void structureFlat(@NonNull Catalog resolvedCatalog, @NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem, @NonNull IIndexer importIndex) -
handleModify
protected void handleModify(@NonNull Catalog resolvedCatalog, @NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem profileItem) throws ProfileResolutionException - Throws:
ProfileResolutionException
-
handleSetParameter
protected void handleSetParameter(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, IIndexer indexer) -
handleAlter
protected void handleAlter(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, IIndexer indexer)
-