/** {@inheritDoc} */ @SuppressWarnings("unchecked") public Object getProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name) throws OgnlException { return factory.getPropertyAccessor((String) name, (T) target).getProperty( context, target, name); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public void setProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name, Object value) throws OgnlException { factory.getPropertyAccessor((String) name, (T) target).setProperty(context, target, name, value); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public String getSourceAccessor(OgnlContext context, Object target, Object index) { return factory.getPropertyAccessor((String) index, (T) target) .getSourceAccessor(context, target, index); }
Class prevType = context.getPreviousType(); Object indexVal = p.getProperty(context, target, value); context.setCurrentType(OgnlRuntime.getPrimitiveWrapperClass(context.getCurrentObject().getClass())); result = lastChild(context) ? p.getSourceSetter(context, target, srcString) : p.getSourceAccessor(context, target, srcString); result = pa.getSourceAccessor(context, context.getCurrentObject(), srcString); } else result = pa.getSourceSetter(context, context.getCurrentObject(), srcString);
Class prevType = context.getPreviousType(); Object indexVal = p.getProperty(context, target, value); context.setCurrentType(OgnlRuntime.getPrimitiveWrapperClass(context.getCurrentObject().getClass())); result = p.getSourceAccessor(context, target, srcString); _getterClass = context.getCurrentType(); context.setCurrentObject(indexVal); context.setPreviousType(prevType); result = pa.getSourceAccessor(context, context.getCurrentObject(), srcString);
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public String getSourceSetter(OgnlContext context, Object target, Object index) { return factory.getPropertyAccessor((String) index, (T) target) .getSourceSetter(context, target, index); } }
Class prevType = context.getPreviousType(); Object indexVal = p.getProperty(context, target, value); context.setCurrentType(OgnlRuntime.getPrimitiveWrapperClass(context.getCurrentObject().getClass())); result = lastChild(context) ? p.getSourceSetter(context, target, srcString) : p.getSourceAccessor(context, target, srcString); result = pa.getSourceAccessor(context, context.getCurrentObject(), srcString); } else result = pa.getSourceSetter(context, context.getCurrentObject(), srcString);
Class prevType = context.getPreviousType(); Object indexVal = p.getProperty(context, target, value); context.setCurrentType(OgnlRuntime.getPrimitiveWrapperClass(context.getCurrentObject().getClass())); result = p.getSourceAccessor(context, target, srcString); _getterClass = context.getCurrentType(); context.setCurrentObject(indexVal); context.setPreviousType(prevType); result = pa.getSourceAccessor(context, context.getCurrentObject(), srcString);
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public String getSourceSetter(OgnlContext context, Object target, Object index) { return propertyAccessor.getSourceSetter(context, nestedObjectExtractor .getNestedObject((T) target), index); } }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public Object getProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name) throws OgnlException { return propertyAccessor.getProperty(context, nestedObjectExtractor .getNestedObject((T) target), name); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public void setProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name, Object value) throws OgnlException { propertyAccessor.setProperty(context, nestedObjectExtractor .getNestedObject((T) target), name, value); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public String getSourceAccessor(OgnlContext context, Object target, Object index) { return propertyAccessor.getSourceAccessor(context, nestedObjectExtractor.getNestedObject((T) target), index); }
public Object getProperty(Map context, Object target, Object name) throws OgnlException { ObjectProxy proxy = (ObjectProxy) target; setupContext(context, proxy); return OgnlRuntime.getPropertyAccessor(proxy.getValue().getClass()).getProperty(context, target, name); }
public void setProperty(Map context, Object target, Object name, Object value) throws OgnlException { ObjectProxy proxy = (ObjectProxy) target; setupContext(context, proxy); OgnlRuntime.getPropertyAccessor(proxy.getValue().getClass()).setProperty(context, target, name, value); }
public static Object getProperty(OgnlContext context, Object source, Object name) throws OgnlException { PropertyAccessor accessor; if (source == null) { throw new OgnlException("source is null for getProperty(null, \"" + name + "\")"); } if ((accessor = getPropertyAccessor(getTargetClass(source))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(source).getName()); } return accessor.getProperty(context, source, name); }
public static void setProperty(OgnlContext context, Object target, Object name, Object value) throws OgnlException { PropertyAccessor accessor; if (target == null) { throw new OgnlException("target is null for setProperty(null, \"" + name + "\", " + value + ")"); } if ((accessor = getPropertyAccessor(getTargetClass(target))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(target).getName()); } accessor.setProperty(context, target, name, value); }
public static final Object getProperty( OgnlContext context, Object source, Object name ) throws OgnlException { PropertyAccessor accessor; if (source == null) { throw new OgnlException("source is null for getProperty(null, \"" + name + "\")"); } if ((accessor = getPropertyAccessor(getTargetClass(source))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(source).getName()); } return accessor.getProperty( context, source, name ); }
public static void setProperty(OgnlContext context, Object target, Object name, Object value) throws OgnlException { PropertyAccessor accessor; if (target == null) { throw new OgnlException("target is null for setProperty(null, \"" + name + "\", " + value + ")"); } if ((accessor = getPropertyAccessor(getTargetClass(target))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(target).getName()); } accessor.setProperty(context, target, name, value); }
public static Object getProperty(OgnlContext context, Object source, Object name) throws OgnlException { PropertyAccessor accessor; if (source == null) { throw new OgnlException("source is null for getProperty(null, \"" + name + "\")"); } if ((accessor = getPropertyAccessor(getTargetClass(source))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(source).getName()); } return accessor.getProperty(context, source, name); }
public static final void setProperty( OgnlContext context, Object target, Object name, Object value ) throws OgnlException { PropertyAccessor accessor; if (target == null) { throw new OgnlException("target is null for setProperty(null, \"" + name + "\", " + value + ")"); } if ((accessor = getPropertyAccessor(getTargetClass(target))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(target).getName()); } accessor.setProperty( context, target, name, value ); }