Skip to content

Commit

Permalink
[WIP] Adding URI resolver for #16.
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist committed Jul 3, 2023
1 parent 81e184f commit 8affdef
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ public IDocumentNodeItem resolveProfile(@NonNull File file) throws IOException,
protected IDocumentNodeItem resolveProfile(
@NonNull IDocumentNodeItem profileDocument,
@NonNull Stack<URI> importHistory) throws IOException, ProfileResolutionException {
return resolveProfile(profileDocument, importHistory, profileDocument.getBaseUri());
}

@NonNull
protected IDocumentNodeItem resolveProfile(
@NonNull IDocumentNodeItem profileDocument,
@NonNull Stack<URI> importHistory,
@NonNull URI resolvedCatalogUri) throws IOException, ProfileResolutionException {
Catalog resolvedCatalog = new Catalog();

generateMetadata(resolvedCatalog, profileDocument);
Expand All @@ -210,7 +218,7 @@ protected IDocumentNodeItem resolveProfile(
ObjectUtils.notNull(
(IAssemblyClassBinding) OscalBindingContext.instance().getClassBinding(Catalog.class))),
resolvedCatalog,
profileDocument.getBaseUri());
resolvedCatalogUri);
}

@NonNull
Expand Down

0 comments on commit 8affdef

Please sign in to comment.