Package org.apache.uima.simpleserver.config.xml.UimaSimpleServerSpecDocument

Examples of org.apache.uima.simpleserver.config.xml.UimaSimpleServerSpecDocument.UimaSimpleServerSpec.validate()


    // Do validation. If XML is not valid, throw first error.
    ArrayList<XmlError> validationErrors = new ArrayList<XmlError>();
    XmlOptions validationOptions = new XmlOptions();
    validationOptions.setErrorListener(validationErrors);
    boolean isValid = specBean.validate(validationOptions);
    if (!isValid) {
      Iterator<XmlError> iter = validationErrors.iterator();
      if (iter.hasNext()) {
        throw new XmlException(iter.next());
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.