Package railo.runtime.type

Examples of railo.runtime.type.Struct.entryIterator()


    for(int i=1;i<=len;i++) {
      item=Caster.toStruct(items.get(i, null),null,false);
      if(item==null) continue;
      qry.addRow();
      row++;
      it = item.entryIterator();
      while(it.hasNext()) {
        e = it.next();
        if(isRss)setQueryValueRSS(qry,e.getKey(),e.getValue(),row);
        else setQueryValueAtom(qry,e.getKey(),e.getValue(),row);
      }
View Full Code Here


   
    Struct otherCustom = other.getCustom();
    if(otherCustom.size()!=custom.size()) return false;
   
    //Key[] keys = otherCustom.keys();
    Iterator<Entry<Key, Object>> it = otherCustom.entryIterator();
    Entry<Key, Object> e;
    Object ot,oc;
    while(it.hasNext()){
      e = it.next();
      ot=custom.get(e.getKey(),null);
View Full Code Here

        }
        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

        }
        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 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 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.setEL(toIntValue(e.getKey().getString()),e.getValue());
View Full Code Here

        if(ps.physcalExists()){
          Resource res = ps.getResource();
          try {
            String content = IOUtil.toString(res, getConfig().getTemplateCharset());
            Struct sct=pe.getErrorBlock(this,ep);
            java.util.Iterator<Entry<Key, Object>> it = sct.entryIterator();
            Entry<Key, Object> e;
            String v;
            while(it.hasNext()){
              e = it.next();
              v=Caster.toString(e.getValue(),null);
View Full Code Here

   */
  public static Attr toAttr(Document doc, Object o) throws PageException {
    if(o instanceof Attr) return (Attr)o;
    if(o instanceof Struct && ((Struct)o).size()==1) {
      Struct sct=(Struct)o;
      Entry<Key, Object> e = sct.entryIterator().next();
      Attr attr= doc.createAttribute(e.getKey().getString());
      attr.setValue(Caster.toString(e.getValue()));
      return attr;
    }
   
View Full Code Here

    }
  }

  public static DataSource[] toDataSources(Object o) throws PageException, ClassException {
    Struct sct = Caster.toStruct(o);
    Iterator<Entry<Key, Object>> it = sct.entryIterator();
    Entry<Key, Object> e;
    java.util.List<DataSource> dataSources=new ArrayList<DataSource>();
    while(it.hasNext()) {
      e = it.next();
      dataSources.add(toDataSource(e.getKey().getString().trim(), Caster.toStruct(e.getValue())));
View Full Code Here

    }
  }

  public static Mapping[] toMappings(ConfigWeb cw,Object o, Resource source) throws PageException {
    Struct sct = Caster.toStruct(o);
    Iterator<Entry<Key, Object>> it = sct.entryIterator();
    Entry<Key, Object> e;
    java.util.List<Mapping> mappings=new ArrayList<Mapping>();
    ConfigWebImpl config=(ConfigWebImpl) cw;
    String virtual,physical;
    while(it.hasNext()) {
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.