Package org.apache.woden.xml

Examples of org.apache.woden.xml.XMLAttr


    }

    private static String extractLocation(BindingOperation bOperation) {
        String location = null;
        if (bOperation != null) {
            XMLAttr attr = bOperation.toElement().getExtensionAttribute(HTTPConstants.Q_ATTR_LOCATION);
            if (attr != null) {
                location = attr.toExternalForm();
            }
        }
        return location;
    }
View Full Code Here


        message.setName(elementQName != null ? elementQName.getLocalPart() : axisOperation.getName().getLocalPart());
        axisOperation.addMessage(message, messageLabel);

       
        if(WSDLConstants.MESSAGE_LABEL_IN_VALUE.equals(messageLabel)){
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              ArrayList al = axisOperation.getWSAMappingList();
              if(al == null){
                al = new ArrayList();
                axisOperation.setWsamappingList(al);
              }
              al.add(value);
            }
          }
        }else{
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              axisOperation.setOutputAction(value);
            }
          }
        }
View Full Code Here

  public XMLAttr createExtAttribute(Class ownerClass, QName attrQName, XMLElement ownerElement, String attrValue)
                                          throws WSDLException
  {
      Map innerExtensionAttributeReg = (Map)extAttributeReg.get(ownerClass);
      Class implClass = null;
      XMLAttr attr = null;
     
      if (innerExtensionAttributeReg != null)
      {
          implClass = (Class)innerExtensionAttributeReg.get(attrQName);
      }
View Full Code Here

                {
                    //TODO reg namespaces at appropriate element scope, not just at desc.
                    //DOMUtils.registerUniquePrefix(prefix, namespaceURI, desc);
                   
                    ExtensionRegistry extReg = fWsdlContext.extensionRegistry;
                    XMLAttr xmlAttr = extReg.createExtAttribute(wsdlClass, attrType, extEl, attrValue);
                    if(xmlAttr != null) //TODO use an 'UnknownAttr' class in place of null
                    {
                        wsdlObj.setExtensionAttribute(attrType, xmlAttr);
                    }
                }
View Full Code Here

        message.setName(elementQName != null ? elementQName.getLocalPart() : axisOperation.getName().getLocalPart());
        axisOperation.addMessage(message, messageLabel);

       
        if(WSDLConstants.MESSAGE_LABEL_IN_VALUE.equals(messageLabel)){
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              ArrayList al = axisOperation.getWSAMappingList();
              if(al == null){
                al = new ArrayList();
                axisOperation.setWsamappingList(al);
              }
              al.add(value);
            }
          }
        }else{
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              axisOperation.setOutputAction(value);
            }
          }
        }
View Full Code Here

        message.setName(elementQName != null ? elementQName.getLocalPart() : axisOperation.getName().getLocalPart());
        axisOperation.addMessage(message, messageLabel);

       
        if(WSDLConstants.MESSAGE_LABEL_IN_VALUE.equals(messageLabel)){
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              ArrayList al = axisOperation.getWSAMappingList();
              if(al == null){
                al = new ArrayList();
                axisOperation.setWsamappingList(al);
              }
              al.add(value);
            }
          }
        }else{
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              axisOperation.setOutputAction(value);
            }
          }
        }
View Full Code Here

        message.setName(elementQName != null ? elementQName.getLocalPart() : axisOperation.getName().getLocalPart());
        axisOperation.addMessage(message, messageLabel);

       
        if(WSDLConstants.MESSAGE_LABEL_IN_VALUE.equals(messageLabel)){
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              ArrayList al = axisOperation.getWSAMappingList();
              if(al == null){
                al = new ArrayList();
                axisOperation.setWsamappingList(al);
              }
              al.add(value);
            }
          }
        }else{
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              axisOperation.setOutputAction(value);
            }
          }
        }
View Full Code Here

        message.setName(elementQName != null ? elementQName.getLocalPart() : axisOperation.getName().getLocalPart());
        axisOperation.addMessage(message, messageLabel);

       
        if(WSDLConstants.MESSAGE_LABEL_IN_VALUE.equals(messageLabel)){
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              ArrayList<String> al = axisOperation.getWSAMappingList();
              if(al == null){
                al = new ArrayList<String>();
                axisOperation.setWsamappingList(al);
              }
              al.add(value);
            }
          }
        }else{
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              axisOperation.setOutputAction(value);
            }
          }
        }
View Full Code Here

        message.setName(elementQName != null ? elementQName.getLocalPart() : axisOperation.getName().getLocalPart());
        axisOperation.addMessage(message, messageLabel);

       
        if(WSDLConstants.MESSAGE_LABEL_IN_VALUE.equals(messageLabel)){
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              ArrayList al = axisOperation.getWSAMappingList();
              if(al == null){
                al = new ArrayList();
                axisOperation.setWsamappingList(al);
              }
              al.add(value);
            }
          }
        }else{
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              axisOperation.setOutputAction(value);
            }
          }
        }
View Full Code Here

                {
                    //TODO reg namespaces at appropriate element scope, not just at desc.
                    //DOMUtils.registerUniquePrefix(prefix, namespaceURI, desc);
                   
                    ExtensionRegistry extReg = fWsdlContext.extensionRegistry;
                    XMLAttr xmlAttr = extReg.createExtAttribute(wsdlClass, attrType, extEl, attrValue);
                    if(xmlAttr != null) //TODO use an 'UnknownAttr' class in place of null
                    {
                        wsdlObj.setExtensionAttribute(attrType, xmlAttr);
                    }
                }
View Full Code Here

TOP

Related Classes of org.apache.woden.xml.XMLAttr

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.