org.jibx.schema.validation
Class ValidationUtils.SyntheticSchemaResolver

java.lang.Object
  extended by org.jibx.schema.validation.ValidationUtils.SyntheticSchemaResolver
All Implemented Interfaces:
ISchemaResolver
Enclosing class:
ValidationUtils

private static class ValidationUtils.SyntheticSchemaResolver
extends java.lang.Object
implements ISchemaResolver

Resolver for synthesized schema, used when no-namespace schemas are being generated within a namespace.


Field Summary
private  java.util.Map m_locResolver
           
 
Constructor Summary
private ValidationUtils.SyntheticSchemaResolver()
           
 
Method Summary
 void addResolver(ISchemaResolver resolver)
           
 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, java.lang.String tns)
          Resolve a schema reference, which may be relative to this schema location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_locResolver

private final java.util.Map m_locResolver
Constructor Detail

ValidationUtils.SyntheticSchemaResolver

private ValidationUtils.SyntheticSchemaResolver()
Method Detail

addResolver

public void addResolver(ISchemaResolver resolver)

getContent

public java.io.InputStream getContent()
                               throws java.io.IOException
Description copied from interface: ISchemaResolver
Get the content associated with this schema document.

Specified by:
getContent in interface ISchemaResolver
Returns:
input stream
Throws:
java.io.IOException - on access error

getName

public java.lang.String getName()
Description copied from interface: ISchemaResolver
Get the schema name.

Specified by:
getName in interface ISchemaResolver
Returns:
name

getId

public java.lang.String getId()
Description copied from interface: ISchemaResolver
Get unique identifier for this schema.

Specified by:
getId in interface ISchemaResolver
Returns:
identifier

resolve

public ISchemaResolver resolve(java.lang.String loc,
                               java.lang.String tns)
                        throws java.io.IOException
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 interface ISchemaResolver
Parameters:
loc - target URL (null if none supplied)
tns - target namespace URI (null if none supplied)
Returns:
resolver for target
Throws:
java.io.IOException - on resolve error


Project Web Site