Class SchemaValidate.SchemaLocation
java.lang.Object
org.apache.tools.ant.taskdefs.optional.SchemaValidate.SchemaLocation
- Enclosing class:
- SchemaValidate
representation of a schema location. This is a URI plus either a file or
 a url
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanequality test checks namespace, location and filename.getFile()Get the file.Get the namespace.get the URL of the schemavalidate the fields then create a "uri location" stringgetUrl()The URL containing the schema.inthashCode()Generate a hashcode depending on the namespace, url and file name.voididentify a file that contains this namespace's schema.voidsetNamespace(String namespace) set the namespace of this schema.voididentify a URL that hosts the schema.toString()Returns a string representation of the object for error messages and the likevoidassert that a namespace is valid
- 
Field Details- 
ERROR_NO_URI
- 
ERROR_TWO_LOCATIONS
- 
ERROR_NO_FILE
- 
ERROR_NO_URL_REPRESENTATION
- 
ERROR_NO_LOCATION
 
- 
- 
Constructor Details- 
SchemaLocationpublic SchemaLocation()
 
- 
- 
Method Details- 
getNamespace
- 
setNamespaceset the namespace of this schema. Any URI- Parameters:
- namespace- the namespace to use.
 
- 
getFile
- 
setFileidentify a file that contains this namespace's schema. The file must exist.- Parameters:
- file- the file contains the schema.
 
- 
getUrl
- 
setUrlidentify a URL that hosts the schema.- Parameters:
- url- the URL string.
 
- 
getSchemaLocationURLget the URL of the schema- Returns:
- a URL to the schema
- Throws:
- BuildException- if not
 
- 
getURIandLocationvalidate the fields then create a "uri location" string- Returns:
- string of uri and location
- Throws:
- BuildException- if there is an error.
 
- 
validateNamespace
- 
equals
- 
hashCode
- 
toString
 
-