org.jibx.schema
Interface ISchemaResolver

All Known Implementing Classes:
SchemaGen.MemoryResolver, UrlResolver

public interface ISchemaResolver

Interface for resolving URL references which may be relative to a base location.


Method Summary
 java.io.InputStream getContent()
          Get the content associated with this schema document.
 java.lang.String getId()
          Get unique identifier for this schema.
 java.lang.String getName()
          Get the schema name.
 ISchemaResolver resolve(java.lang.String loc)
          Resolve a URL reference, which may be relative to this schema location.
 

Method Detail

resolve

ISchemaResolver resolve(java.lang.String loc)
                        throws java.io.IOException
Resolve a URL reference, which may be relative to this schema location.

Parameters:
loc - target URL
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.IOException
Get the content associated with this schema document.

Returns:
input stream
Throws:
java.io.IOException - on access error


Project Web Site