Example #1
0
 public Object call(PageContext pc, Collection.Key key, Object[] arguments) throws PageException {
   Member m = component.getMember(access, key, false, false);
   if (m != null) {
     if (m instanceof UDF) return ((UDF) m).call(pc, arguments, false);
     throw ComponentUtil.notFunction(component, key, m.getValue(), access);
   }
   throw ComponentUtil.notFunction(component, key, null, access);
 }
Example #2
0
 public Object callWithNamedValues(PageContext pc, Key key, Struct args) throws PageException {
   Member m = component.getMember(access, key, false, false);
   if (m != null) {
     if (m instanceof UDF) return ((UDF) m).callWithNamedValues(pc, args, false);
     throw ComponentUtil.notFunction(component, key, m.getValue(), access);
   }
   throw ComponentUtil.notFunction(component, key, null, access);
 }
Example #3
0
 /** @see railo.runtime.type.Collection#get(railo.runtime.type.Collection.Key) */
 public Object get(Key key) throws PageException {
   Object o = get(key, null);
   if (o != null) return o;
   throw new ExpressionException(
       "Component ["
           + component.getCallName()
           + "] has no acessible Member with name ["
           + key
           + "]");
 }
Example #4
0
  /** @see railo.runtime.type.Collection#set(railo.runtime.type.Collection.Key, java.lang.Object) */
  public Object set(Collection.Key key, Object value) {
    if (key.equalsIgnoreCase(ComponentImpl.KEY_THIS)
        || key.equalsIgnoreCase(ComponentImpl.KEY_SUPER)) return value;

    if (!component.afterConstructor && value instanceof UDF) {
      component.addConstructorUDF(key, value);
    }
    return shadow.put(key, value);

    // return setEL(key, value);
  }
Example #5
0
  public Collection.Key[] keys() {
    Set keySet = component.keySet(access);
    keySet.add("this");
    Collection.Key[] arr = new Collection.Key[keySet.size()];
    Iterator it = keySet.iterator();

    int index = 0;
    while (it.hasNext()) {
      arr[index++] = KeyImpl.toKey(it.next(), null);
    }
    return arr;
  }
Example #6
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case ConnectorDefinitionPackage.GROUP__WIDGET:
       getWidget().clear();
       return;
     case ConnectorDefinitionPackage.GROUP__OPTIONAL:
       unsetOptional();
       return;
   }
   super.eUnset(featureID);
 }
Example #7
0
  /** @see railo.runtime.type.Collection#keysAsString() */
  public String[] keysAsString() {
    Set keySet = component.keySet(access);
    keySet.add("this");
    String[] arr = new String[keySet.size()];
    Iterator it = keySet.iterator();

    int index = 0;
    while (it.hasNext()) {
      arr[index++] = Caster.toString(it.next(), null);
    }

    return arr;
  }
Example #8
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case ConnectorDefinitionPackage.GROUP__WIDGET:
       getWidget().clear();
       getWidget().addAll((Collection<? extends Component>) newValue);
       return;
     case ConnectorDefinitionPackage.GROUP__OPTIONAL:
       setOptional((Boolean) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }
Example #9
0
 /**
  * @see railo.runtime.type.Objects#get(railo.runtime.PageContext,
  *     railo.runtime.type.Collection.Key, java.lang.Object)
  */
 public Object get(PageContext pc, Collection.Key key, Object defaultValue) {
   return component.get(access, key, defaultValue);
 }
Example #10
0
 /** @see railo.runtime.type.Collection#size() */
 public int size() {
   return component.size(access) + 1;
 }
Example #11
0
 /** @see railo.runtime.op.Castable#castToDoubleValue() */
 public double castToDoubleValue() throws PageException {
   return component.castToDoubleValue();
 }
Example #12
0
 /**
  * @see railo.runtime.type.Objects#setEL(railo.runtime.PageContext,
  *     railo.runtime.type.Collection.Key, java.lang.Object)
  */
 public Object setEL(PageContext pc, Collection.Key propertyName, Object value) {
   return component.setEL(propertyName, value);
 }
Example #13
0
 /** @see railo.runtime.op.Castable#castToDateTime() */
 public DateTime castToDateTime() throws PageException {
   return component.castToDateTime();
 }
Example #14
0
 /** @see railo.runtime.op.Castable#castToDateTime(railo.runtime.type.dt.DateTime) */
 public DateTime castToDateTime(DateTime defaultValue) {
   return component.castToDateTime(defaultValue);
 }
Example #15
0
 /** @see railo.runtime.type.Collection#removeEL(railo.runtime.type.Collection.Key) */
 public Object removeEL(Collection.Key key) {
   return component.removeEL(key);
 }
Example #16
0
 /**
  * @throws PageException
  * @see railo.runtime.op.Castable#compare(boolean)
  */
 public int compareTo(boolean b) throws PageException {
   return component.compareTo(b);
 }
Example #17
0
 /**
  * @see railo.runtime.type.Objects#get(railo.runtime.PageContext, java.lang.String,
  *     java.lang.Object)
  */
 public Object get(PageContext pc, String key, Object defaultValue) {
   return component.get(access, key, defaultValue);
 }
Example #18
0
 /** @see railo.runtime.op.Castable#compareTo(java.lang.String) */
 public int compareTo(String str) throws PageException {
   return component.compareTo(str);
 }
Example #19
0
 /** @see railo.runtime.op.Castable#compareTo(double) */
 public int compareTo(double d) throws PageException {
   return component.compareTo(d);
 }
Example #20
0
 /** @see railo.runtime.op.Castable#compareTo(railo.runtime.type.dt.DateTime) */
 public int compareTo(DateTime dt) throws PageException {
   return component.compareTo(dt);
 }
Example #21
0
 /** @see railo.runtime.type.Collection#remove(railo.runtime.type.Collection.Key) */
 public Object remove(Collection.Key key) throws PageException {
   return component.remove(key);
 }
Example #22
0
 /** @see railo.runtime.type.Objects#get(railo.runtime.PageContext, java.lang.String) */
 public Object get(PageContext pc, String key) throws PageException {
   return component.get(access, key);
 }
Example #23
0
 /** @see railo.runtime.type.Collection#clear() */
 public void clear() {
   component.clear();
 }
Example #24
0
 /**
  * @see railo.runtime.type.Objects#get(railo.runtime.PageContext,
  *     railo.runtime.type.Collection.Key)
  */
 public Object get(PageContext pc, Collection.Key key) throws PageException {
   return component.get(access, key);
 }
Example #25
0
 /** @see railo.runtime.type.Scope#isInitalized() */
 public boolean isInitalized() {
   return component.isInitalized();
 }
Example #26
0
 /** @see railo.runtime.op.Castable#castToBoolean(java.lang.Boolean) */
 public Boolean castToBoolean(Boolean defaultValue) {
   return component.castToBoolean(defaultValue);
 }
Example #27
0
 /**
  * @see railo.runtime.type.Objects#set(railo.runtime.PageContext,
  *     railo.runtime.type.Collection.Key, java.lang.Object)
  */
 public Object set(PageContext pc, Collection.Key propertyName, Object value)
     throws PageException {
   return component.set(propertyName, value);
 }
Example #28
0
 /** @see railo.runtime.op.Castable#castToDoubleValue(double) */
 public double castToDoubleValue(double defaultValue) {
   return component.castToDoubleValue(defaultValue);
 }
Example #29
0
 /**
  * @see railo.runtime.type.Objects#setEL(railo.runtime.PageContext, java.lang.String,
  *     java.lang.Object)
  */
 public Object setEL(PageContext pc, String propertyName, Object value) {
   return component.setEL(propertyName, value);
 }
Example #30
0
 /** @see railo.runtime.op.Castable#castToBooleanValue() */
 public boolean castToBooleanValue() throws PageException {
   return component.castToBooleanValue();
 }