Interface IBindingContext.ISchemaValidationProvider
- Enclosing interface:
- IBindingContext
public static interface IBindingContext.ISchemaValidationProvider
-
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
getJsonSchema
(org.json.JSONObject json) Get a JSON schema to use for content validation.getXmlSchemas
(URL targetResource) Get a XML schema to use for content validation.default IValidationResult
validateWithSchema
(URI target, Format asFormat)
-
Method Details
-
validateWithSchema
@NonNull default IValidationResult validateWithSchema(@NonNull URI target, @NonNull Format asFormat) throws FileNotFoundException, IOException - Throws:
FileNotFoundException
IOException
-
getJsonSchema
Get a JSON schema to use for content validation.- Parameters:
json
- the JSON content to validate- Returns:
- the JSON schema
- Throws:
IOException
- if an error occurred while loading the schema
-
getXmlSchemas
Get a XML schema to use for content validation.- Parameters:
targetResource
- the URL for the XML content to validate- Returns:
- the XML schema sources
- Throws:
IOException
- if an error occurred while loading the schema
-