Package org.jibx.schema
Interface ISchemaResolver
-
- All Known Implementing Classes:
MemoryResolver,UrlResolver,ValidationUtils.SyntheticSchemaResolver
public interface ISchemaResolverInterface for resolving schema references which may be relative to a base location.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamgetContent()Get the content associated with this schema document.java.lang.StringgetId()Get unique identifier for this schema.java.lang.StringgetName()Get the schema name.ISchemaResolverresolve(java.lang.String loc, java.lang.String tns)Resolve a schema reference, which may be relative to this schema location.
-
-
-
Method Detail
-
resolve
ISchemaResolver resolve(java.lang.String loc, java.lang.String tns) throws java.io.IOException
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.- Parameters:
loc- target URL (nullif none supplied)tns- target namespace URI (nullif none supplied)- Returns:
- resolver for target
- Throws:
java.io.IOException- on resolve error
-
getName
java.lang.String getName()
Get the schema name.- Returns:
- name
-
getId
java.lang.String getId()
Get unique identifier for this schema.- Returns:
- identifier
-
getContent
java.io.InputStream getContent() throws java.io.IOExceptionGet the content associated with this schema document.- Returns:
- input stream
- Throws:
java.io.IOException- on access error
-
-