Examples of validate()


Examples of com.sun.jdo.api.persistence.mapping.ejb.beans.SunCmpMappings.validate()

                }
            }
        }

        try {
            sunCmpMapping.validate();
        } catch (ValidateException ex) {
            throw JDOCodeGeneratorHelper.createGeneratorException(
                    "CMG.InvalidSunCmpMappingsFile", bundle, ex); // NOI18N
        }
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator.validate()

                    return result;
                }else{
                    try{
                        JDOCodeGenerator jdc= getVerifierContext().getJDOCodeGenerator();
                        col = jdc.validate((IASEjbCMPEntityDescriptor)descriptor);
                    }catch(Exception ex){
                        result.addErrorDetails(smh.getLocalString
                                ("tests.componentNameConstructor",
                                        "For [ {0} ]",
                                        new Object[] {compName.toString()}));
View Full Code Here

Examples of com.sun.jersey.api.core.ClasspathResourceConfig.validate()

        final ClassLoader cl = Thread.currentThread().getContextClassLoader();
        final ClassLoader ncl = new Loader(classpath.list(), this.getClass().getClassLoader());
        Thread.currentThread().setContextClassLoader(ncl);
        try {
            ResourceConfig rc = new ClasspathResourceConfig(classpath.list());
            rc.validate();
            Set<AbstractResource> s = new HashSet<AbstractResource>();
            for (Class c : rc.getRootResourceClasses()) {
                s.add(IntrospectionModeller.createResource(c));
            }
           
View Full Code Here

Examples of com.sun.jersey.api.core.ResourceConfig.validate()

        final ClassLoader cl = Thread.currentThread().getContextClassLoader();
        final ClassLoader ncl = new Loader(classpath.list(), this.getClass().getClassLoader());
        Thread.currentThread().setContextClassLoader(ncl);
        try {
            ResourceConfig rc = new ClasspathResourceConfig(classpath.list());
            rc.validate();
            Set<AbstractResource> s = new HashSet<AbstractResource>();
            for (Class c : rc.getRootResourceClasses()) {
                s.add(IntrospectionModeller.createResource(c));
            }
           
View Full Code Here

Examples of com.sun.jersey.server.impl.modelapi.validation.BasicValidator.validate()

    private ResourceUriRules newResourceUriRules(final AbstractResource ar) {
        assert null != ar;

        BasicValidator validator = new BasicValidator();
        validator.validate(ar);
        for (ResourceModelIssue issue : validator.getIssueList()) {
            Errors.error(issue.getMessage(), issue.isFatal());
        }
        return new ResourceUriRules(
                resourceConfig,
View Full Code Here

Examples of com.sun.messaging.jmq.jmsclient.validation.XMLValidator.validate()

              Debug.println("*** Validating xml message ....");
            }
           
            XMLValidator validator = (XMLValidator) this.xmlValidationTable.get(dest);
            String xml = ((TextMessage) message).getText();
            validator.validate(xml);
           
            if (debug) {
              Debug.println("*** xml message validated against xsd at URI: " + validator.getURIList());
            }
          }
View Full Code Here

Examples of com.sun.org.apache.xerces.internal.impl.dtd.models.ContentModelValidator.validate()

        else if (contentType == XMLElementDecl.TYPE_MIXED || 
                 contentType == XMLElementDecl.TYPE_CHILDREN) {
            // Get the content model for this element, faulting it in if needed
            ContentModelValidator cmElem = null;
            cmElem = fTempElementDecl.contentModelValidator;
            int result = cmElem.validate(children, childOffset, childCount);
            return result;
        }
        else if (contentType == -1) {
            //REVISIT
            /****
 
View Full Code Here

Examples of com.sun.org.apache.xerces.internal.impl.dv.XSSimpleType.validate()

                if (oneAttr.dvIndex >= 0) {
                    if (oneAttr.dvIndex != DT_STRING &&
                        oneAttr.dvIndex != DT_XPATH &&
                        oneAttr.dvIndex != DT_XPATH1) {
                        XSSimpleType dv = fExtraDVs[oneAttr.dvIndex];
                        Object avalue = dv.validate(attrVal, schemaDoc.fValidationContext, null);
                        // kludge to handle chameleon includes/redefines...
                        if (oneAttr.dvIndex == DT_QNAME) {
                            QName qname = (QName)avalue;
                            if(qname.prefix == XMLSymbols.EMPTY_STRING && qname.uri == null && schemaDoc.fIsChameleonSchema)
                                qname.uri = schemaDoc.fTargetNamespace;
View Full Code Here

Examples of com.sun.xml.ws.api.FeatureListValidator.validate()

        FeatureListValidatorAnnotation fva = feature.getClass().getAnnotation(FeatureListValidatorAnnotation.class);
        if (fva != null) {
            Class<? extends FeatureListValidator> beanClass = fva.bean();
            try {
                FeatureListValidator validator = beanClass.newInstance();
                validator.validate(this);
            } catch (InstantiationException e) {
                throw new WebServiceException(e);
            } catch (IllegalAccessException e) {
                throw new WebServiceException(e);
            }
View Full Code Here

Examples of com.sun.xml.ws.security.opt.impl.incoming.SAMLAssertion.validate()

                        SAMLAssertion samlAssertion = new SAMLAssertion(message,context,null,(HashMap) currentParentNS);
                        context.getSecurityContext().getProcessedSecurityHeaders().add(samlAssertion);
                        if(samlAssertion.isHOK()){
                            samlAssertion.validateSignature();
                        }
                        samlAssertion.validate(context);
                        samlAssertion.getKey();
                        // Set in the extraneous property only if not already set
                        // workaround in the case where there are two HOK assertions in the request
                        if(context.getExtraneousProperty(MessageConstants.INCOMING_SAML_ASSERTION) == null && samlAssertion.isHOK() ){
                            context.getExtraneousProperties().put(MessageConstants.INCOMING_SAML_ASSERTION,samlAssertion);
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.