Package org.apache.woden.types

Examples of org.apache.woden.types.NCName


     * Mandatory attribute ("name")
     * - getName()
     */
  public void testGetName()
  { 
    fBindingElement.setName(new NCName("BindingName"));
    QName uri = fBinding.getName();
    assertNotNull(uri);
    assertEquals("Retrieved Binding name does not match that set -", "BindingName", uri.toString());
  }
View Full Code Here


  /*
   * Test that the (Mandatory) message label attribute ("messageLabel") can be successfully set and retrieved
   */
  public void testSetGetMessageLabel()
  {
    NCName messageRefNCName = new NCName("messageRefName");
    fMessageReferenceElement.setMessageLabel(messageRefNCName);
    assertEquals("The retrieved messageLabel is not that which was set",
        messageRefNCName, fMessageReferenceElement.getMessageLabel());
  }
View Full Code Here

            fail("Can't instantiate the WSDLFactory object.");
        }
        fDescriptionElement = factory.newDescription();
        fDescriptionElement.setTargetNamespace(URI.create(TNS));
        fInterfaceElement = fDescriptionElement.addInterfaceElement();
        fInterfaceElement.setName(new NCName(INTF_NAME));
        fFaultElement = fInterfaceElement.addInterfaceFaultElement();
        fFaultElement.setName(new NCName(FAULT_NAME));
        fFaultElement.setElement(new QNameTokenUnion(new QName(FAULT_NAME)));
    fDescription = fDescriptionElement.toComponent();
    Interface iface = fDescription.getInterface(new QName(TNS,INTF_NAME));
    fFault = iface.getInterfaceFault(new QName(TNS,FAULT_NAME));
    }
View Full Code Here

  /*
   * Test that an (optional) ElementDecalaration can be successfully retrieved
   */
  public void testGetElementDeclaration() throws Exception
  {
        fFaultElement.setName(new NCName(FAULT_NAME));
        fDescription = fDescriptionElement.toComponent();
        Interface iface = fDescription.getInterface(new QName(TNS,INTF_NAME));
        InterfaceFault fault = iface.getInterfaceFault(new QName(TNS,FAULT_NAME));
        assertNotNull(fault);
       
View Full Code Here

        }
       
        super.setUp();
        fDescriptionElement = factory.newDescription();
        fInterfaceElement = fDescriptionElement.addInterfaceElement();
        fInterfaceElement.setName(new NCName(INTF_NAME));
        fInterfaceOperationElement = fInterfaceElement.addInterfaceOperationElement();
        fInterfaceOperationElement.setName(new NCName(INTOP_NAME));

        fPattern = new URI("http://www.w3.org/0000/00/wsdl/in-out");      
        fInterfaceOperationElement.setPattern(fPattern);
       
        fDescription = fDescriptionElement.toComponent();
View Full Code Here

        }
       
        fDescriptionElement = factory.newDescription();
        fDescriptionElement.setTargetNamespace(URI.create(TNS));
        fInterfaceElement = fDescriptionElement.addInterfaceElement();
        fInterfaceElement.setName(new NCName(INTF_NAME));
        fFaultElement = fInterfaceElement.addInterfaceFaultElement();
    }
View Full Code Here

   * Test that a (Mandatory) Name QName can be successfully set and retrieved
   */
  public void testSetGetName()
  {
    QName faultName = new QName(TNS, FAULT_NAME);
    NCName faultNCName = new NCName(FAULT_NAME);
    fFaultElement.setName(faultNCName);
    assertEquals("The retrieved fault name is not that which was set",
        faultName, fFaultElement.getName());
  }
View Full Code Here

            fail("Can't instantiate the WSDLFactory object.");
        }
       
        DescriptionElement de = factory.newDescription();
        InterfaceElement ie = de.addInterfaceElement();
        ie.setName(new NCName("foo"));
        String namespace = ie.getName().getNamespaceURI();
        assertTrue("namespace value should be \"\" but is " + namespace, namespace.equals(""));
    }
View Full Code Here

        } else {
            throw new DeploymentException("If service is not set, the WSDL must contain a single service definition");
        }
        Endpoint endpoint;
        if (getEndpoint() != null) {
            endpoint = svc.getEndpoint(new NCName(getEndpoint()));
            if (endpoint == null) {
                throw new DeploymentException("Cound not find endpoint '" + getEndpoint() + "' in wsdl for service '" + getService() + "'");
            }
        } else if (svc.getEndpoints().length == 1) {
            endpoint = svc.getEndpoints()[0];
View Full Code Here

                if (service == null) {
                    LOGGER.info("Endpoint {} has a service description, but no matching service found in {}",
                                    serviceEndpoint, desc.getServices());
                    return;
                }
                Endpoint endpoint = service.getEndpoint(new NCName(serviceEndpoint.getEndpointName()));
                if (endpoint == null) {
                    LOGGER.info("Endpoint {} has a service description, but no matching endpoint found in {}",
                                    serviceEndpoint, service.getEndpoints());
                    return;
                }
View Full Code Here

TOP

Related Classes of org.apache.woden.types.NCName

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.