Package railo.runtime.type.Collection

Examples of railo.runtime.type.Collection.Key


    protected abstract IndexResult _delete() throws SearchException;

    @Override
    public final IndexResult deleteIndex(PageContext pc,String key,short type,String queryName) throws SearchException {
        //if(queryName==null) queryName="";
      Key k;
     
        if(type==SearchIndex.TYPE_CUSTOM) {
          // delete all when no key is defined
          if(StringUtil.isEmpty(key,true))
            return deleteIndexNotCustom(pc, key, type, queryName);
View Full Code Here


public final class StructUpdate extends BIF {

  private static final long serialVersionUID = -6768103097076333814L;

  public static boolean call(PageContext pc , railo.runtime.type.Struct struct, String key, Object object) throws PageException {
    Key k = KeyImpl.init(key);
    struct.get(k);
    struct.set(k,object);
    return true;
  }
View Full Code Here

  public static boolean call(PageContext pc , Struct struct1, Struct struct2) throws PageException {
    return call(pc , struct1, struct2, true);
  }
    public static boolean call(PageContext pc , Struct struct1, Struct struct2, boolean overwrite) throws PageException {
        Iterator<Key> it = struct2.keyIterator();
        Key key;
        while(it.hasNext()) {
            key=KeyImpl.toKey(it.next());
            if(overwrite || struct1.get(key,null)==null)
              struct1.setEL(key,struct2.get(key,null));
        }
View Full Code Here

  public static boolean call(PageContext pc , Struct struct, String key, Object value) throws PageException {
    return call(pc , struct, key, value, false);
  }
 
  public static boolean call(PageContext pc , Struct struct, String strKey, Object value, boolean allowoverwrite) throws PageException {
    Key key = KeyImpl.init(strKey);
    if(allowoverwrite) {
      struct.set(key,value);
    }
    else {
      if(struct.get(key,null)!=null) throw new ExpressionException("key ["+key+"] already exist in struct");
View Full Code Here

      }
    }
    return sct;
  }
  private static Struct touch(Struct parent,String name) {
    Key key = KeyImpl.init(name.trim());
    Object obj=parent.get(key, null);
    if(obj instanceof Struct) return (Struct) obj;
    Struct sct=new StructImpl();
    parent.setEL(key, sct);
    return sct;
View Full Code Here

        doc.appendChild(XMLCaster.toNode(doc,value,false));
      }     
    // Parent
      else if(k.equals(XMLPARENT)) {
        Node parent = getParentNode(node,caseSensitive);
        Key name = KeyImpl.init(parent.getNodeName());
        parent = getParentNode(parent,caseSensitive);
       
        if(parent==null)
          throw new ExpressionException("there is no parent element, you are already on the root element");
       
View Full Code Here

TOP

Related Classes of railo.runtime.type.Collection.Key

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.