Package org.apache.tuscany.sca.interfacedef.wsdl

Examples of org.apache.tuscany.sca.interfacedef.wsdl.RequiresExt


        // process <sca:requires/> element
        for(Object object : portType.getExtensibilityElements()){
            ExtensibilityElement element = (ExtensibilityElement)object;
           
            if (element.getElementType().equals(POLICY_REQUIRES)){
                RequiresExt requires = ((RequiresExt)element);
               
                for (QName intentName : requires.getIntents()){
                    Intent intent = policyFactory.createIntent();
                    intent.setName(intentName);

                    wsdlInterface.getRequiredIntents().add(intent);
                }
View Full Code Here


                   PrintWriter writer,
                   Definition def,
                   ExtensionRegistry extReg)
      throws WSDLException {

    RequiresExt requires = (RequiresExt) theElement;
    QName theType = requires.getElementType();

    writer.println("<" + theType.toString() +
               " intents=\"");
   
    for(QName intentName : requires.getIntents()){
        writer.println(intentName + " ");
    }
           
    writer.println("\">");
  }
View Full Code Here

    // Check that this elementType really is a requires element
    if( !elementType.getLocalPart().equals("requires") ){
        return null;
    }
   
    RequiresExt requires = new RequiresExt();
    requires.setElementType(elementType);
   
    String intents = theElement.getAttribute("intents");
        String[] intentArray = intents.split(" +");
       
        for (int i=0; i < intentArray.length; i++){
            String intentNameString = intentArray[i];
            QName intentQName = getQNameValue( def, intentNameString);
            requires.getIntents().add(intentQName);
        }
       
    return requires;
  }
View Full Code Here

        // process <sca:requires/> element
        for(Object object : portType.getExtensibilityElements()){
            ExtensibilityElement element = (ExtensibilityElement)object;
           
            if (element.getElementType().equals(POLICY_REQUIRES)){
                RequiresExt requires = ((RequiresExt)element);
               
                for (QName intentName : requires.getIntents()){
                    Intent intent = policyFactory.createIntent();
                    intent.setName(intentName);

                    wsdlInterface.getRequiredIntents().add(intent);
                }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.interfacedef.wsdl.RequiresExt

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.