org.jibx.schema.generator
Class SchemaGen.MemoryResolver
java.lang.Object
org.jibx.schema.generator.SchemaGen.MemoryResolver
- All Implemented Interfaces:
- ISchemaResolver
- Enclosing class:
- SchemaGen
private static class SchemaGen.MemoryResolver
- extends java.lang.Object
- implements ISchemaResolver
Field Summary |
private java.lang.String |
m_id
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_id
private final java.lang.String m_id
SchemaGen.MemoryResolver
public SchemaGen.MemoryResolver(java.lang.String id)
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)
throws java.io.IOException
- Description copied from interface:
ISchemaResolver
- Resolve a URL reference, which may be relative to this schema location.
- Specified by:
resolve
in interface ISchemaResolver
- Parameters:
loc
- target URL
- Returns:
- resolver for target
- Throws:
java.io.IOException
- on resolve error