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 boolean isReadOnly(Object base, int index) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { return false; } else { return resolverDelegate.isReadOnly(base, index); } }
public void setValue(Object base, int index, Object value) { nested.setValue(base, index, value); //!CQ TODO: indexed properties }
/** {@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)); }
public void setValue(Object base, int index, Object value) throws EvaluationException, PropertyNotFoundException { nested.setValue(base, index, value); }
/** {@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)); }
@Override public Boolean invoke(Object base, Object property) { if (needsCoersion(base)) { return propertyResolver.isReadOnly(base, coerceToInt(property)); } return propertyResolver.isReadOnly(base, property); }
public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException { if(base instanceof SecurityContext) return SecurityContext.class; else return originalResolver.getType(base, property); }
public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException { return originalResolver_.getValue(base, index); }
/** {@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 void setValue(Object base, int index, Object value) throws EvaluationException, PropertyNotFoundException { originalResolver.setValue(base, index, value); }
public boolean isReadOnly(Object base, Object property) throws EvaluationException, PropertyNotFoundException { if (base instanceof FlowExecution) { return false; } else { return resolverDelegate.isReadOnly(base, property); } }
public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException { return originalResolver_.getType(base, property); }
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 void setValue(Object base, Object property, Object value) throws EvaluationException, PropertyNotFoundException { originalResolver.setValue(base, property, value); }
public boolean isReadOnly(Object base, Object property) throws EvaluationException, PropertyNotFoundException { if(base instanceof SecurityContext) return true; else return originalResolver.isReadOnly(base, property); }