Package railo.runtime.text.xml.struct

Examples of railo.runtime.text.xml.struct.XMLStruct


              list.add(it.next());
            }
            return list;
        }
        else if(o instanceof XMLStruct) {
            XMLStruct sct=((XMLStruct)o);
            if(sct instanceof XMLMultiElementStruct) return toList(new XMLMultiElementArray((XMLMultiElementStruct) o));
            ArrayList list=new ArrayList();
            list.add(sct);
            return list;
        }
        else if(o instanceof ObjectWrap) {
            return toList(((ObjectWrap)o).getEmbededObject());
        }
        else if(o instanceof Struct) {
            Struct sct=(Struct) o;
            ArrayList arr=new ArrayList();
           
            Iterator<Entry<Key, Object>> it = sct.entryIterator();
            Entry<Key, Object> e=null;
            try {
                while(it.hasNext()) {
                  e = it.next();
                    arr.add(toIntValue(e.getKey().getString()),e.getValue());
View Full Code Here


          XMLMultiElementStruct xmes;
          if(o instanceof XMLMultiElementStruct) {
            xmes=(XMLMultiElementStruct)o;
          }
          else {
            XMLStruct sct=(XMLStruct) o;
              Array a=new ArrayImpl();
              a.append(o);
              xmes=new XMLMultiElementStruct(a, sct.getCaseSensitive());
          }
        return new XMLMultiElementArray(xmes);
        }
        else if(o instanceof ObjectWrap) {
            return toArray(((ObjectWrap)o).getEmbededObject());
        }
        else if(o instanceof Struct) {
            Struct sct=(Struct) o;
            Array arr=new ArrayImpl();
           
            Iterator<Entry<Key, Object>> it = sct.entryIterator();
            Entry<Key, Object> e=null;
            try {
                while(it.hasNext()) {
                  e = it.next();
                    arr.setE(toIntValue(e.getKey().getString()),e.getValue());
View Full Code Here

        }
        else if(o instanceof List) {
            return ((List) o).toArray();
        }
        else if(o instanceof XMLStruct) {
            XMLStruct sct=((XMLStruct)o);
            if(sct instanceof XMLMultiElementStruct) return toNativeArray((sct));
            Object[] a=new Object[1];
            a[0]=sct;
            return a;
        }
        else if(o instanceof ObjectWrap) {
            return toNativeArray(((ObjectWrap)o).getEmbededObject());
        }
        else if(o instanceof Struct) {
            Struct sct=(Struct) o;
            Array arr=new ArrayImpl();
           
            Iterator<Entry<Key, Object>> it = sct.entryIterator();
            Entry<Key, Object> e=null;
            try {
                while(it.hasNext()) {
                  e=it.next();
                    arr.setE(toIntValue(e.getKey().getString()),e.getValue());
View Full Code Here

    public XMLNodeList(Node parent, boolean caseSensitive) {
      this(parent,caseSensitive,null);
    }
    public XMLNodeList(Node parent, boolean caseSensitive, String filter) {
        if(parent instanceof XMLStruct) {
            XMLStruct xmlNode = ((XMLStruct)parent);
            this.parent=xmlNode.toNode();
            this.caseSensitive=xmlNode.getCaseSensitive();
        }
        else {
            this.parent=parent;
            this.caseSensitive=caseSensitive;
        }
View Full Code Here

    else {
      List<Node> children = XMLUtil.getChildNodesAsList(node,Node.ELEMENT_NODE,caseSensitive,null);
      int len=children.size();
      Array array=null;//new ArrayImpl();
      Element el;
      XMLStruct sct=null,first=null;
      for(int i=0;i<len;i++) {
        el=(Element) children.get(i);// XMLCaster.toXMLStruct(getChildNode(index),caseSensitive);
        if(XMLUtil.nameEqual(el,k.getString(),caseSensitive)) {
          sct = XMLCaster.toXMLStruct(el,caseSensitive);
         
View Full Code Here

TOP

Related Classes of railo.runtime.text.xml.struct.XMLStruct

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.