Class SchemaLocation
java.lang.Object
org.exolab.castor.net.URILocation
org.exolab.castor.xml.schema.reader.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.
- Version:
- $Revision: 6230 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Keith Visco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute URI for this URILocationReturns the base location of this URILocation.Returns a Reader for the resource represented by this URILocation.Returns the relative URI for this URILocationReturns the Schema for this SchemaLocation, or null if this SchemaLocation was not constructed with a Schema object.toString()
Returns the String representation of this URILocation.
-
Constructor Details
-
SchemaLocation
Creates a new SchemaLocation- Parameters:
schema
- the Schema that represents the resource at identified by this URILocationhref
- the absolute URL for the resource identified by this URILocation.
-
-
Method Details
-
getAbsoluteURI
Returns the absolute URI for this URILocation- Specified by:
getAbsoluteURI
in classURILocation
- Returns:
- the absolute URI for this URILocation
- See Also:
-
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.- Specified by:
getBaseURI
in classURILocation
- Returns:
- the base location of this URILocation
- See Also:
-
getReader
Returns a Reader for the resource represented by this URILocation. Note: This method always returns null for this URILocation- Specified by:
getReader
in classURILocation
- Returns:
- a Reader for the resource represented by this URILocation
- Throws:
FileNotFoundException
IOException
-
getRelativeURI
Returns the relative URI for this URILocation- Specified by:
getRelativeURI
in classURILocation
- Returns:
- the relative URI for this URILocation
- See Also:
-
getSchema
Returns the Schema for this SchemaLocation, or null if this SchemaLocation was not constructed with a Schema object.- Returns:
- the Schema for this SchemaLocation, or null if no Schema object was set.
-
toString
Returns the String representation of this URILocation.- Overrides:
toString
in classURILocation
- Returns:
- the String representation of this URILocation
-