Public Member Functions | |
SchemaLocation (Schema schema, String href) | |
String | getAbsoluteURI () |
String | getBaseURI () |
Reader | getReader () throws java.io.IOException |
String | getRelativeURI () |
Schema | getSchema () |
String | toString () |
An implementation of URILocation for applications that need to resolve an XML Schema in a non-standard way, such as a Schema embedded in another XML document, or a Schema created in-memory, etc.
org.exolab.castor.xml.schema.reader.SchemaLocation.SchemaLocation | ( | Schema | schema, | |
String | href | |||
) |
Creates a new SchemaLocation
schema | the Schema that represents the resource at identified by this URILocation | |
href | the absolute URL for the resource identified by this URILocation. |
String org.exolab.castor.xml.schema.reader.SchemaLocation.getAbsoluteURI | ( | ) | [virtual] |
Returns the absolute URI for this URILocation
Implements org.exolab.castor.net.URILocation.
String org.exolab.castor.xml.schema.reader.SchemaLocation.getBaseURI | ( | ) | [virtual] |
Returns the base location of this URILocation. If this URILocation is an URL, the base location will be equivalent to the document base for the URL.
Implements org.exolab.castor.net.URILocation.
Referenced by org.exolab.castor.xml.schema.reader.SchemaLocation.getRelativeURI().
Reader org.exolab.castor.xml.schema.reader.SchemaLocation.getReader | ( | ) | throws java.io.IOException [virtual] |
Returns a Reader for the resource represented by this URILocation.
Note: This method always returns null for this URILocation
java.io.FileNotFoundException | ||
java.io.IOException |
Implements org.exolab.castor.net.URILocation.
String org.exolab.castor.xml.schema.reader.SchemaLocation.getRelativeURI | ( | ) | [virtual] |
Returns the relative URI for this URILocation
Implements org.exolab.castor.net.URILocation.
References org.exolab.castor.xml.schema.reader.SchemaLocation.getBaseURI().
Schema org.exolab.castor.xml.schema.reader.SchemaLocation.getSchema | ( | ) |
Returns the Schema for this SchemaLocation, or null if this SchemaLocation was not constructed with a Schema object.
String org.exolab.castor.xml.schema.reader.SchemaLocation.toString | ( | ) |
Returns the String representation of this URILocation.
Reimplemented from org.exolab.castor.net.URILocation.