public static class SchemaValidate.SchemaLocation
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | ERROR_NO_FILEFile not found | 
| static java.lang.String | ERROR_NO_LOCATIONNo location provided | 
| static java.lang.String | ERROR_NO_URINo namespace URI | 
| static java.lang.String | ERROR_NO_URL_REPRESENTATIONCannot make URL | 
| static java.lang.String | ERROR_TWO_LOCATIONSBoth URL and File were given for schema | 
| Constructor and Description | 
|---|
| SchemaValidate.SchemaLocation()No arg constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object o)equality test checks namespace, location and filename. | 
| java.io.File | getFile()Get the file. | 
| java.lang.String | getNamespace()Get the namespace. | 
| java.lang.String | getSchemaLocationURL()get the URL of the schema | 
| java.lang.String | getURIandLocation()validate the fields then create a "uri location" string | 
| java.lang.String | getUrl()The URL containing the schema. | 
| int | hashCode()Generate a hashcode depending on the namespace, url and file name. | 
| void | setFile(java.io.File file)identify a file that contains this namespace's schema. | 
| void | setNamespace(java.lang.String namespace)set the namespace of this schema. | 
| void | setUrl(java.lang.String url)identify a URL that hosts the schema. | 
| java.lang.String | toString()Returns a string representation of the object for error messages
 and the like | 
| void | validateNamespace()assert that a namespace is valid | 
public static final java.lang.String ERROR_NO_URI
public static final java.lang.String ERROR_TWO_LOCATIONS
public static final java.lang.String ERROR_NO_FILE
public static final java.lang.String ERROR_NO_URL_REPRESENTATION
public static final java.lang.String ERROR_NO_LOCATION
public SchemaValidate.SchemaLocation()
public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace - the namespace to use.public java.io.File getFile()
public void setFile(java.io.File file)
file - the file contains the schema.public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url - the URL string.public java.lang.String getSchemaLocationURL()
BuildException - if notpublic java.lang.String getURIandLocation()
                                   throws BuildException
BuildException - if there is an error.public void validateNamespace()
BuildException - if notpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - object to compare againstpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object