Package gov.nist.secauto.oscal.lib
Class OscalBindingContext
- java.lang.Object
-
- gov.nist.secauto.metaschema.binding.DefaultBindingContext
-
- gov.nist.secauto.oscal.lib.OscalBindingContext
-
- All Implemented Interfaces:
gov.nist.secauto.metaschema.binding.IBindingContext
public class OscalBindingContext extends gov.nist.secauto.metaschema.binding.DefaultBindingContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OscalBindingContext()
Construct a new OSCAL-flavored binding context.OscalBindingContext(Set<gov.nist.secauto.metaschema.model.common.constraint.IConstraintSet> constraintSets)
Construct a new OSCAL-flavored binding context with custom constraints.
-
Method Summary
-
Methods inherited from class gov.nist.secauto.metaschema.binding.DefaultBindingContext
copyBoundObject, getBindingMatchers, getBoundClassForJsonName, getBoundClassForXmlQName, getClassBinding, getClassBindingsByClass, getJavaTypeAdapterInstance, getMetaschemaInstanceByClass, newBoundLoader, newDeserializer, newSerializer, registerBindingMatcher, toNodeItem
-
-
-
-
Constructor Detail
-
OscalBindingContext
public OscalBindingContext(@NonNull Set<gov.nist.secauto.metaschema.model.common.constraint.IConstraintSet> constraintSets)
Construct a new OSCAL-flavored binding context with custom constraints.- Parameters:
constraintSets
- a set of additional constraints to apply
-
OscalBindingContext
protected OscalBindingContext()
Construct a new OSCAL-flavored binding context.
-
-
Method Detail
-
instance
@NonNull public static OscalBindingContext instance()
-
loadCatalog
@NonNull public Catalog loadCatalog(@NonNull URL url) throws IOException, URISyntaxException
- Throws:
IOException
URISyntaxException
-
loadCatalog
@NonNull public Catalog loadCatalog(@NonNull Path path) throws IOException
- Throws:
IOException
-
loadCatalog
@NonNull public Catalog loadCatalog(@NonNull File file) throws IOException
- Throws:
IOException
-
loadProfile
@NonNull public Profile loadProfile(@NonNull URL url) throws IOException, URISyntaxException
- Throws:
IOException
URISyntaxException
-
loadProfile
@NonNull public Profile loadProfile(@NonNull Path path) throws IOException
- Throws:
IOException
-
loadProfile
@NonNull public Profile loadProfile(@NonNull File file) throws IOException
- Throws:
IOException
-
loadSystemSecurityPlan
@NonNull public SystemSecurityPlan loadSystemSecurityPlan(@NonNull URL url) throws IOException, URISyntaxException
- Throws:
IOException
URISyntaxException
-
loadSystemSecurityPlan
@NonNull public SystemSecurityPlan loadSystemSecurityPlan(@NonNull Path path) throws IOException
- Throws:
IOException
-
loadSystemSecurityPlan
@NonNull public SystemSecurityPlan loadSystemSecurityPlan(@NonNull File file) throws IOException
- Throws:
IOException
-
loadComponentDefinition
@NonNull public ComponentDefinition loadComponentDefinition(@NonNull URL url) throws IOException, URISyntaxException
- Throws:
IOException
URISyntaxException
-
loadComponentDefinition
@NonNull public ComponentDefinition loadComponentDefinition(@NonNull Path path) throws IOException
- Throws:
IOException
-
loadComponentDefinition
@NonNull public ComponentDefinition loadComponentDefinition(@NonNull File file) throws IOException
- Throws:
IOException
-
loadAssessmentPlan
@NonNull public AssessmentPlan loadAssessmentPlan(@NonNull URL url) throws IOException, URISyntaxException
- Throws:
IOException
URISyntaxException
-
loadAssessmentPlan
@NonNull public AssessmentPlan loadAssessmentPlan(@NonNull Path path) throws IOException
- Throws:
IOException
-
loadAssessmentPlan
@NonNull public AssessmentPlan loadAssessmentPlan(@NonNull File file) throws IOException
- Throws:
IOException
-
loadAssessmentResults
@NonNull public AssessmentResults loadAssessmentResults(@NonNull URL url) throws IOException, URISyntaxException
- Throws:
IOException
URISyntaxException
-
loadAssessmentResults
@NonNull public AssessmentResults loadAssessmentResults(@NonNull Path path) throws IOException
- Throws:
IOException
-
loadAssessmentResults
@NonNull public AssessmentResults loadAssessmentResults(@NonNull File file) throws IOException
- Throws:
IOException
-
loadPlanOfActionAndMilestones
@NonNull public PlanOfActionAndMilestones loadPlanOfActionAndMilestones(@NonNull URL url) throws IOException, URISyntaxException
- Throws:
IOException
URISyntaxException
-
loadPlanOfActionAndMilestones
@NonNull public PlanOfActionAndMilestones loadPlanOfActionAndMilestones(@NonNull Path path) throws IOException
- Throws:
IOException
-
loadPlanOfActionAndMilestones
@NonNull public PlanOfActionAndMilestones loadPlanOfActionAndMilestones(@NonNull File file) throws IOException
- Throws:
IOException
-
-