Map interface.
A call to Map#get(Object) invokes the getter for the corresponding
property, and a call to Map#put(Object, Object) invokes the
property's setter. Appending a "Property" suffix to the key returns the
corresponding property model.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| public static final String | |
| private static final HashMap | |
| public static final String | |
| private final BeanAdapter. | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> T | |
| public boolean | Returns: true if the property exists; false, otherwise.The property name. key)Overrides java. Implements java. Verifies the existence of a property. |
| public Set | entrySet()
Implements abstract java. Implements java. Returns a |
| public boolean | equals(Object
object to be compared for equality with this map object)Overrides java. Implements java. Compares the specified object with this map for equality. |
| public Object | Returns: The value returned by the method, or null if no such method exists.The property name. key)Overrides java. Implements java. Invokes the getter method for the given property. |
| private Object | |
| public static <T> T | |
| public Object | Returns: The Bean object, or null if no Bean has been set.Returns the Bean object this adapter wraps. |
| private static BeanAdapter. | |
| public static Object | getConstantValue(Class<?>
The type that defines the constant. type, String The name of the constant. name)Returns the value of a named constant. |
| public static Type | |
| public static Type | |
| public Type | |
| public static Type | getGenericType(Class<?>
The class that defines the property. sourceType, String The property name. key, Class<?> The type of the object to which the property applies. targetType)Returns the generic type of a static property. |
| private Method | |
| public static Class | |
| public static Class | |
| private static String | |
| public <T> ObservableValue | Returns: The named property model, or null if no such property exists.The property name. key)Returns the property model for the given property. |
| private Method | |
| private static Method | |
| private static Method | |
| public Class | |
| public static Class | |
| public int | hashCode()
Overrides java. Implements java. Returns the hash code value for this map. |
| public static boolean | |
| public boolean | Returns: true if the property is read-only; false, otherwise.The property name. key)Tests the mutability of a property. |
| public Object | Returns: Returns null, since returning the previous value would require an unnecessary call to the getter method.The property name. key, Object The new property value. value)Overrides java. Implements java. Invokes a setter method for the given property. |
| public static void | |
| private static String |
| bean | back to summary |
|---|---|
| private final Object bean | |
| GET_PREFIX | back to summary |
|---|---|
| public static final String GET_PREFIX | |
| globalMethodCache | back to summary |
|---|---|
| private static final HashMap<Class<?>, BeanAdapter. | |
| IS_PREFIX | back to summary |
|---|---|
| public static final String IS_PREFIX | |
| localCache | back to summary |
|---|---|
| private final BeanAdapter. | |
| PROPERTY_SUFFIX | back to summary |
|---|---|
| public static final String PROPERTY_SUFFIX | |
| SET_PREFIX | back to summary |
|---|---|
| public static final String SET_PREFIX | |
| VALUE_OF_METHOD_NAME | back to summary |
|---|---|
| public static final String VALUE_OF_METHOD_NAME | |
| BeanAdapter | back to summary |
|---|---|
| public BeanAdapter(Object bean) Creates a new Bean adapter.
| |
| coerce | back to summary |
|---|---|
| public static <T> T coerce(Object value, Class<? extends T> type) Coerces a value to a given type.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Overrides java. Implements java. Verifies the existence of a property. | |
| entrySet | back to summary |
|---|---|
| public Set Implements abstract java. Implements java. Doc from java. Returns a | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Implements java. Doc from java. Compares the specified object with this map for equality. Returns
| |
| get | back to summary |
|---|---|
| public Object get(Object key) Overrides java. Implements java. Invokes the getter method for the given property. | |
| get | back to summary |
|---|---|
| private Object get(String key) | |
| get | back to summary |
|---|---|
| public static <T> T get(Object target, Class<?> sourceType, String key) Invokes the static getter method for the given property.
| |
| getBean | back to summary |
|---|---|
| public Object getBean() Returns the Bean object this adapter wraps.
| |
| getClassMethodCache | back to summary |
|---|---|
| private static BeanAdapter. | |
| getConstantValue | back to summary |
|---|---|
| public static Object getConstantValue(Class<?> type, String name) Returns the value of a named constant. | |
| getGenericListItemType | back to summary |
|---|---|
| public static Type getGenericListItemType(Type listType) Determines the type of a list item. | |
| getGenericMapValueType | back to summary |
|---|---|
| public static Type getGenericMapValueType(Type mapType) Determines the type of a map value. | |
| getGenericType | back to summary |
|---|---|
| public Type getGenericType(String key) Returns the generic type of a property.
| |
| getGenericType | back to summary |
|---|---|
| public static Type getGenericType(Class<?> sourceType, String key, Class<?> targetType) Returns the generic type of a static property. | |
| getGetterMethod | back to summary |
|---|---|
| private Method getGetterMethod(String key) | |
| getListItemType | back to summary |
|---|---|
| public static Class Determines the type of a list item. | |
| getMapValueType | back to summary |
|---|---|
| public static Class Determines the type of a map value. | |
| getMethodName | back to summary |
|---|---|
| private static String getMethodName(String prefix, String key) | |
| getPropertyModel | back to summary |
|---|---|
| public <T> ObservableValue Returns the property model for the given property.
| |
| getSetterMethod | back to summary |
|---|---|
| private Method getSetterMethod(String key) | |
| getStaticGetterMethod | back to summary |
|---|---|
| private static Method getStaticGetterMethod(Class<?> sourceType, String key, Class<?> targetType) | |
| getStaticSetterMethod | back to summary |
|---|---|
| private static Method getStaticSetterMethod(Class<?> sourceType, String key, Class<?> valueType, Class<?> targetType) | |
| getType | back to summary |
|---|---|
| public Class Returns the type of a property.
| |
| getType | back to summary |
|---|---|
| public static Class Returns the type of a static property. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this map. The hash code of a map is
defined to be the sum of the hash codes of each entry in the map's
| |
| isDefined | back to summary |
|---|---|
| public static boolean isDefined(Class<?> sourceType, String key, Class<?> targetType) Tests the existence of a static property. | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly(String key) Tests the mutability of a property.
| |
| put | back to summary |
|---|---|
| public Object put(String key, Object value) Overrides java. Implements java. Invokes a setter method for the given property. The
| |
| put | back to summary |
|---|---|
| public static void put(Object target, Class<?> sourceType, String key, Object value) Invokes a static setter method for the given property. If the value is
null or there is no explicit setter for a given type, the
| |
| toAllCaps | back to summary |
|---|---|
| private static String toAllCaps(String value) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final BeanAdapter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Method |
| methods | back to summary |
|---|---|
| private final Map<String, List<Method>> methods | |
| nextClassCache | back to summary |
|---|---|
| private final BeanAdapter. | |
| MethodCache | back to summary |
|---|---|
| private MethodCache(Map<String, List<Method>> methods, BeanAdapter. | |
| getMethod | back to summary |
|---|---|
| private Method getMethod(String name, Class<?>... parameterTypes) | |