Examples of entryIterator()


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

        }
        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

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

        }
        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

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

        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

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

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

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

    }
  }

  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

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

    }
  }

  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

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

          new String[]{"code","displayname"},
          new String[]{"varchar","varchar"},
          0,"usage");
        Struct usages = config.getRemoteClientUsage();
        //Key[] keys = usages.keys();
        Iterator<Entry<Key, Object>> it = usages.entryIterator();
        Entry<Key, Object> e;
        int i=-1;
        while(it.hasNext()) {
          i++;
          e = it.next();
View Full Code Here

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

   
    private static Map<String,Object> toMap(TypeMapping tm,Object value, Class targetClass, Set<Object> done) throws PageException {
        Struct src = Caster.toStruct(value);
        Map<String,Object> trg=new HashMap<String,Object>();
        Iterator<Entry<Key, Object>> it = src.entryIterator();
        Entry<Key, Object> e;
        while(it.hasNext()) {
          e = it.next();
            trg.put(e.getKey().getString(),_toAxisType(tm,null,null,e.getValue(),targetClass,done));
View Full Code Here

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

    return sct;
    }
 
  private static void getAllApplicationScopes(ConfigWebImpl web, ScopeContext sc, Query app) throws PageException {
    Struct all = sc.getAllApplicationScopes();
    Iterator<Entry<Key, Object>> it = all.entryIterator();
    Entry<Key, Object> e;
    int row;
    Size sac;
    while(it.hasNext()){
      e = it.next();
View Full Code Here

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

    }
  }
 
  private static void getAllCFSessionScopes(ConfigWebImpl web, ScopeContext sc, Query sess) throws PageException {
    Struct all = sc.getAllCFSessionScopes();
    Iterator it = all.entryIterator(),itt;
    Entry e,ee;
    int row,size,count,users;
    Size sac;
    // applications
    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.