Public Member Functions

org.exolab.castor.xml.schema.reader.SchemaLocation Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.reader.SchemaLocation:
org.exolab.castor.net.URILocation

List of all members.

Public Member Functions

 SchemaLocation (Schema schema, String href)
String getAbsoluteURI ()
String getBaseURI ()
Reader getReader () throws java.io.IOException
String getRelativeURI ()
Schema getSchema ()
String toString ()

Detailed Description

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.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:41

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.reader.SchemaLocation.SchemaLocation ( Schema  schema,
String  href 
)

Creates a new SchemaLocation

Parameters:
schema the Schema that represents the resource at identified by this URILocation
href the absolute URL for the resource identified by this URILocation.

Member Function Documentation

String org.exolab.castor.xml.schema.reader.SchemaLocation.getAbsoluteURI (  )  [virtual]

Returns the absolute URI for this URILocation

Returns:
the absolute URI for this URILocation
See also:
getRelativeURI
getBaseURI

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.

Returns:
the base location of this URILocation
See also:
getAbsoluteURI
getRelativeURI

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

Returns:
a Reader for the resource represented by this URILocation
Exceptions:
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

Returns:
the relative URI for this URILocation
See also:
getAbsoluteURI
getBaseURI

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.

Returns:
the Schema for this SchemaLocation, or null if no Schema object was set.
String org.exolab.castor.xml.schema.reader.SchemaLocation.toString (  ) 

Returns the String representation of this URILocation.

Returns:
the String representation of this URILocation

Reimplemented from org.exolab.castor.net.URILocation.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties