Package org.apache.padaf.preflight.annotation

Examples of org.apache.padaf.preflight.annotation.AnnotationValidator


    // ---- The widget validation will be done by the widget annotation, a
    // widget contained in a Field can't have action.
    PDAnnotationWidget widget = aField.getWidget();
    if (res && widget != null) {
      AnnotationValidator widgetVal = annotFact.getAnnotationValidator( widget.getDictionary(), handler, error);
      widgetVal.validate(error);

      COSBase act = widget.getDictionary().getDictionaryObject(DICTIONARY_KEY_ACTION);
      if (act != null) {
        error.add(new ValidationError(
            ERROR_ACTION_FORBIDDEN_WIDGET_ACTION_FIELD, "\"A\" must not be used in a Field dictionary"));
View Full Code Here


      List<?> lAnnots = page.getAnnotations();
      for (Object object : lAnnots) {
        if (object instanceof PDAnnotation) {

          COSDictionary cosAnnot = ((PDAnnotation) object).getDictionary();
          AnnotationValidator validator = this.annotFact.getAnnotationValidator(cosAnnot, handler, result);
          if (validator != null) {
            return validator.validate(result);
          }

        }
      }
View Full Code Here

TOP

Related Classes of org.apache.padaf.preflight.annotation.AnnotationValidator

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.