|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.net.URILocation
org.exolab.castor.xml.schema.reader.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.
Constructor Summary | |
---|---|
SchemaLocation(Schema schema,
java.lang.String href)
Creates a new SchemaLocation |
Method Summary | |
---|---|
java.lang.String |
getAbsoluteURI()
Returns the absolute URI for this URILocation |
java.lang.String |
getBaseURI()
Returns the base location of this URILocation. |
java.io.Reader |
getReader()
Returns a Reader for the resource represented by this URILocation. |
java.lang.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. |
java.lang.String |
toString()
Returns the String representation of this URILocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SchemaLocation(Schema schema, java.lang.String href)
schema
- the Schema that represents the resource at
identified by this URILocationhref
- the absolute URL for the resource identified by
this URILocation.Method Detail |
---|
public java.lang.String getAbsoluteURI()
getAbsoluteURI
in class URILocation
getRelativeURI
,
getBaseURI
public java.lang.String getBaseURI()
getBaseURI
in class URILocation
getAbsoluteURI
,
getRelativeURI
public java.io.Reader getReader() throws java.io.IOException
getReader
in class URILocation
java.io.FileNotFoundException
java.io.IOException
public java.lang.String getRelativeURI()
getRelativeURI
in class URILocation
getAbsoluteURI
,
getBaseURI
public Schema getSchema()
public java.lang.String toString()
toString
in class URILocation
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |