Package org.odftoolkit.odfdom.pkg

Examples of org.odftoolkit.odfdom.pkg.ValidationConstraint


    }
    registerProblem(exception, mExpectedFatalError);
  }

  private void registerProblem(SAXParseException exception, Map<ValidationConstraint, Integer> problemOccurances) {
    ValidationConstraint constraint = ((OdfValidationException) exception).getConstraint();
    Integer problemOccurance = problemOccurances.get(constraint);
    if (problemOccurance == null) {
      problemOccurance = 0;
    }
    LOG.log(Level.INFO, "EXPECTED VALIDATION MESSAGE:\"{0}\"", exception.getMessage());
View Full Code Here


  }

  private void validateProblem(Map<ValidationConstraint, Integer> expectedProblems, String level) {
    Iterator<ValidationConstraint> constraints = expectedProblems.keySet().iterator();
    while (constraints.hasNext()) {
      ValidationConstraint constraint = constraints.next();
      Integer problemOccurance = expectedProblems.get(constraint);
      if (problemOccurance > 0) {
        logMissingConstraint(constraint, level, problemOccurance);
      } else if (problemOccurance < 0) {
        logUnexpectedConstraint(constraint, level, problemOccurance * -1);
 
View Full Code Here

        boolean bRet = false;
        for (SAXParseException e : m_aExceptionList)
        {
            if (e instanceof OdfValidationException)
            {
                ValidationConstraint aConstraint =
                    ((OdfValidationException) e).getConstraint();
                if (aConstraint instanceof OdfPackageConstraint)
                {
                    switch (((OdfPackageConstraint) aConstraint))
                    {
View Full Code Here

TOP

Related Classes of org.odftoolkit.odfdom.pkg.ValidationConstraint

Copyright © 2018 www.massapicom. 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.