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