Package railo.runtime.ext.tag

Examples of railo.runtime.ext.tag.DynamicAttributes


   
    //Key[] keys = attrs.keys();
    Iterator<Entry<Key, Object>> it;
    Entry<Key, Object> e;
    if(TagLibTag.ATTRIBUTE_TYPE_DYNAMIC==attrType) {
      DynamicAttributes da=(DynamicAttributes) tag;
      it = attrs.entryIterator();
      while(it.hasNext()) {
        e = it.next();
        da.setDynamicAttribute(null, e.getKey(),e.getValue());
      }
    }
    else if(TagLibTag.ATTRIBUTE_TYPE_FIXED==attrType) {
      Object value;
      it = attrs.entryIterator();
      while(it.hasNext()) {
        e = it.next();
        value=e.getValue();
        if(value!=null)Reflector.callSetterEL(tag, e.getKey().getString(),value);
        //}catch(PageException pe){}
     
    }
    else if(TagLibTag.ATTRIBUTE_TYPE_MIXED==attrType) {
      MethodInstance setter;
      it = attrs.entryIterator();
      while(it.hasNext()) {
        e = it.next();
        setter = Reflector.getSetter(tag, e.getKey().getString(),e.getValue(),null);
        if(setter!=null) {
          try {
            setter.invoke(tag);
          }
          catch (Exception _e) {
            throw Caster.toPageException(_e);
          }
        }
        else {
          DynamicAttributes da=(DynamicAttributes) tag;
          da.setDynamicAttribute(null, e.getKey(),e.getValue());
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of railo.runtime.ext.tag.DynamicAttributes

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.