public static int getIndexedPropertyType(OgnlContext context, Class sourceClass, String name)
            throws OgnlException {
    """
	Determines the index property type, if any. Returns <code>INDEXED_PROPERTY_NONE</code> if
	the property is not index-accessible as determined by OGNL or JavaBeans. If it is indexable
	then this will return whether it is a JavaBeans indexed property, conforming to the indexed
	property patterns (returns <code>INDEXED_PROPERTY_INT</code>) or if it conforms to the
	OGNL arbitrary object indexable (returns <code>INDEXED_PROPERTY_OBJECT</code>).
    """
        int result = INDEXED_PROPERTY_NONE;

        try {
            PropertyDescriptor pd = getPropertyDescriptor(sourceClass, name);
            if (pd != null) {
                if (pd instanceof IndexedPropertyDescriptor) {
                    result = INDEXED_PROPERTY_INT;
                } else {
                    if (pd instanceof ObjectIndexedPropertyDescriptor) {
                        result = INDEXED_PROPERTY_OBJECT;
                    }
                }
            }
        } catch (Exception ex) {
            throw new OgnlException("problem determining if '" + name + "' is an indexed property", ex);
        }
        return result;
    }
public static int getIndexedPropertyType(OgnlContext context, Class sourceClass, String name)
            throws OgnlException
    {
        int result = INDEXED_PROPERTY_NONE;

        try {
            PropertyDescriptor pd = getPropertyDescriptor(sourceClass, name);
            if (pd != null) {
                if (pd instanceof IndexedPropertyDescriptor) {
                    result = INDEXED_PROPERTY_INT;
                } else {
                    if (pd instanceof ObjectIndexedPropertyDescriptor) {
                        result = INDEXED_PROPERTY_OBJECT;
                    }
                }
            }
        } catch (Exception ex) {
            throw new OgnlException("problem determining if '" + name + "' is an indexed property", ex);
        }
        return result;
    }
public static int getIndexedPropertyType ( OgnlContext context , Class sourceClass , String name ) throws OgnlException { int result = INDEXED_PROPERTY_NONE ; try { PropertyDescriptor pd = getPropertyDescriptor ( sourceClass , name ) ; if ( pd != null ) { if ( pd instanceof IndexedPropertyDescriptor ) { result = INDEXED_PROPERTY_INT ; } else { if ( pd instanceof ObjectIndexedPropertyDescriptor ) { result = INDEXED_PROPERTY_OBJECT ; } } } } catch ( Exception ex ) { throw new OgnlException ( "problem determining if '" + name + "' is an indexed property" , ex ) ; } return result ; }
Determines the index property type, if any. Returns <code>INDEXED_PROPERTY_NONE</code> if
the property is not index-accessible as determined by OGNL or JavaBeans. If it is indexable
then this will return whether it is a JavaBeans indexed property, conforming to the indexed
property patterns (returns <code>INDEXED_PROPERTY_INT</code>) or if it conforms to the
OGNL arbitrary object indexable (returns <code>INDEXED_PROPERTY_OBJECT</code>).
Determines the index property type if any . Returns <code > INDEXED_PROPERTY_NONE< / code > if the property is not index - accessible as determined by OGNL or JavaBeans . If it is indexable then this will return whether it is a JavaBeans indexed property conforming to the indexed property patterns ( returns <code > INDEXED_PROPERTY_INT< / code > ) or if it conforms to the OGNL arbitrary object indexable ( returns <code > INDEXED_PROPERTY_OBJECT< / code > ) .