Examples of NCName


Examples of org.apache.woden.types.NCName

   * true if interface is specified when a binding operation
   * or fault is specified, false otherwise.
   */
  public void testTestAssertionBinding1044()
  {
    NCName name1 = new NCName("name1");
    NCName name2 = new NCName("name2");
    WSDLFactory factory = null;
    try {
        factory = WSDLFactory.newInstance();
    } catch (WSDLException e) {
        fail("Can't instantiate the WSDLFactory object.");
View Full Code Here

Examples of org.apache.woden.types.NCName

      BindingElement binding = descEl.addBindingElement();
    binding.setName(name1);
      BindingElement binding2 = descEl.addBindingElement();
      binding2.setName(name2);
      BindingElement binding3 = descEl.addBindingElement();
    binding3.setName(new NCName("name1"));
   
    Binding[] bindings = descEl.toComponent().getBindings();
   
    if(val.testAssertionBinding1049(bindings, reporter))
    {
View Full Code Here

Examples of org.apache.woden.types.NCName

      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
      service.setName(name1);
      ServiceImpl service2 = (ServiceImpl)descEl.addServiceElement();
      service2.setName(name2);
      ServiceImpl service3 = (ServiceImpl)descEl.addServiceElement();
      service3.setName(new NCName("name1"));
   
    Service[] services = new Service[]{service, service2, service3};
   
    if(val.testAssertionService1060(services, reporter))
    {
View Full Code Here

Examples of org.apache.woden.types.NCName

  /*
   * Test that the (Mandatory) message label attribute ("messageLabel") can be successfully set and retrieved
   */
  public void testGetMessageLabel()
  {
    NCName faultRefNCName = new NCName("faultRefName");
    fFaultReferenceElement.setMessageLabel(faultRefNCName);
    assertEquals("The retrieved Fault Reference name is not that which was set",
        faultRefNCName, fFaultReferenceComp.getMessageLabel());
  }
View Full Code Here

Examples of org.apache.woden.types.NCName

        InterfaceElement interfaceElement = desc.addInterfaceElement();
    InterfaceOperationElement interfaceOperationElement = interfaceElement.addInterfaceOperationElement();

    // Add an InterfaceFault to the InterfaceElement
    InterfaceFaultElement faultElement = interfaceElement.addInterfaceFaultElement();
    faultElement.setName(new NCName("Fault1"));
   
    // create the InterfaceFaultReference to test
    InterfaceFaultReferenceElement faultReference = interfaceOperationElement.addInterfaceFaultReferenceElement();
    faultReference.setRef(new QName("Fault1"));
   
View Full Code Here

Examples of org.apache.woden.types.NCName

    DescriptionElement descriptionElement = factory.newDescription();

    // Create the BindingElement<->InterfaceElement->InterfaceFaultElement hierarchy
    BindingElement bindingElement = descriptionElement.addBindingElement();
    bindingElement.setInterfaceName(new QName("interface1"));
    bindingElement.setName(new NCName("binding1"));
   
    InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
    interfaceElement.setName(new NCName("interface1"));
   
    InterfaceFaultElement iffElement = interfaceElement.addInterfaceFaultElement();
    iffElement.setName(new NCName("fault1"));

    // Create the BindingOperationElement->BindingFaultReferenceElement hierarchy
    BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
    bopElement.setRef(new QName("operation1"));
    fFaultElement = bindingElement.addBindingFaultElement();
View Full Code Here

Examples of org.apache.woden.types.NCName

    // Create the BindingElement<->InterfaceElement->InterfaceOperationElement->InterfaceFaultReferenceElement hierarchy
    BindingElement bindingElement = descriptionElement.addBindingElement();
    bindingElement.setInterfaceName(new QName("interface1"));
   
    InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
    interfaceElement.setName(new NCName("interface1"));
    InterfaceFaultElement ife = interfaceElement.addInterfaceFaultElement();
    ife.setName(new NCName("Fault1Ref"));
   
    InterfaceOperationElement ifopElement = interfaceElement.addInterfaceOperationElement();
    ifopElement.setName(new NCName("operation1"));
    InterfaceFaultReferenceElement iffrElement = ifopElement.addInterfaceFaultReferenceElement();
    iffrElement.setMessageLabel(new NCName("Fault1MessageLabel"));
    iffrElement.setRef(new QName("Fault1Ref"));
       
    // Create the BindingOperationElement->BindingFaultReferenceElement hierarchy
    BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
    bopElement.setRef(new QName("operation1"));
    fFaultRefElement = bopElement.addBindingFaultReferenceElement();
    fFaultRefElement.setMessageLabel(new NCName("Fault1MessageLabel"));
    fFaultRefElement.setRef(new QName("Fault1Ref"));

    Description descComp = descriptionElement.toComponent();
    descComp.getBindings(); // this triggers setting the link to description in the binding
   
View Full Code Here

Examples of org.apache.woden.types.NCName

     */
  public void testGetInterfaceOperation()
  {   
    // Create and name an Interface Element 
    InterfaceElement interfaceElement = fDescriptionElement.addInterfaceElement();
    interfaceElement.setName(new NCName("interface1"));

    // Create a binding from the description
    fBindingElement = fDescriptionElement.addBindingElement();
    fBindingElement.setInterfaceName(new QName("interface1"));
   
    //Create and name an Interface Operation Element
    InterfaceOperationElement intOpElement = interfaceElement.addInterfaceOperationElement();
    intOpElement.setName(new NCName("interfaceOperation1"));
   
    fBindingOperationElement = fBindingElement.addBindingOperationElement();
    fBindingOperationElement.setRef(new QName("interfaceOperation1"));
   
    Description descComp = fDescriptionElement.toComponent();
View Full Code Here

Examples of org.apache.woden.types.NCName

    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
    descEl.setTargetNamespace(URI.create("http://testnamespace"));
   
    InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name"));
   
    // init Interface's ref to its Description, needed for interface extension.
    descComp.getInterfaces();
    try {
      assertion.validate(interfac, wodenContext);
View Full Code Here

Examples of org.apache.woden.types.NCName

    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
        descEl.setTargetNamespace(URI.create("http://testnamespace"));
     
        InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name1"));
   
      interfac.addExtendedInterfaceName(interfac.getName());
       
      // init Interface's ref to its Description, needed for interface extension.
      descComp.getInterfaces();
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.