public class UrlResolver extends java.lang.Object implements ISchemaResolver
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
m_id
Unique identifier for this schema document.
|
private java.lang.String |
m_name
Schema name.
|
private java.net.URL |
m_url
Schema document URL.
|
| Constructor and Description |
|---|
UrlResolver(java.lang.String path,
java.net.URL url)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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.
|
java.net.URL |
getUrl()
Get the document URL.
|
int |
hashCode() |
ISchemaResolver |
resolve(java.lang.String loc,
java.lang.String tns)
Resolve a schema reference, which may be relative to this schema location.
|
private final java.net.URL m_url
private final java.lang.String m_name
private final java.lang.String m_id
public UrlResolver(java.lang.String path,
java.net.URL url)
path - url - public java.io.InputStream getContent()
throws java.io.IOException
ISchemaResolvergetContent in interface ISchemaResolverjava.io.IOException - on access errorpublic java.lang.String getName()
ISchemaResolvergetName in interface ISchemaResolverpublic java.lang.String getId()
ISchemaResolvergetId in interface ISchemaResolverpublic ISchemaResolver resolve(java.lang.String loc, java.lang.String tns) throws java.io.IOException
ISchemaResolverresolve in interface ISchemaResolverloc - target URL (null if none supplied)tns - target namespace URI (null if none supplied)java.io.IOException - on resolve errorpublic java.net.URL getUrl()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object