org.exolab.castor.xml.schema.reader
Class SchemaLocation
public final class SchemaLocation
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.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:41 $
String | getAbsoluteURI() - Returns the absolute URI for this URILocation
|
String | getBaseURI() - Returns the base location of this URILocation.
|
Reader | getReader() - Returns a Reader for the resource represented
by this URILocation.
|
String | getRelativeURI() - Returns the relative URI for this URILocation
|
Schema | getSchema() - Returns the Schema for this SchemaLocation, or null if
this SchemaLocation was not constructed with a Schema object.
|
String | toString() - Returns the String representation of
this URILocation.
|
SchemaLocation
public SchemaLocation(Schema schema,
String href)
Creates a new SchemaLocation
schema
- the Schema that represents the resource at
identified by this URILocationhref
- the absolute URL for the resource identified by
this URILocation.
getAbsoluteURI
public String getAbsoluteURI()
Returns the absolute URI for this URILocation
- getAbsoluteURI in interface URILocation
- the absolute URI for this URILocation
getRelativeURI
, getBaseURI
getBaseURI
public String getBaseURI()
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.
- getBaseURI in interface URILocation
- the base location of this URILocation
getAbsoluteURI
, getRelativeURI
getReader
public Reader getReader()
throws java.io.IOException
Returns a Reader for the resource represented
by this URILocation.
Note: This method always returns null for this
URILocation
- getReader in interface URILocation
- a Reader for the resource represented by
this URILocation
getRelativeURI
public String getRelativeURI()
Returns the relative URI for this URILocation
- getRelativeURI in interface URILocation
- the relative URI for this URILocation
getAbsoluteURI
, getBaseURI
getSchema
public Schema getSchema()
Returns the Schema for this SchemaLocation, or null if
this SchemaLocation was not constructed with a Schema object.
- the Schema for this SchemaLocation, or null if
no Schema object was set.
toString
public String toString()
Returns the String representation of
this URILocation.
- toString in interface URILocation
- the String representation of this URILocation
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com