public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException { return originalResolver_.getValue(base, index); }
public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException { Object o = nested.getValue(base, index); // if (o instanceof ResultSet) { // initResultSet((ResultSet)o); // } return o; }
public Object getValue(Object base, int index) { return nested.getValue(base, index); //!CQ TODO: indexed properties }
public Object getValue(Object base, Object property) throws EvaluationException, PropertyNotFoundException { return originalResolver_.getValue(base, property); }
public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException { return originalResolver.getValue(base, index); }
public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { throw new ReferenceSyntaxException("Cannot apply an index value to a flow execution"); } else { return resolverDelegate.getValue(base, index); } }
public Object getValue(Object base, Object property) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { FlowExecution execution = (FlowExecution) base; assertPropertyNameValid(property); return doGetAttribute(execution, (String) property); } else { return resolverDelegate.getValue(base, property); } }
/** * <p>Convert an index into a corresponding string, and delegate.</p> * * @param base Base object from which to return a property * @param index Index to be returned * * @exception EvaluationException if an evaluation error occurs * @exception PropertyNotFoundException if there is no such named * object in this context */ public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException { if (base instanceof Context) { return getValue(base, "" + index); } else if (base instanceof LoadBundle && !"basename".equals(base)) { return getValue(base, "" + index); } else { return original.getValue(base, index); } }
public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException { Object value = elContext.getELResolver().getValue(elContext, base, new Integer(index)); if (elContext.isPropertyResolved()) { return value; } else { return nextResolver.getValue(base, index); } }
public Object getValue(Object base, Object property) throws EvaluationException, PropertyNotFoundException { Object value = elContext.getELResolver().getValue(elContext, base, property); if (elContext.isPropertyResolved()) { return value; } else { return nextResolver.getValue(base, property); } }
public Object getValue(Object base, Object property) { if (delegate != null) { return delegate.getValue(base, property); } try { FacesContext context = FacesContext.getCurrentInstance(); return context.getApplication().getELResolver().getValue(context.getELContext(), base,property); } catch (javax.el.PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(pnfe); } catch (ELException elex) { throw new EvaluationException(elex); } }
public Object getValue(Object base, Object property) { if (delegate != null) { return delegate.getValue(base, property); } try { FacesContext context = FacesContext.getCurrentInstance(); return context.getApplication().getELResolver().getValue(context.getELContext(), base,property); } catch (javax.el.PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(pnfe); } catch (ELException elex) { throw new EvaluationException(elex); } }
/** {@inheritDoc} */ public Class getType(FacesContext context) throws PropertyNotFoundException { if (context == null) { throw new NullPointerException(); } List names = parse(ref); // Resolve the variable name VariableResolver vr = application().getVariableResolver(); String name = (String) names.get(0); Object base = vr.resolveVariable(context, name); if (names.size() < 2) { return base.getClass(); } // Resolve the property names PropertyResolver pr = application().getPropertyResolver(); for (int i = 1; i < names.size() - 1; i++) { base = pr.getValue(base, (String) names.get(i)); } // Return the type of the final property return pr.getType(base, (String) names.get(names.size() - 1)); }
/** {@inheritDoc} */ public boolean isReadOnly(FacesContext context) throws PropertyNotFoundException { if (context == null) { throw new NullPointerException(); } List names = parse(ref); // Resolve the variable name VariableResolver vr = application().getVariableResolver(); String name = (String) names.get(0); Object base = vr.resolveVariable(context, name); if (names.size() < 2) { return true; } // Resolve the property names PropertyResolver pr = application().getPropertyResolver(); for (int i = 1; i < names.size() - 1; i++) { base = pr.getValue(base, (String) names.get(i)); } // Return the read only state of the final property return pr.isReadOnly(base, (String) names.get(names.size() - 1)); }
@Override public Object getValue(Object base, Object property) { if (delegate != null) { return delegate.getValue(base, property); } try { FacesContext context = FacesContext.getCurrentInstance(); return context.getApplication().getELResolver().getValue(context.getELContext(), base,property); } catch (javax.el.PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(pnfe); } catch (ELException elex) { throw new EvaluationException(elex); } }
@Override public Object getValue(Object base, Object property) { if (delegate != null) { return delegate.getValue(base, property); } try { FacesContext context = FacesContext.getCurrentInstance(); return context.getApplication().getELResolver().getValue(context.getELContext(), base,property); } catch (javax.el.PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(pnfe); } catch (ELException elex) { throw new EvaluationException(elex); } }
/** {@inheritDoc} */ public Object getValue(FacesContext context) throws EvaluationException, PropertyNotFoundException { if (context == null) { throw new NullPointerException(); } List names = parse(ref); // Resolve the variable name VariableResolver vr = application().getVariableResolver(); String name = (String) names.get(0); Object base = vr.resolveVariable(context, name); if (names.size() < 2) { return (base); } // Resolve the property names PropertyResolver pr = application().getPropertyResolver(); for (int i = 1; i < names.size(); i++) { base = pr.getValue(base, (String) names.get(i)); } // Return the resolved value return (base); }
public Object getValue(ELContext context, Object base, Object property) { if (property == null) { return null; } try { context.setPropertyResolved(true); if (base == null) { return this.getVariableResolver().resolveVariable(faces, property.toString()); } else { if (base instanceof List || base.getClass().isArray()) { return this.getPropertyResolver().getValue(base, Integer.parseInt(property.toString())); } else { return this.getPropertyResolver().getValue(base, property); } } } catch (PropertyNotFoundException e) { throw new javax.el.PropertyNotFoundException(e.getMessage(), e .getCause()); } catch (EvaluationException e) { throw new ELException(e.getMessage(), e.getCause()); } }