Examples of AnnotationValidator


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

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

      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

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

        {
            COSDictionary annotDict = (COSDictionary) vPath.peek();

            PreflightConfiguration config = context.getConfig();
            AnnotationValidatorFactory factory = config.getAnnotFact();
            AnnotationValidator annotValidator = factory.getAnnotationValidator(context, annotDict);
            if (annotValidator != null)
            {
                annotValidator.validate();
            }
        }
    }
View Full Code Here

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

        COSDictionary annotDict = (COSDictionary) vPath.peek();

        PreflightConfiguration config = context.getConfig();
        AnnotationValidatorFactory factory = config.getAnnotFact();
        AnnotationValidator annotValidator = factory.getAnnotationValidator(context, annotDict);
        if (annotValidator != null)
        {
            annotValidator.validate();
        }
    }
View Full Code Here

Examples of org.openfaces.validation.validators.AnnotationValidator

        for (Object child : children) {
            if (child instanceof EditableValueHolder) {
                EditableValueHolder evh = (EditableValueHolder) child;
                if (evh.getValidators().length == 0) {

                    evh.addValidator(new AnnotationValidator());
                    if (isValueRequired(context, child)) {
                        evh.setRequired(true);
                        if (child instanceof UIInput) {
                            ((UIInput) child)
                                    .setRequiredMessage("Value is required for component with id "
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.