Examples of XmlAttr


Examples of nokogiri.XmlAttr

            }
            for (int i=0; i<attributeList.length; i++) {
                if (!isNamespace(attributeList.names.get(i))) {
                    Attr attr = document.createAttributeNS(attributeList.namespaces.get(i), attributeList.names.get(i));
                    attr.setValue(attributeList.values.get(i));
                    XmlAttr xmlAttr = (XmlAttr) NokogiriService.XML_ATTR_ALLOCATOR.allocate(ruby, getNokogiriClass(ruby, "Nokogiri::XML::Attr"));
                    xmlAttr.setNode(ruby.getCurrentContext(), attr);
                    array.append(xmlAttr);
                }
            }
        }
        return array;
View Full Code Here

Examples of nokogiri.XmlAttr

            case Node.ELEMENT_NODE:
                XmlElement xmlElement = (XmlElement) NokogiriService.XML_ELEMENT_ALLOCATOR.allocate(runtime, getNokogiriClass(runtime, "Nokogiri::XML::Element"));
                xmlElement.setNode(runtime.getCurrentContext(), node);
                return xmlElement;
            case Node.ATTRIBUTE_NODE:
                XmlAttr xmlAttr = (XmlAttr) NokogiriService.XML_ATTR_ALLOCATOR.allocate(runtime, getNokogiriClass(runtime, "Nokogiri::XML::Attr"));
                xmlAttr.setNode(runtime.getCurrentContext(), node);
                return xmlAttr;
            case Node.TEXT_NODE:
                XmlText xmlText = (XmlText) NokogiriService.XML_TEXT_ALLOCATOR.allocate(runtime, getNokogiriClass(runtime, "Nokogiri::XML::Text"));
                xmlText.setNode(runtime.getCurrentContext(), node);
                return xmlText;
View Full Code Here

Examples of oracle.xml.parser.v2.XMLAttr

          showExemple(xpath + "text()");

          //parcoure des ATTRIBUE
          NamedNodeMap nnm =  n.getAttributes();
          for (int i = 0; i < nnm.getLength(); i++) {
            XMLAttr att = (XMLAttr) nnm.item(i);
            showExemple(xpath + "@"+att.getExpandedName());
          }
         

          //parcoure des nodes
          NodeList nl =  n.getChildNodes();
View Full Code Here

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

Examples of org.apache.woden.xml.XMLAttr

        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

Examples of org.apache.woden.xml.XMLAttr

  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

Examples of org.apache.woden.xml.XMLAttr

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

Examples of org.apache.woden.xml.XMLAttr

        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

Examples of org.apache.woden.xml.XMLAttr

        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

Examples of org.apache.woden.xml.XMLAttr

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