diff --git a/src/main/java/gov/nist/secauto/oscal/lib/OscalBindingContext.java b/src/main/java/gov/nist/secauto/oscal/lib/OscalBindingContext.java index 83285b48..8ad9a826 100644 --- a/src/main/java/gov/nist/secauto/oscal/lib/OscalBindingContext.java +++ b/src/main/java/gov/nist/secauto/oscal/lib/OscalBindingContext.java @@ -26,7 +26,7 @@ package gov.nist.secauto.oscal.lib; -import gov.nist.secauto.metaschema.core.model.xml.IModulePostProcessor; +import gov.nist.secauto.metaschema.core.model.IModuleLoader; import gov.nist.secauto.metaschema.databind.DefaultBindingContext; import gov.nist.secauto.oscal.lib.model.AssessmentPlan; import gov.nist.secauto.oscal.lib.model.AssessmentResults; @@ -63,7 +63,7 @@ public static OscalBindingContext instance() { * @param modulePostProcessors * a list of module post processors to call after loading a module */ - public OscalBindingContext(@NonNull List modulePostProcessors) { + public OscalBindingContext(@NonNull List modulePostProcessors) { super(modulePostProcessors); registerBindingMatcher(Catalog.class); registerBindingMatcher(Profile.class); diff --git a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java index 8d5092c2..efe45bec 100644 --- a/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java +++ b/src/main/java/gov/nist/secauto/oscal/lib/profile/resolver/ProfileResolver.java @@ -44,7 +44,7 @@ import gov.nist.secauto.metaschema.databind.io.BindingException; import gov.nist.secauto.metaschema.databind.io.DeserializationFeature; import gov.nist.secauto.metaschema.databind.io.IBoundLoader; -import gov.nist.secauto.metaschema.databind.model.IBoundDefinitionAssembly; +import gov.nist.secauto.metaschema.databind.model.IBoundDefinitionModelAssembly; import gov.nist.secauto.oscal.lib.OscalBindingContext; import gov.nist.secauto.oscal.lib.OscalUtils; import gov.nist.secauto.oscal.lib.model.BackMatter; @@ -269,7 +269,7 @@ protected IDocumentNodeItem resolveProfile( return INodeItemFactory.instance().newDocumentNodeItem( ObjectUtils.requireNonNull( - (IBoundDefinitionAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), + (IBoundDefinitionModelAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), ObjectUtils.requireNonNull(profileItem.getBaseUri()), resolvedCatalog); } @@ -550,7 +550,7 @@ protected void structureFlat(@NonNull Catalog resolvedCatalog, @NonNull IRootAss // rebuild the document, since the paths have changed IDocumentNodeItem resolvedCatalogItem = INodeItemFactory.instance().newDocumentNodeItem( ObjectUtils.requireNonNull( - (IBoundDefinitionAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), + (IBoundDefinitionModelAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), ObjectUtils.requireNonNull(profileItem.getBaseUri()), resolvedCatalog); @@ -562,7 +562,7 @@ protected void handleModify(@NonNull Catalog resolvedCatalog, @NonNull IRootAsse throws ProfileResolutionException { IDocumentNodeItem resolvedCatalogDocument = INodeItemFactory.instance().newDocumentNodeItem( ObjectUtils.requireNonNull( - (IBoundDefinitionAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), + (IBoundDefinitionModelAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), ObjectUtils.requireNonNull(profileItem.getBaseUri()), resolvedCatalog); diff --git a/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/TestUtil.java b/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/TestUtil.java index 6f9c2c0f..b2874122 100644 --- a/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/TestUtil.java +++ b/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/TestUtil.java @@ -29,7 +29,7 @@ import gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem; import gov.nist.secauto.metaschema.core.metapath.item.node.INodeItemFactory; import gov.nist.secauto.metaschema.core.util.ObjectUtils; -import gov.nist.secauto.metaschema.databind.model.IBoundDefinitionAssembly; +import gov.nist.secauto.metaschema.databind.model.IBoundDefinitionModelAssembly; import gov.nist.secauto.oscal.lib.OscalBindingContext; import gov.nist.secauto.oscal.lib.model.Catalog; import gov.nist.secauto.oscal.lib.model.control.AbstractParameter; @@ -181,7 +181,7 @@ public static IDocumentNodeItem newImportedCatalog() { return INodeItemFactory.instance().newDocumentNodeItem( ObjectUtils.requireNonNull( - (IBoundDefinitionAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), + (IBoundDefinitionModelAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), ObjectUtils.notNull(Paths.get("").toUri()), importedCatalog); } diff --git a/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/selection/ImportTest.java b/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/selection/ImportTest.java index 71a17ccb..41b39296 100644 --- a/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/selection/ImportTest.java +++ b/src/test/java/gov/nist/secauto/oscal/lib/profile/resolver/selection/ImportTest.java @@ -32,7 +32,7 @@ import gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem; import gov.nist.secauto.metaschema.core.util.CollectionUtil; import gov.nist.secauto.metaschema.core.util.ObjectUtils; -import gov.nist.secauto.metaschema.databind.model.IBoundDefinitionAssembly; +import gov.nist.secauto.metaschema.databind.model.IBoundDefinitionModelAssembly; import gov.nist.secauto.oscal.lib.OscalBindingContext; import gov.nist.secauto.oscal.lib.model.Catalog; import gov.nist.secauto.oscal.lib.model.IncludeAll; @@ -67,7 +67,7 @@ private static IDocumentNodeItem newImportedCatalog() { return INodeItemFactory.instance().newDocumentNodeItem( ObjectUtils.requireNonNull( - (IBoundDefinitionAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), + (IBoundDefinitionModelAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Catalog.class)), ObjectUtils.notNull(Paths.get("").toUri()), importedCatalog); } @@ -95,7 +95,7 @@ void test() throws ProfileResolutionException { IDocumentNodeItem profileDocumentItem = INodeItemFactory.instance().newDocumentNodeItem( ObjectUtils.requireNonNull( - (IBoundDefinitionAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Profile.class)), + (IBoundDefinitionModelAssembly) OscalBindingContext.instance().getBoundDefinitionForClass(Profile.class)), cwd, profile);