Package railo.runtime.component

Examples of railo.runtime.component.Member


    DateTime castToDateTime(boolean superAccess) throws PageException {
      // magic function
      PageContext pc = ThreadLocalPageContext.get();
    if(pc!=null) {
      Member member = getMember(pc,KeyConstants.__toDateTime,true,superAccess);
      //Object o = get(pc,"_toDateTime",null);
      if(member instanceof UDFPlus) {
        UDFPlus udf = (UDFPlus)member;
        if(udf.getReturnType()==CFTypes.TYPE_DATETIME && udf.getFunctionArguments().length==0) {
          return Caster.toDate(_call(pc, KeyConstants.__toDateTime,udf, null, new Object[0]),pc.getTimeZone());
View Full Code Here


    }
    DateTime castToDateTime(boolean superAccess,DateTime defaultValue) {
      // magic function
      PageContext pc = ThreadLocalPageContext.get();
    if(pc!=null) {
      Member member = getMember(pc,KeyConstants.__toDateTime,true,superAccess);
      //Object o = get(pc,"_toDateTime",null);
      if(member instanceof UDFPlus) {
        UDFPlus udf = (UDFPlus)member;
        if(udf.getReturnType()==CFTypes.TYPE_DATETIME && udf.getFunctionArguments().length==0) {
         
View Full Code Here

    /*public Object get(PageContext pc, String name) throws PageException {
        return get(pc, KeyImpl.init(name));
    }*/
   
    public Object get(PageContext pc, Collection.Key key) throws PageException {
        Member member=getMember(pc,key,true,false);
        if(member!=null) return member.getValue();
       
        // trigger
        if(triggerDataMember(pc) && !isPrivate(pc)) {
          return callGetter(pc,key);
        }
View Full Code Here

        //throw new ExpressionException("Component ["+getCallName()+"] has no accessible Member with name ["+name+"]");
    }

    private Object callGetter(PageContext pc,Collection.Key key) throws PageException {
      Key getterName = KeyImpl.getInstance("get"+key.getLowerString());
      Member member=getMember(pc,getterName,false,false);
        if(member instanceof UDFPlus) {
            UDFPlus udf = (UDFPlus)member;
            if(udf.getFunctionArguments().length==0 && udf.getReturnType()!=CFTypes.TYPE_VOID) {
                return _call(pc,getterName,udf,null,ArrayUtil.OBJECT_EMPTY);
            }
View Full Code Here

        throw new ExpressionException("Component ["+getCallName()+"] has no accessible Member with name ["+key+"]");
  }
   
    private Object callGetter(PageContext pc,Collection.Key key, Object defaultValue) {
      Key getterName = KeyImpl.getInstance("get"+key.getLowerString());
      Member member=getMember(pc,getterName,false,false);
        if(member instanceof UDFPlus) {
            UDFPlus udf = (UDFPlus)member;
            if(udf.getFunctionArguments().length==0 && udf.getReturnType()!=CFTypes.TYPE_VOID) {
                try {
          return _call(pc,getterName,udf,null,ArrayUtil.OBJECT_EMPTY);
View Full Code Here

        return defaultValue;
  }
   
    private Object callSetter(PageContext pc,Collection.Key key, Object value) throws PageException {
      Collection.Key setterName = KeyImpl.getInstance("set"+key.getLowerString());
      Member member=getMember(pc,setterName,false,false);
      if(member instanceof UDFPlus) {
          UDFPlus udf = (UDFPlus)member;
          if(udf.getFunctionArguments().length==1 && (udf.getReturnType()==CFTypes.TYPE_VOID) || udf.getReturnType()==CFTypes.TYPE_ANY   ) {// TDOO support int return type
                return _call(pc,setterName,udf,null,new Object[]{value});
            }   
View Full Code Here

    public Object get(int access, String name) throws PageException {
        return get(access, KeyImpl.init(name));
    }
   
    public Object get(int access, Collection.Key key) throws PageException {
        Member member=getMember(access,key,true,false);
        if(member!=null) return member.getValue();
       
        // Trigger
        PageContext pc = ThreadLocalPageContext.get();
        if(triggerDataMember(pc) && !isPrivate(pc)) {
          return callGetter(pc,key);
View Full Code Here

        return get(pc, KeyImpl.init(name), defaultValue);
    }*/

    @Override
    public Object get(PageContext pc, Collection.Key key, Object defaultValue) {
        Member member=getMember(pc,key,true,false);
        if(member!=null) return member.getValue();
       
        // trigger
        if(triggerDataMember(pc) && !isPrivate(pc)) {
          return callGetter(pc,key,defaultValue);
        }
View Full Code Here

     * @param key
     * @param defaultValue
     * @return
     */
    public Object get(int access, Collection.Key key, Object defaultValue) {
        Member member=getMember(access,key,true,false);
        if(member!=null) return member.getValue();
       
        // trigger
        PageContext pc = ThreadLocalPageContext.get();
        if(triggerDataMember(pc) && !isPrivate(pc)) {
          return callGetter(pc,key,defaultValue);
View Full Code Here

    this.useShadow=other.useShadow;
    this.entity=other.entity;
  }

  private void  setOwner(Map<Key,? extends Member> data) {
    Member m;
    Iterator<? extends Member> it = data.values().iterator();
    while(it.hasNext()){
      m=it.next();
      if(m instanceof UDFPlus) {
        ((UDFPlus)m).setOwnerComponent(this);
View Full Code Here

TOP

Related Classes of railo.runtime.component.Member

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.