Examples of valueIterator()


Examples of railo.runtime.type.Array.valueIterator()

  }
 
 
  public static String call(PageContext pc, Object ids, boolean throwOnError, String cacheName) throws PageException {
    Array arr = toArray(ids);//
    Iterator it = arr.valueIterator();
    String id;
    Cache cache;
    try {
      cache = Util.getCache(pc,cacheName,ConfigImpl.CACHE_DEFAULT_OBJECT);
    } catch (IOException e) {
View Full Code Here

Examples of railo.runtime.type.Array.valueIterator()

    Array arr = Caster.toArray(obj,null);
    if(arr!=null) {
      Key[] columns=new Key[arr.size()];
      String column;
      int index=0;
      Iterator<Object> it = arr.valueIterator();
      while(it.hasNext()) {
        column=Caster.toString(it.next(),null);
        if(StringUtil.isEmpty(column)) return null;
        columns[index++]=KeyImpl.getInstance(column);
      }
View Full Code Here

Examples of railo.runtime.type.Array.valueIterator()

    if(delimiter==null) delimiter=",";
    Array array = ListUtil.listToArrayRemoveEmpty(list, delimiter);
   
   
    StringBuilder sb=new StringBuilder();
    Iterator<Object> it = array.valueIterator();
    Object value;
    while(it.hasNext()){
      value=it.next();
      if(Caster.toBooleanValue(filter.call(pc, new Object[]{value}, true))){
        if(sb.length()>0) sb.append(delimiter);
View Full Code Here

Examples of railo.runtime.type.Array.valueIterator()

    private Resource[] getFileAcces() throws PageException {
      Object value=attributes.get(FILE_ACCESS,null);
        if(value==null) return null;
        Array arr = Caster.toArray(value);
        List rtn = new ArrayList();
        Iterator it = arr.valueIterator();
        String path;
        Resource res;
        while(it.hasNext()){
          path=Caster.toString(it.next());
          if(StringUtil.isEmpty(path))continue;
View Full Code Here

Examples of railo.runtime.type.Array.valueIterator()

      settings.set(ORMConfigurationImpl.DB_CREATE, dbcreate);
     
      // cfclocation
      String strCfclocation=getString("admin",action,"cfclocation");
      Array arrCfclocation = railo.runtime.type.util.ListUtil.listToArray(strCfclocation, ",\n");
      Iterator it = arrCfclocation.valueIterator();
      String path;
      while(it.hasNext()){
        path=(String) it.next();
        ResourceUtil.toResourceExisting(config, path);
      }
View Full Code Here

Examples of railo.runtime.type.Array.valueIterator()

  Resource[] callResourceArrayRTE(PageContext pc,Component cfc,String methodName, Object[] args) {
    pc = ThreadLocalPageContext.get(pc);
    try {
      Array arr = Caster.toArray(call(pc,getCFC(pc,cfc), methodName, args));
      Iterator<Object> it = arr.valueIterator();
      CFMLResource[] resources=new CFMLResource[arr.size()];
      int index=0;
      while(it.hasNext()){
        resources[index++]=new CFMLResource(this,Caster.toComponent(it.next()));
      }
View Full Code Here

Examples of railo.runtime.type.Array.valueIterator()

    Array arr = Caster.toArray(objACL,null);
    if(arr==null)
      throw new S3Exception("ACL Object must be a Array of Structs");
   
    Struct sct;
    Iterator<Object> it = arr.valueIterator();
    List<AccessControl> acl=new ArrayList<AccessControl>();
    while(it.hasNext()){
      sct=Caster.toStruct(it.next(), null);
      if(sct==null)
        throw new S3Exception("ACL Object must be a Array of Structs");
View Full Code Here

Examples of railo.runtime.type.Array.valueIterator()

    Array arr1=ListUtil.listToArray(list1, delimiter_list1);
    Array arr2=ListUtil.listToArray(list2, delimiter_list2);

    Iterator<Object> it1 = arr1.valueIterator();
    Iterator<Object> it2 = arr2.valueIterator();
   
        while(it1.hasNext()) {
            str=StringUtil.replace(str,Caster.toString(it1.next(),null),((it2.hasNext())?Caster.toString(it2.next(),null):""),false);
        }
    return str;
View Full Code Here

Examples of railo.runtime.type.Array.valueIterator()

    Struct sct=null;
    String func;
   
    // create stack
    StringBuilder sb=new StringBuilder();
    Iterator<Object> it = arr.valueIterator();
    while(it.hasNext()){
      sct=(Struct) it.next();
      func=(String) sct.get(KeyConstants._function);
      sb.append(sct.get(KeyConstants._template));
      if(func.length()>0) {
View Full Code Here

Examples of railo.runtime.type.Array.valueIterator()

  public abstract boolean match(Struct variables,String path);

  public static Path[] init(String path) {
    Array arr = ListUtil.listToArrayRemoveEmpty(path,'/');
    Path[] rtn=new Path[arr.size()];
    Iterator it = arr.valueIterator();
    int index=-1;
    String str;
    while(it.hasNext()){
      index++;
      str=Caster.toString(it.next(),null);
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.