public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, ELException { if (context == null) { throw new NullPointerException("The ELContext is null."); } if (base instanceof MapAdaptable) { context.setPropertyResolved(true); return adapt(base).get(property); } return null; }
public void setUp() { context = new DefaultELContext(new MapAdaptableELResolver(), null, null); }
private void configureResolvers(List customResolvers) { if (customResolvers != null) { Iterator i = customResolvers.iterator(); while (i.hasNext()) { ELResolver resolver = (ELResolver) i.next(); add(resolver); } } add(new MapAdaptableELResolver()); add(new ArrayELResolver()); add(new ListELResolver()); add(new MapELResolver()); add(new ResourceBundleELResolver()); add(new BeanELResolver()); }
public FlowELResolver() { add(new RequestContextELResolver()); add(new ImplicitFlowVariableELResolver()); add(new FlowResourceELResolver()); add(new ScopeSearchingELResolver()); add(new MapAdaptableELResolver()); add(new SpringBeanWebFlowELResolver()); }
public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException("The ELContext is null."); } if (base instanceof MapAdaptable) { context.setPropertyResolved(true); return adapt(base).get(property); } return null; }
public FlowELResolver() { add(new RequestContextELResolver()); add(new ImplicitFlowVariableELResolver()); add(new FlowResourceELResolver()); add(new ScopeSearchingELResolver()); add(new MapAdaptableELResolver()); add(new SpringBeanWebFlowELResolver()); }
public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, ELException { if (context == null) { throw new NullPointerException("The ELContext is null."); } if (base instanceof MapAdaptable) { context.setPropertyResolved(true); return adapt(base).get(property); } return null; }
private void configureResolvers(List<? extends ELResolver> customResolvers) { if (customResolvers != null) { for (ELResolver resolver : customResolvers) { add(resolver); } } add(new MapAdaptableELResolver()); add(new ArrayELResolver()); add(new ListELResolver()); add(new MapELResolver()); add(new ResourceBundleELResolver()); add(new BeanELResolver()); }
public Class<?> getType(ELContext context, Object base, Object property) throws NullPointerException, ELException { if (context == null) { throw new NullPointerException("The ELContext is null."); } if (base instanceof MapAdaptable) { context.setPropertyResolved(true); Object obj = adapt(base).get(property); return (obj != null) ? obj.getClass() : null; } return null; }
private void configureResolvers(List<? extends ELResolver> customResolvers) { if (customResolvers != null) { for (ELResolver resolver : customResolvers) { add(resolver); } } add(new MapAdaptableELResolver()); add(new ArrayELResolver()); add(new ListELResolver()); add(new MapELResolver()); add(new ResourceBundleELResolver()); add(new BeanELResolver()); }
public Class<?> getType(ELContext context, Object base, Object property) throws NullPointerException, ELException { if (context == null) { throw new NullPointerException("The ELContext is null."); } if (base instanceof MapAdaptable) { context.setPropertyResolved(true); Object obj = adapt(base).get(property); return (obj != null) ? obj.getClass() : null; } return null; }
public Class getType(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException("The ELContext is null."); } if (base instanceof MapAdaptable) { context.setPropertyResolved(true); Object obj = adapt(base).get(property); return (obj != null) ? obj.getClass() : null; } return null; }
public void setValue(ELContext context, Object base, Object property, Object value) throws NullPointerException, ELException { if (context == null) { throw new NullPointerException("The ELContext is null."); } if (base instanceof MapAdaptable) { context.setPropertyResolved(true); try { adapt(base).put(property, value); } catch (UnsupportedOperationException e) { throw new PropertyNotWritableException(e); } } }
public void setValue(ELContext context, Object base, Object property, Object value) throws NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException { if (context == null) { throw new NullPointerException("The ELContext is null."); } if (base instanceof MapAdaptable) { context.setPropertyResolved(true); try { adapt(base).put(property, value); } catch (UnsupportedOperationException e) { throw new PropertyNotWritableException(e); } } }
public void setValue(ELContext context, Object base, Object property, Object value) throws NullPointerException, ELException { if (context == null) { throw new NullPointerException("The ELContext is null."); } if (base instanceof MapAdaptable) { context.setPropertyResolved(true); try { adapt(base).put(property, value); } catch (UnsupportedOperationException e) { throw new PropertyNotWritableException(e); } } }