public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { // cannot access flow execution by index so we cannot determine type; return null per JSF spec return null; } else { return resolverDelegate.getType(base, index); } }
public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException { if(base instanceof SecurityContext) return SecurityContext.class; else return originalResolver.getType(base, property); }
public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException { return originalResolver_.getType(base, property); }
public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException { return originalResolver_.getType(base, index); }
public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException { return nested.getType(base, index); }
public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException { return originalResolver.getType(base, index); }
public Class getType(Object base, int index) { return nested.getType(base, index); }
public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException { if (base instanceof ResultSet) { if (CURRENT_ROW_KEY.equals(property)) { return RowData.class; } if (SELECT_ITEMS_KEY.equals(property)) { return ColumnData.class; } } else if (base instanceof RowData) { return ((RowData)base).getDataType(property.toString()); } else if (base instanceof ColumnData) { return ArrayList.class; } return nested.getType(base, property); }
public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { FlowExecution execution = (FlowExecution) base; assertPropertyNameValid(property); return doGetAttributeType(execution, (String) property); } else { return resolverDelegate.getType(base, property); } }
public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException { Class type = elContext.getELResolver().getType(elContext, base, new Integer(index)); if (elContext.isPropertyResolved()) { return type; } else { return nextResolver.getType(base, index); } }
/** * <p>Convert an index into a corresponding string, and delegate.</p> * * @param base Base object from which to return a property type * @param index Index whose type is to be returned * * @exception EvaluationException if an evaluation error occurs * @exception PropertyNotFoundException if there is no such named * object in this context */ public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException { if (base instanceof Context) { return getType(base, "" + index); } else if (base instanceof LoadBundle) { return getType(base, "" + index); } else { return original.getType(base, index); } }
public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException { Class type = elContext.getELResolver().getType(elContext, base, property); if (elContext.isPropertyResolved()) { return type; } else { return nextResolver.getType(base, property); } }
/** {@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)); }
public Class getType(ELContext context, Object base, Object property) { if (property == null) { return null; } try { context.setPropertyResolved(true); if (base == null) { Object obj = this.getVariableResolver().resolveVariable( faces, property.toString()); return (obj != null) ? obj.getClass() : null; } else { if (base instanceof List || base.getClass().isArray()) { return this.getPropertyResolver().getType(base, Integer.parseInt(property.toString())); } else { return this.getPropertyResolver().getType(base, property); } } } catch (PropertyNotFoundException e) { throw new javax.el.PropertyNotFoundException(e.getMessage(), e .getCause()); } catch (EvaluationException e) { throw new ELException(e.getMessage(), e.getCause()); } }
public Class getType(Object base, Object property) { assertInput(base, property); if (delegate != null) { return delegate.getType(base, property); } try { FacesContext context = FacesContext.getCurrentInstance(); return context.getApplication().getELResolver().getType(context.getELContext(), base,property); } catch (javax.el.PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(pnfe); } catch (ELException elex) { throw new EvaluationException(elex); } }
public Class getType(Object base, Object property) { assertInput(base, property); if (delegate != null) { return delegate.getType(base, property); } try { FacesContext context = FacesContext.getCurrentInstance(); return context.getApplication().getELResolver().getType(context.getELContext(), base,property); } catch (javax.el.PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(pnfe); } catch (ELException elex) { throw new EvaluationException(elex); } }
@Override public Class getType(Object base, Object property) { assertInput(base, property); if (delegate != null) { return delegate.getType(base, property); } try { FacesContext context = FacesContext.getCurrentInstance(); return context.getApplication().getELResolver().getType(context.getELContext(), base,property); } catch (javax.el.PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(pnfe); } catch (ELException elex) { throw new EvaluationException(elex); } }
@Override public Class getType(Object base, Object property) { assertInput(base, property); if (delegate != null) { return delegate.getType(base, property); } try { FacesContext context = FacesContext.getCurrentInstance(); return context.getApplication().getELResolver().getType(context.getELContext(), base,property); } catch (javax.el.PropertyNotFoundException pnfe) { throw new PropertyNotFoundException(pnfe); } catch (ELException elex) { throw new EvaluationException(elex); } }