|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.catalog.schema.XsdValidator
public class XsdValidator
Validates a document against an XML Schema Definition file.
| Constructor Summary | |
|---|---|
XsdValidator()
Default constructor. |
|
| Method Summary | |
|---|---|
static void |
cacheXsdReference(Schema schema)
Caches a reference to an XSD for a schema. |
void |
error(SAXParseException e)
Triggered when a SAX error occurs during XSD validation. |
void |
fatalError(SAXParseException e)
Triggered when a SAX fatal error occurs during XSD validation. |
protected ValidationErrors |
getValidationErrors()
Gets the validation errors. |
protected void |
setValidationErrors(ValidationErrors errors)
Sets the validation errors. |
void |
validate(Schema schema,
Source source)
Validates a document source against the XML Schema Definition file associated with a schema. |
void |
validate(Schema schema,
String xml)
Validates an XML string against the XML Schema Definition file associated with a schema. |
void |
warning(SAXParseException e)
Triggered when a SAX warning occurs during XSD validation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XsdValidator()
| Method Detail |
|---|
protected ValidationErrors getValidationErrors()
protected void setValidationErrors(ValidationErrors errors)
errors - validation errorspublic static void cacheXsdReference(Schema schema)
schema - the subject schema
public void fatalError(SAXParseException e)
throws SAXException
fatalError in interface ErrorHandlere - the associated SAX exception
SAXException - the supplied SAXParseException is thrown to end the process
public void error(SAXParseException e)
throws SAXException
error in interface ErrorHandlere - the associated SAX exception
SAXException - part of the implemented method signature but never thrown
public void validate(Schema schema,
Source source)
throws ValidationException
schema - the schema being validatedsource - the source for the document being validated
ValidationException - if validation errors were located
public void validate(Schema schema,
String xml)
throws ValidationException
schema - the schema being validatedxml - the XML string to be validated
ValidationException - if validation errors were located
public void warning(SAXParseException e)
throws SAXException
warning in interface ErrorHandlere - the associated SAX exception
SAXException - part of the implemented method signature but never thrown
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||