Package org.jibx.schema
Class UrlResolver
java.lang.Object
org.jibx.schema.UrlResolver
- All Implemented Interfaces:
ISchemaResolver
Basic resolver supporting relative URL paths.
- Author:
- Dennis M. Sosnoski
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
m_url
Schema document URL. -
m_name
Schema name. -
m_id
Unique identifier for this schema document.
-
-
Constructor Details
-
UrlResolver
Constructor. This converts paths to a standard form by eliminating "./" and "../" relative path components.- Parameters:
path-url-
-
-
Method Details
-
getContent
Description copied from interface:ISchemaResolverGet the content associated with this schema document.- Specified by:
getContentin interfaceISchemaResolver- Returns:
- input stream
- Throws:
IOException- on access error
-
getName
Description copied from interface:ISchemaResolverGet the schema name.- Specified by:
getNamein interfaceISchemaResolver- Returns:
- name
-
getId
Description copied from interface:ISchemaResolverGet unique identifier for this schema.- Specified by:
getIdin interfaceISchemaResolver- Returns:
- identifier
-
resolve
Description copied from interface:ISchemaResolverResolve 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:
resolvein interfaceISchemaResolver- Parameters:
loc- target URL (nullif none supplied)tns- target namespace URI (nullif none supplied)- Returns:
- resolver for target
- Throws:
IOException- on resolve error
-
getUrl
Get the document URL.- Returns:
- url
-
equals
-
hashCode
public int hashCode()
-