Package railo.runtime.type

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


      }
      others.add(prop);
    }
   
    // fill to joins
    Iterator<Entry<Key, Object>> it = sct.entryIterator();
    Entry<Key, Object> e;
    while(it.hasNext()){
      e = it.next();
      list=(java.util.List<Property>) e.getValue();
      joins.put(e.getKey().getString(), new PropertyCollection(e.getKey().getString(),list));
View Full Code Here


      else if("sequence".equals(className)){
        if(!sct.containsKey(SEQUENCE)) sct.setEL(SEQUENCE, toString(cfc,prop,meta, "sequence",true,data));
      }
     
      //Key[] keys = sct.keys();
      Iterator<Entry<Key, Object>> it = sct.entryIterator();
      Entry<Key, Object> e;
      Element param;
      while(it.hasNext()){
        e = it.next();
        param = doc.createElement("param");
View Full Code Here

     * @throws PageException
     */
    public void setPassthrough(Object passthrough) throws PageException {
        if(passthrough instanceof Struct) {
            Struct sct = (Struct) passthrough;
            Iterator<Entry<Key, Object>> it = sct.entryIterator();
            Entry<Key, Object> e;
            while(it.hasNext()) {
                e = it.next();
                attributes.setEL(e.getKey(),e.getValue());
            }
View Full Code Here

            else str=SystemUtil.parsePlaceHolder(str);
           
            if(StringUtil.startsWith(str,'{')){
              Struct constants = ((ConfigImpl)config).getConstants();
              //Collection.Key[] arr = constants.keys();
              Iterator<Entry<Key, Object>> it = constants.entryIterator();
              Entry<Key, Object> e;
              while(it.hasNext()) {
                e = it.next();
                if(StringUtil.startsWithIgnoreCase(str,"{"+e.getKey().getString()+"}")) {
                  String value=(String) e.getValue();
View Full Code Here

     * @throws PageException
     */
    public void setPassthrough(Object passthrough) throws PageException {
        if(passthrough instanceof Struct) {
            Struct sct = (Struct) passthrough;
            Iterator<Entry<Key, Object>> it = sct.entryIterator();
            Entry<Key, Object> e;
            while(it.hasNext()) {
              e=it.next();
                attributes.setEL(e.getKey(),e.getValue());
            }
View Full Code Here

    return threads;
  }
 
  private void pause(String name,CFMLFactoryImpl factory,List<IFDThread> threads) {
    Struct pcs = factory.getRunningPageContexts();
    Iterator<Entry<Key, Object>> it = pcs.entryIterator();
    PageContextImpl pc;
   
    while(it.hasNext()){
      pc=(PageContextImpl) it.next().getValue();
      try {
View Full Code Here

       
        // Additional
        if(pe instanceof PageExceptionImpl) {
          PageExceptionImpl pei=(PageExceptionImpl) pe;
          sct=Caster.toStruct(sct.get("additional",null),null);
          Iterator<Entry<Key, Object>> it = sct.entryIterator();
          Entry<Key, Object> e;
          while(it.hasNext()){
            e = it.next();
            pei.setAdditional(e.getKey(), e.getValue());
          }
View Full Code Here

      }
      else if(cacheValue instanceof Struct) {
        Struct sctCache = (Struct) cacheValue;
        count=Caster.toIntValue(sctCache.removeEL(COUNT),0);
       
        Iterator<Entry<Key, Object>> cit = sctCache.entryIterator();
        Entry<Key, Object> ce;
        while(cit.hasNext()){
          ce = cit.next();
          if(STATUS_CODE.getVariable().equals(ce.getKey().getString()))
            res.set(KEY_SC, ce.getValue());
View Full Code Here

      }
     
    // ATTRIBUTES
      Struct attributes=Caster.toStruct(meta.get(KeyConstants._ATTRIBUTES,null),null,false);
      if(attributes!=null) {
        Iterator<Entry<Key, Object>> it = attributes.entryIterator();
        //Iterator it = attributes.entrySet().iterator();
        Entry<Key, Object> entry;
        TagLibTagAttr attr;
        Struct sct;
        String name;
View Full Code Here

       
        // headers
        Struct headers=Caster.toStruct(sct.get(KeyConstants._headers,null),null);
        if(headers!=null){
          //Key[] keys = headers.keys();
          Iterator<Entry<Key, Object>> it = headers.entryIterator();
          Entry<Key, Object> e;
          String n,v;
          Object tmp;
          while(it.hasNext()){
            e = it.next();
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.