@Override public Object getValue(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base instanceof List<?>) { context.setPropertyResolved(base, property); List<?> list = (List<?>) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } return list.get(idx); } return null; }
@Override public Object getValue(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base instanceof List<?>) { context.setPropertyResolved(base, property); List<?> list = (List<?>) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } return list.get(idx); } return null; }
public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } return list.get(idx); } return null; }
public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } return list.get(idx); } return null; }
@Override public Object getValue(ELContext context, Object base, Object property) { if (context == null) { throw new NullPointerException(); } if (base instanceof List<?>) { context.setPropertyResolved(base, property); List<?> list = (List<?>) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } return list.get(idx); } return null; }
public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } return list.get(idx); } return null; }
@Override public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List<?>) { context.setPropertyResolved(true); List<?> list = (List<?>) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } return list.get(idx); } return null; }
public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } return list.get(idx); } return null; }
public Class<?> getType(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } Object obj = list.get(idx); 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(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { return null; } Object obj = list.get(idx); return (obj != null) ? obj.getClass() : null; } return null; }
public boolean isReadOnly(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); checkBounds(list, idx); return this.readOnly || UNMODIFIABLE.equals(list.getClass()); } return this.readOnly; }
public Class<?> getType(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); checkBounds(list, idx); Object obj = list.get(idx); return (obj != null) ? obj.getClass() : null; } return null; }
public boolean isReadOnly(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); checkBounds(list, idx); return this.readOnly || UNMODIFIABLE.equals(list.getClass()); } return this.readOnly; }
public Class<?> getType(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); checkBounds(list, idx); Object obj = list.get(idx); return (obj != null) ? obj.getClass() : null; } return null; }
@Override public Class<?> getType(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base instanceof List<?>) { context.setPropertyResolved(base, property); List<?> list = (List<?>) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { throw new PropertyNotFoundException( new ArrayIndexOutOfBoundsException(idx).getMessage()); } return Object.class; } return null; }
@Override public Class<?> getType(ELContext context, Object base, Object property) { Objects.requireNonNull(context); if (base instanceof List<?>) { context.setPropertyResolved(base, property); List<?> list = (List<?>) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { throw new PropertyNotFoundException( new ArrayIndexOutOfBoundsException(idx).getMessage()); } return Object.class; } return null; }
public boolean isReadOnly(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { throw new PropertyNotFoundException( new ArrayIndexOutOfBoundsException(idx).getMessage()); } return this.readOnly || UNMODIFIABLE.equals(list.getClass()); } return this.readOnly; }
public boolean isReadOnly(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List) { context.setPropertyResolved(true); List list = (List) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { throw new PropertyNotFoundException( new ArrayIndexOutOfBoundsException(idx).getMessage()); } return this.readOnly || UNMODIFIABLE.equals(list.getClass()); } return this.readOnly; }
@Override public Class<?> getType(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { if (context == null) { throw new NullPointerException(); } if (base instanceof List<?>) { context.setPropertyResolved(true); List<?> list = (List<?>) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { throw new PropertyNotFoundException( new ArrayIndexOutOfBoundsException(idx).getMessage()); } Object obj = list.get(idx); return (obj != null) ? obj.getClass() : null; } return null; }
@Override public Class<?> getType(ELContext context, Object base, Object property) { if (context == null) { throw new NullPointerException(); } if (base instanceof List<?>) { context.setPropertyResolved(base, property); List<?> list = (List<?>) base; int idx = coerce(property); if (idx < 0 || idx >= list.size()) { throw new PropertyNotFoundException( new ArrayIndexOutOfBoundsException(idx).getMessage()); } return Object.class; } return null; }