org.apache.tools.ant.taskdefs.optional
public static class SchemaValidate.SchemaLocation extends Object
| Field Summary | |
|---|---|
| static String | ERROR_NO_FILE File not found |
| static String | ERROR_NO_LOCATION No location provided |
| static String | ERROR_NO_URI No namespace URI |
| static String | ERROR_NO_URL_REPRESENTATION Cannot make URL |
| static String | ERROR_TWO_LOCATIONS Both URL and File were given for schema |
| Constructor Summary | |
|---|---|
| SchemaLocation() No arg constructor | |
| Method Summary | |
|---|---|
| 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 | getUrl()
The URL containing the schema. |
| String | getURIandLocation()
validate the fields then create a "uri location" string
|
| 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 |
Parameters: o object to compare against
Returns: true iff the objects are considered equal in value
Returns: the file containing the schema.
Returns: the namespace.
Returns: a URL to the schema
Throws: BuildException if not
Returns: the URL string.
Returns: string of uri and location
Throws: BuildException if there is an error.
Returns: the hashcode.
Parameters: file the file contains the schema.
Parameters: namespace the namespace to use.
Parameters: url the URL string.
Returns: a string representation of the object.
Throws: BuildException if not