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); }
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); }
/** @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 + "]"); }
/** @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); }
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; }
/** * * <!-- 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); }
/** @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; }
/** * * <!-- 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); }
/** * @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); }
/** @see railo.runtime.type.Collection#size() */ public int size() { return component.size(access) + 1; }
/** @see railo.runtime.op.Castable#castToDoubleValue() */ public double castToDoubleValue() throws PageException { return component.castToDoubleValue(); }
/** * @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); }
/** @see railo.runtime.op.Castable#castToDateTime() */ public DateTime castToDateTime() throws PageException { return component.castToDateTime(); }
/** @see railo.runtime.op.Castable#castToDateTime(railo.runtime.type.dt.DateTime) */ public DateTime castToDateTime(DateTime defaultValue) { return component.castToDateTime(defaultValue); }
/** @see railo.runtime.type.Collection#removeEL(railo.runtime.type.Collection.Key) */ public Object removeEL(Collection.Key key) { return component.removeEL(key); }
/** * @throws PageException * @see railo.runtime.op.Castable#compare(boolean) */ public int compareTo(boolean b) throws PageException { return component.compareTo(b); }
/** * @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); }
/** @see railo.runtime.op.Castable#compareTo(java.lang.String) */ public int compareTo(String str) throws PageException { return component.compareTo(str); }
/** @see railo.runtime.op.Castable#compareTo(double) */ public int compareTo(double d) throws PageException { return component.compareTo(d); }
/** @see railo.runtime.op.Castable#compareTo(railo.runtime.type.dt.DateTime) */ public int compareTo(DateTime dt) throws PageException { return component.compareTo(dt); }
/** @see railo.runtime.type.Collection#remove(railo.runtime.type.Collection.Key) */ public Object remove(Collection.Key key) throws PageException { return component.remove(key); }
/** @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); }
/** @see railo.runtime.type.Collection#clear() */ public void clear() { component.clear(); }
/** * @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); }
/** @see railo.runtime.type.Scope#isInitalized() */ public boolean isInitalized() { return component.isInitalized(); }
/** @see railo.runtime.op.Castable#castToBoolean(java.lang.Boolean) */ public Boolean castToBoolean(Boolean defaultValue) { return component.castToBoolean(defaultValue); }
/** * @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); }
/** @see railo.runtime.op.Castable#castToDoubleValue(double) */ public double castToDoubleValue(double defaultValue) { return component.castToDoubleValue(defaultValue); }
/** * @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); }
/** @see railo.runtime.op.Castable#castToBooleanValue() */ public boolean castToBooleanValue() throws PageException { return component.castToBooleanValue(); }