Package gov.nist.secauto.oscal.lib
Class OscalBindingContext
java.lang.Object
gov.nist.secauto.metaschema.databind.DefaultBindingContext
gov.nist.secauto.oscal.lib.OscalBindingContext
- All Implemented Interfaces:
gov.nist.secauto.metaschema.databind.IBindingContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nist.secauto.metaschema.databind.IBindingContext
gov.nist.secauto.metaschema.databind.IBindingContext.BindingContextBuilder, gov.nist.secauto.metaschema.databind.IBindingContext.IBindingMatcher, gov.nist.secauto.metaschema.databind.IBindingContext.IModuleLoaderStrategy, gov.nist.secauto.metaschema.databind.IBindingContext.ISchemaValidationProvider -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final gov.nist.secauto.metaschema.core.metapath.StaticContext -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstruct a new OSCAL-flavored binding context.OscalBindingContext(gov.nist.secauto.metaschema.databind.IBindingContext.IModuleLoaderStrategy strategy) Construct a new OSCAL-flavored binding context. -
Method Summary
Modifier and TypeMethodDescriptionstatic gov.nist.secauto.metaschema.databind.IBindingContext.BindingContextBuilderbuilder()Get a new builder that can produce a new, configured OSCAL-flavored binding context.static OscalBindingContextinstance()loadAssessmentPlan(File file) loadAssessmentPlan(URL url) loadAssessmentPlan(Path path) loadAssessmentResults(File file) loadAssessmentResults(URL url) loadAssessmentResults(Path path) loadCatalog(File file) loadCatalog(URL url) loadCatalog(Path path) loadComponentDefinition(File file) loadComponentDefinition(Path path) loadProfile(File file) loadProfile(URL url) loadProfile(Path path) loadSystemSecurityPlan(File file) loadSystemSecurityPlan(Path path) static OscalBindingContextGet a new OSCAL-flavoredIBindingContextinstance, which can be used to load information that binds a model to a set of Java classes.static OscalBindingContextnewInstance(gov.nist.secauto.metaschema.databind.IBindingContext.IModuleLoaderStrategy strategy) Get a new OSCAL-flavoredIBindingContextinstance, which can be used to load information that binds a model to a set of Java classes.Methods inherited from class gov.nist.secauto.metaschema.databind.DefaultBindingContext
deepCopy, getBindingMatchers, getBoundClassForRootJsonName, getBoundClassForRootXmlQName, getBoundDefinitionForClass, getModuleLoaderStrategy, newDeserializer, newModuleLoader, newSerializer, registerClassBinding, registerModuleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gov.nist.secauto.metaschema.databind.IBindingContext
getDataTypeAdapterInstance, loadMetaschema, loadMetaschema, newBoundLoader, newConstraintLoader, newValidator, registerModule, validate, validate, validate, validateWithConstraints
-
Field Details
-
OSCAL_STATIC_METAPATH_CONTEXT
@NonNull public static final gov.nist.secauto.metaschema.core.metapath.StaticContext OSCAL_STATIC_METAPATH_CONTEXT
-
-
Constructor Details
-
OscalBindingContext
protected OscalBindingContext()Construct a new OSCAL-flavored binding context. -
OscalBindingContext
public OscalBindingContext(@NonNull gov.nist.secauto.metaschema.databind.IBindingContext.IModuleLoaderStrategy strategy) Construct a new OSCAL-flavored binding context.- Parameters:
strategy- the behavior class to use for loading Metaschema modules- Since:
- 2.0.0
-
-
Method Details
-
instance
-
builder
Get a new builder that can produce a new, configured OSCAL-flavored binding context.- Returns:
- the builder
- Since:
- 2.0.0
-
newInstance
Get a new OSCAL-flavoredIBindingContextinstance, which can be used to load information that binds a model to a set of Java classes.- Returns:
- a new binding context
- Since:
- 2.0.0
-
newInstance
@NonNull public static OscalBindingContext newInstance(@NonNull gov.nist.secauto.metaschema.databind.IBindingContext.IModuleLoaderStrategy strategy) Get a new OSCAL-flavoredIBindingContextinstance, which can be used to load information that binds a model to a set of Java classes.- Parameters:
strategy- the loader strategy to use when loading Metaschema modules- Returns:
- a new binding context
- Since:
- 2.0.0
-
loadCatalog
- Throws:
IOExceptionURISyntaxException
-
loadCatalog
- Throws:
IOException
-
loadCatalog
- Throws:
IOException
-
loadProfile
- Throws:
IOExceptionURISyntaxException
-
loadProfile
- Throws:
IOException
-
loadProfile
- Throws:
IOException
-
loadSystemSecurityPlan
@NonNull public SystemSecurityPlan loadSystemSecurityPlan(@NonNull URL url) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
loadSystemSecurityPlan
- Throws:
IOException
-
loadSystemSecurityPlan
- Throws:
IOException
-
loadComponentDefinition
@NonNull public ComponentDefinition loadComponentDefinition(@NonNull URL url) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
loadComponentDefinition
- Throws:
IOException
-
loadComponentDefinition
- Throws:
IOException
-
loadAssessmentPlan
@NonNull public AssessmentPlan loadAssessmentPlan(@NonNull URL url) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
loadAssessmentPlan
- Throws:
IOException
-
loadAssessmentPlan
- Throws:
IOException
-
loadAssessmentResults
@NonNull public AssessmentResults loadAssessmentResults(@NonNull URL url) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
loadAssessmentResults
- Throws:
IOException
-
loadAssessmentResults
- Throws:
IOException
-
loadPlanOfActionAndMilestones
@NonNull public PlanOfActionAndMilestones loadPlanOfActionAndMilestones(@NonNull URL url) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
loadPlanOfActionAndMilestones
@NonNull public PlanOfActionAndMilestones loadPlanOfActionAndMilestones(@NonNull Path path) throws IOException - Throws:
IOException
-
loadPlanOfActionAndMilestones
@NonNull public PlanOfActionAndMilestones loadPlanOfActionAndMilestones(@NonNull File file) throws IOException - Throws:
IOException
-