Examples of validate()


Examples of org.erlide.ui.util.TypedElementSelectionValidator.validate()

            ISelectionStatusValidator myValidator = new TypedElementSelectionValidator(
                    acceptedClasses, false);

            @Override
            public IStatus validate(final Object[] selection) {
                final IStatus typedStatus = myValidator.validate(selection);
                if (!typedStatus.isOK()) {
                    return typedStatus;
                }
                if (selection[0] instanceof IFolder) {
                    // try {
View Full Code Here

Examples of org.etsi.uri.x01903.v13.QualifyingPropertiesType.validate()

        String qualPropXQuery = declareNS +
            "$this/ds:Signature/ds:Object/xades:QualifyingProperties";
        xoList = sigDoc.selectPath(qualPropXQuery);
        assertEquals(xoList.length, 1);
        QualifyingPropertiesType qualProp = (QualifyingPropertiesType)xoList[0];
        boolean qualPropXsdOk = qualProp.validate();
        assertTrue(qualPropXsdOk);

        pkg.close();
    }
View Full Code Here

Examples of org.eurekastreams.server.service.actions.strategies.activity.ActivityValidator.validate()

                && objectValidators.containsKey(currentActivity.getBaseObjectType().name()))
        {
            try
            {
                ActivityValidator currentVerbVal = verbValidators.get(currentActivity.getVerb().name());
                currentVerbVal.validate(currentActivity);

                ActivityValidator currentObjectVal = objectValidators.get(currentActivity.getBaseObjectType().name());
                currentObjectVal.validate(currentActivity);
            }
            catch (ValidationException vex)
View Full Code Here

Examples of org.exist.security.Permission.validate()

        expect(broker.getCollection(dest)).andReturn(destCollection);
        final Capture<XmldbURI> newDestURICapture = new Capture<XmldbURI>();
        expect(broker.getCollection(capture(newDestURICapture))).andReturn(newDestCollection);
        expect(destCollection.getPermissionsNoLock()).andReturn(destPermissions);
        expect(broker.getSubject()).andReturn(subject);
        expect(destPermissions.validate(subject, Permission.EXECUTE | Permission.WRITE)).andReturn(true);

        //no sub-documents
        expect(srcCollection.iterator(broker)).andReturn(new EmptyIterator<DocumentImpl>());

        //no sub-collections
View Full Code Here

Examples of org.exist.source.Source.validate()

                //check are we allowed to show the xquery source - descriptor.xml
//                System.out.println("path="+path);
                if(descriptor.allowSource(path)) {
                 
                  try {
            source.validate(user, Permission.READ);
          } catch (final PermissionDeniedException e) {
            if (getDefaultUser().equals(user)) {
              getAuthenticator().sendChallenge(request, response);
            } else {
              response.sendError(HttpServletResponse.SC_FORBIDDEN, "Permission to view XQuery source for: " + path + " denied. (no read access)");
View Full Code Here

Examples of org.exist.validation.Validator.validate()

            // Get inputstream
            // TODO DWES reconsider
            final InputStream is = new EmbeddedInputStream( new XmldbURL(docUri) );
           
            // Perform validation
            final ValidationReport report = validator.validate(is);
           
            // Return validation result
            isValid = report.isValid();
           
        } catch (final Throwable e) {
View Full Code Here

Examples of org.exist.xslt.expression.XSLPathExpr.validate()

      exec = getExpressionInstance(context);

      compileNode(context, exec, this);
    }
   
    exec.validate();//UNDERSTAND: at compile time??? analyze ???
   
    return exec;
  }
 
  private SimpleConstructor getNodeConstructor(ContextAtExist context, NodeAtExist node, XSLPathExpr content) throws XPathException {
View Full Code Here

Examples of org.exolab.castor.xml.FieldValidator.validate()

                        found = true;
                        fieldDesc = desc;

                        FieldValidator fieldValidator = desc.getValidator();
                        if (fieldValidator != null) {
                            fieldValidator.validate(object, context);
                        }
                    }
                }

                // if all elements are mandatory, print the grammar that the choice
View Full Code Here

Examples of org.exolab.castor.xml.TypeValidator.validate()

            if (_extends instanceof XMLClassDescriptorImpl) {
                ((XMLClassDescriptorImpl) _extends).validate(object, context);
            } else {
                TypeValidator baseValidator = _extends.getValidator();
                if (baseValidator != null) {
                    baseValidator.validate(object, context);
                }
            }

            //-- get local element descriptors by filtering out inherited ones
            XMLFieldDescriptor[] inheritedElements   = _extends.getElementDescriptors();
View Full Code Here

Examples of org.exolab.castor.xml.schema.Schema.validate()

        }

        Schema schema = schemaUnmarshaller.getSchema();
       
        try {
            schema.validate();
        } catch (ValidationException vx) {
            throw new NestedIOException(vx);
        }
       
        generateSource(schema, packageName);
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.