Package fr.imag.adele.apam.apform.impl

Examples of fr.imag.adele.apam.apform.impl.ApamComponentFactory$Description


     */
    public InterfaceElement getExtendedInterfaceElement(QName interfaceName)
    {
        //Cast the containing description element to a description component to re-use its
        //logic for navigating a composite wsdl to retrieve the in-scope top-level components.
        Description desc = (Description)fParentElem;
        InterfaceElement intface = (InterfaceElement)desc.getInterface(interfaceName);
        return intface;
    }
View Full Code Here


    private Description readWSDL(String wsdlURL, Element docEl)
        throws WSDLException {
       
      XMLElement descEl = createXMLElement(docEl);
        DescriptionElement descElem = parseDescription(wsdlURL, descEl, null);
        Description descComp = descElem.toComponent();
                 
        //TODO if schema errors, don't do any further validation (i.e. assertions assume WSDL is schema valid)
       
        // Validate the model if validation is enabled.
        if(features.getValue(WSDLReader.FEATURE_VALIDATION))
View Full Code Here

     */
    public InterfaceElement getInterfaceElement()
    {
        //Cast the containing description element to a description component to re-use its
        //logic for navigating a composite wsdl to retrieve the in-scope top-level components.
        Description desc = (Description)fParentElem;
        InterfaceElement interfac = (InterfaceElement)desc.getInterface(fInterfaceName);
        return interfac;
    }
View Full Code Here

        //assertNotNull("Failed to find the Base URL document on the classpath using the path: " + fResources + ".",
        //        wsdlURL);
        //System.setProperty(fCatalogBaseProperty, rootURL.toString());
    reader.setURIResolver(new SimpleURIResolver());
   
    Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
       
        fBindings = descComp.getBindings();
        fInterfaces = descComp.getInterfaces();
       
        DescriptionElement descElem = descComp.toElement();
        TypesElement types = descElem.getTypesElement()
    fSchemas = types.getSchemas();
    fImportedSchemas = types.getImportedSchemas();
    fInlinedSchemas = types.getInlinedSchemas();
       
View Full Code Here

    // set the resolver explicitly, using the root as a base URL
    // (SimpleURIResolver() default constructor is the default behaviour)

    reader.setURIResolver(new SimpleURIResolver());
   
        Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
       
        fBindings = descComp.getBindings();
        fInterfaces = descComp.getInterfaces();
       
        DescriptionElement descElem = descComp.toElement();
        TypesElement types = descElem.getTypesElement()
    fSchemas = types.getSchemas();
    fImportedSchemas = types.getImportedSchemas();
    fInlinedSchemas = types.getInlinedSchemas();
       
View Full Code Here

       
        URL wsdlURL = getClass().getClassLoader().getResource(fWsdlPath);
        assertNotNull("Failed to find the WSDL document on the classpath using the path: " + fWsdlPath + ".",
                wsdlURL);
       
        Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
       
        fBindings = descComp.getBindings();
        assertEquals("The Description should contain 3 Binding components.", 3, fBindings.length);
       
    }
View Full Code Here

       
        URL wsdlURL = getClass().getClassLoader().getResource(fWsdlPath);
        assertNotNull("Failed to find the WSDL document on the classpath using the path: " + fWsdlPath + ".",
                wsdlURL);
       
        Description descComp = reader.readWSDL(wsdlURL.toString());
        assertNotNull("The reader did not return a WSDL description.", descComp);
       
        Service service = descComp.getServices()[0];
        assertNotNull("The Description should contain 1 Service component.",
                service);
       
        fEndpoints = service.getEndpoints();
        assertEquals("The Service contained unexpected number of Endpoint components.", 3, fEndpoints.length);
View Full Code Here

    /**
     * Test for the test-suite/documents/bad/Chameleon-1B W3C test.
     */
    public void testChameleon1BFromOM(){
      try{
          Description desc = omWSDLReader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Chameleon-1B/getBalance.wsdl");
        assertNotNull("Description is null.", desc);
          // TODO: determine the assertions that should fail for this test.
      }
      catch(Exception e){
        fail("Unable to read WSDL document because of " + e);
View Full Code Here

    /**
     * Test for the test-suite/documents/bad/Chameleon-2B W3C test.
     */
    public void testChameleon2BFromOM(){
      try{
        Description desc = omWSDLReader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Chameleon-2B/getBalance.wsdl");
        assertNotNull("Description is null.", desc);
        // TODO: determine the assertions that should fail for this test.
      }
      catch(Exception e){
        fail("Unable to read WSDL document because of " + e);
View Full Code Here

    /**
     * Test for the test-suite/documents/bad/Import-1B W3C test.
     */
    public void testImport1BFromOM(){
      try{
        Description desc = omWSDLReader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-1B/XSDImport.wsdl");
        assertNotNull("Description is null.", desc);
        // TODO: determine the assertions that should fail for this test.
      }
      catch(Exception e){
        fail("Unable to read WSDL document because of " + e);
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.apform.impl.ApamComponentFactory$Description

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.