Examples of XmlObject


Examples of com.cloud.utils.xmlobject.XmlObject

    String operPower;
    String totalMemory;
    String uuid;

    public static List<ComputeBlade> fromXmString(String xmlstr) {
        XmlObject root = XmlObjectParser.parseFromString(xmlstr);
        List<XmlObject> lst = root.getAsList("outConfigs.computeBlade");
        List<ComputeBlade> blades = new ArrayList<ComputeBlade>();
        if (lst == null) {
            return blades;
        }
        for (XmlObject xo : lst) {
View Full Code Here

Examples of com.sforce.ws.bind.XmlObject

    private void mapPartnerSObject(Row map, String prefix, XmlObject sobj) {
        Iterator<XmlObject> fields = sobj.getChildren();
        if (fields == null) return;
        while (fields.hasNext()) {
            XmlObject field = fields.next();

            final String fieldName = prefix + field.getName().getLocalPart();
            String localName = getMapping(fieldName);
            if (localName != null) {
                map.put(localName, field.getValue());
            }
            mapPartnerSObject(map, fieldName + ".", field);
        }
    }
View Full Code Here

Examples of de.innovationgate.ext.org.mozilla.javascript.xml.XMLObject

    /* (non-Javadoc)
     * @see de.innovationgate.wgpublisher.expressions.tmlscript.RhinoExpressionEngine#xpathTMLScriptBean(java.lang.Object, java.lang.String)
     */
    public List xpathTMLScriptBean(Object obj, String xpath) throws ExpressionEngineException {
       
        XMLObject xmlObj = (XMLObject) obj;
        Document doc;
        try {
            String xmlText = (String) ScriptableObject.callMethod(xmlObj, "toXMLString", new Object[] {});
            doc = DocumentHelper.parseText(xmlText);
        }
View Full Code Here

Examples of dwlab.base.XMLObject

    if( XMLObject.xMLGetMode() ) {
      for( XMLObject spriteXMLObject: xMLObject.children ) insertSprite( (Sprite) spriteXMLObject.manageObject( null ), true, true );
    } else {
      for( Sprite sprite: sprites ) {
        XMLObject newXMLObject = new XMLObject();
        newXMLObject.manageObject( sprite );
        xMLObject.children.addLast( newXMLObject );
      }
    }
  }
View Full Code Here

Examples of javax.xml.crypto.dsig.XMLObject

        Document doc = db.newDocument();
        // create Objects
        Element webElem = doc.createElementNS(null, "Web");
        Text text = doc.createTextNode("up up and away");
        webElem.appendChild(text);
        XMLObject obj = fac.newXMLObject(Collections.singletonList
                                         (new DOMStructure(webElem)), "DSig.Object_1", "text/xml", null);

        // create XMLSignature
        XMLSignature sig = fac.newXMLSignature
        (si, ki, Collections.singletonList(obj), null, null);
View Full Code Here

Examples of javax.xml.crypto.dsig.XMLObject

        Document doc = db.newDocument();
        // create Objects
        Element webElem = doc.createElementNS(null, "Web");
        Text text = doc.createTextNode("up up and away");
        webElem.appendChild(text);
        XMLObject obj = fac.newXMLObject(Collections.singletonList
                                         (new DOMStructure(webElem)), "DSig.Object_1", "text/xml", null);

        // create XMLSignature
        XMLSignature sig = fac.newXMLSignature
        (si, ki, Collections.singletonList(obj), null, null);
View Full Code Here

Examples of net.sourceforge.htmlunit.corejs.javascript.xml.XMLObject

    public static Object getObjectElem(Scriptable obj, Object elem,
                                       Context cx)
    {
        if (obj instanceof XMLObject) {
            XMLObject xmlObject = (XMLObject)obj;
            return xmlObject.ecmaGet(cx, elem);
        }

        Object result;

        String s = toStringIdOrIndex(cx, elem);
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject

                Scriptable s = (Scriptable)jsResp;
                Object out = ScriptableObject.callMethod(s,
                                                         "getXmlObject",
                                                         Context.emptyArgs);
                Wrapper wrapped = (Wrapper)out;
                XmlObject xml = (XmlObject)wrapped.unwrap();
                node = xml.getDomNode();
                response.setNode(node.getOwnerDocument());
            } else {
                if (jsResp instanceof Wrapper) {
                    jsResp = ((Wrapper)jsResp).unwrap();
                }
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject

     *
     * @see de.netseeker.ejoe.adapter.SerializeAdapter#write(java.lang.Object, java.io.OutputStream)
     */
    public void write( Object obj, OutputStream out ) throws Exception
    {
        XmlObject xmlObj = (XmlObject) obj;
        xmlObj.save( out );
    }
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject

      XmlCursor cursor = null;
      String contentType = null;
      Map<String, String> namespaces = new HashMap<String, String>();
      for (State state : _states)
      {
        XmlObject o = (XmlObject) state.getContent();
        if (cursor == null)
        {
          cursor = o.copy().newCursor();
          cursor.push();
          cursor.toFirstChild();
          cursor.toEndToken();
          contentType = state.getContentType();
        }
        else
        {
          XmlCursor cursor2 = o.newCursor();
          cursor2.toFirstChild(); // Presence
          cursor2.toFirstChild(); // tuple
          cursor2.getAllNamespaces(namespaces);
          do
          {
            add(cursor2, cursor);
          }
          while (cursor2.toNextSibling());
          cursor2.dispose();
        }
      }
      cursor.toParent();
      cursor.toLastAttribute();
      for (String name : namespaces.keySet())
      {
        cursor.insertNamespace(name, namespaces.get(name));
      }
      cursor.pop();
      XmlObject o = cursor.getObject();
      cursor.dispose();
      return new State(contentType, o);
    }
  }
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.