Package org.jibx.schema.validation
Class ValidationUtils.SyntheticSchemaResolver
java.lang.Object
org.jibx.schema.validation.ValidationUtils.SyntheticSchemaResolver
- All Implemented Interfaces:
ISchemaResolver
- Enclosing class:
ValidationUtils
private static class ValidationUtils.SyntheticSchemaResolver
extends Object
implements ISchemaResolver
Resolver for synthesized schema, used when no-namespace schemas are being generated within a namespace.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResolver
(ISchemaResolver resolver) Get the content associated with this schema document.getId()
Get unique identifier for this schema.getName()
Get the schema name.Resolve a schema reference, which may be relative to this schema location.
-
Field Details
-
m_locResolver
-
-
Constructor Details
-
SyntheticSchemaResolver
private SyntheticSchemaResolver()
-
-
Method Details
-
addResolver
-
getContent
Description copied from interface:ISchemaResolver
Get the content associated with this schema document.- Specified by:
getContent
in interfaceISchemaResolver
- Returns:
- input stream
- Throws:
IOException
- on access error
-
getName
Description copied from interface:ISchemaResolver
Get the schema name.- Specified by:
getName
in interfaceISchemaResolver
- Returns:
- name
-
getId
Description copied from interface:ISchemaResolver
Get unique identifier for this schema.- Specified by:
getId
in interfaceISchemaResolver
- Returns:
- identifier
-
resolve
Description copied from interface:ISchemaResolver
Resolve a schema reference, which may be relative to this schema location. If a schema location is provided in the call that location should be used to identify the schema; the target namespace should only be used when the schema location is implicit.- Specified by:
resolve
in interfaceISchemaResolver
- Parameters:
loc
- target URL (null
if none supplied)tns
- target namespace URI (null
if none supplied)- Returns:
- resolver for target
- Throws:
IOException
- on resolve error
-