Package org.apache.woden.types

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


    // 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

     */
  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

    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

    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

    DescriptionElement descEl = factory.newDescription();
    Description descComp = descEl.toComponent();
        descEl.setTargetNamespace(URI.create("http://testnamespace"));
       
        InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name1"));
    InterfaceImpl interfac2 = (InterfaceImpl)descEl.addInterfaceElement();
    interfac2.setName(new NCName("name2"));
       
    interfac.addExtendedInterfaceName(interfac2.getName());
    interfac2.addExtendedInterfaceName(interfac.getName());
       
    // init Interface's ref to its Description, needed for interface extension.
View Full Code Here

        descEl.setTargetNamespace(URI.create("http://testnamespace"));
       
    // Create an interface, set it to extend to other interfaces and have
    // one of those interfaces extend a fourth interface.
    InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name1"));
       
    InterfaceElement interfac2 = descEl.addInterfaceElement();
    interfac2.setName(new NCName("name2"));

    interfac.addExtendedInterfaceName(interfac2.getName());
       
    InterfaceElement interfac3 = descEl.addInterfaceElement();
    interfac3.setName(new NCName("name3"));
       
    interfac.addExtendedInterfaceName(interfac3.getName());
       
    InterfaceElement interfac4 = descEl.addInterfaceElement();
    interfac4.setName(new NCName("name4"));
       
    interfac2.addExtendedInterfaceName(interfac4.getName());
         
    // init Interface's ref to its Description, needed for interface extension.
    descComp.getInterfaces();
View Full Code Here

      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
    }
    InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name1"));
   
    try {
      assertion.validate(descComp, wodenContext);
    } catch(WSDLException e) {
      fail("Assertion Interface1010 threw WSDLException.");
View Full Code Here

      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
    }
    InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(new NCName("name1"));
    InterfaceElement interfac2 = descEl.addInterfaceElement();
    interfac2.setName(new NCName("name2"));
    InterfaceElement interfac3 = descEl.addInterfaceElement();
    interfac3.setName(new NCName("name3"));
     
    try {
      assertion.validate(descComp, wodenContext);
    } catch(WSDLException e) {
      fail("Assertion Interface1010 threw WSDLException.");
View Full Code Here

      descEl.setTargetNamespace(new URI("http://testnamespace"));
    } catch(URISyntaxException e) {
      // Do nothing.
    }
   
    NCName name = new NCName("name");
    InterfaceElement interfac = descEl.addInterfaceElement();
    interfac.setName(name);
    InterfaceElement interfac2 = descEl.addInterfaceElement();
    interfac2.setName(name);
    // Need to create an extended interface otherwise the component model treats the
    // two interfaces as equal and only adds one to the set.
    InterfaceImpl interfac3 = (InterfaceImpl)descEl.addInterfaceElement();
    interfac3.setName(new NCName("name3"));
    interfac2.addExtendedInterfaceName(interfac3.getName());
     
    try {
      assertion.validate(descComp, wodenContext);
    } catch(WSDLException e) {
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.