@SuppressWarnings ( "unchecked" ) public static <T> T idxGeneric( Class<T> t, Object object, final String path ) { String[] properties = propertyPathAsStringArray(path); return ( T ) getPropertyValue(object, properties); }
/** * Get property value * * @param object object * @param path in dotted notation * @return value at index */ public static Object atIndex(Object object, String path) { String[] properties = propertyPathAsStringArray(path); return getPropertyValue( object, properties ); }
/** * Set property value to simulate dependency injection. * * @param object object * @param path in dotted notation * @param value value */ public static void injectIntoProperty( Object object, String path, Object value ) { String[] properties = propertyPathAsStringArray(path); setPropertyValue( object, value, properties ); }
/** * Set a static value * * @param cls class * @param path in dotted notation * @param value value */ public static void idx( Class<?> cls, String path, Object value ) { String[] properties = propertyPathAsStringArray(path); setPropertyValue( cls, value, properties ); }
/** * Get property value * * @param object object * @param path in dotted notation * @return value at index */ public static Object atIndex(Object object, String path) { String[] properties = propertyPathAsStringArray(path); return getPropertyValue( object, properties ); }
/** * Get property value * * @param object object * @param path in dotted notation * @return int */ public static int idxInt( Object object, String path ) { String[] properties = propertyPathAsStringArray(path); return getPropertyInt( object, properties ); }
public static Class idxType( Object object, String path ) { String[] properties = propertyPathAsStringArray(path); return getPropertyPathType(object, properties); }
public static List idxList( Object items, String path ) { String[] properties = propertyPathAsStringArray(path); return ( List ) getPropByPath( items, properties ); }
public static List idxRecurse( Object items, String path ) { String[] properties = propertyPathAsStringArray(path); return ( List ) getPropByPath( items, properties ); }
public static FieldAccess idxField( Object object, String path ) { String[] properties = propertyPathAsStringArray(path); return getPropertyPathField(object, properties); }
public static boolean idxBoolean( Object object, String path ) { String[] properties = propertyPathAsStringArray(path); return getPropertyBoolean( object, properties ); }
/** * Get property value * * @param object object * @param path in dotted notation * @return value */ public static Object idx( Object object, String path ) { String[] properties = propertyPathAsStringArray(path); return getPropertyValue(object, properties); }
/** * Set property value * * @param object object * @param path in dotted notation * @param value value */ public static void idx( Object object, String path, Object value ) { String[] properties = propertyPathAsStringArray(path); setPropertyValue( object, value, properties ); }
/** * Get property value * * @param object object * @param path in dotted notation * @return value */ public static Object idx( Object object, String path ) { String[] properties = propertyPathAsStringArray(path); return getPropertyValue(object, properties); }
/** * Set property value * * @param object object * @param path in dotted notation * @param value value */ public static void idx( Object object, String path, Object value ) { String[] properties = propertyPathAsStringArray(path); setPropertyValue( object, value, properties ); }
@SuppressWarnings ( "unchecked" ) public static <T> T idxGeneric( Class<T> t, Object object, final String path ) { String[] properties = propertyPathAsStringArray(path); return ( T ) getPropertyValue(object, properties); }
/** * Set property value to simulate dependency injection. * * @param object object * @param path in dotted notation * @param value value */ public static void injectIntoProperty( Object object, String path, Object value ) { String[] properties = propertyPathAsStringArray(path); setPropertyValue( object, value, properties ); }
/** * Set a static value * * @param cls class * @param path in dotted notation * @param value value */ public static void idx( Class<?> cls, String path, Object value ) { String[] properties = propertyPathAsStringArray(path); setPropertyValue( cls, value, properties ); }
/** * Get property value * * @param object object * @param path in dotted notation * @return int */ public static int idxInt( Object object, String path ) { String[] properties = propertyPathAsStringArray(path); return getPropertyInt( object, properties ); }
public static byte idxByte( Object object, String path ) { String[] properties = propertyPathAsStringArray(path); return getPropertyByte( object, properties ); }