Esri Geoportal Server
1.2.9

com.esri.gpt.catalog.schema
Class SchematronValidator

java.lang.Object
  extended by com.esri.gpt.catalog.schema.SchematronValidator

public class SchematronValidator
extends Object

Validates a document against a Schematron XSLT.

The XSLT must produce an SVRL document (Schematron Validation Report Language).


Constructor Summary
SchematronValidator()
          Default constructor.
 
Method Summary
protected  ValidationErrors getValidationErrors()
          Gets the validation errors.
protected  void setValidationErrors(ValidationErrors errors)
          Sets the validation errors.
 void validate(Schema schema, String xml)
          Validates an XML string against a Schematron XSLT associated with a schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchematronValidator

public SchematronValidator()
Default constructor.

Method Detail

getValidationErrors

protected ValidationErrors getValidationErrors()
Gets the validation errors.

Returns:
the validation errors

setValidationErrors

protected void setValidationErrors(ValidationErrors errors)
Sets the validation errors.

Parameters:
errors - validation errors

validate

public void validate(Schema schema,
                     String xml)
              throws ValidationException
Validates an XML string against a Schematron XSLT associated with a schema.

Parameters:
schema - the schema being validated
xml - the XML string to be validated
Throws:
ValidationException - if validation errors were located

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.