public abstract class AbstractProperty extends Object implements IProperty
Constructor and Description |
---|
AbstractProperty() |
Modifier and Type | Method and Description |
---|---|
Object |
get(IPropertySource target)
Simply calls
IProperty.get(IPropertySource, boolean) with no instantiation of nested properties (i.e. value "false" for the boolean parameter). |
Class<?> |
getGenericCollectionType(Object source)
Tries to detect if the generic type of the property if the type is a Collection, whatever there is an argument or not.
|
Class<?> |
getGenericMapKeyType(Object source)
Tries to detect if the generic key type of the property if the type is a Map, whatever there is an argument or not.
|
Class<?> |
getGenericMapValueType(Object source)
Tries to detect if the generic value type of the property if the type is a Map, whatever there is an argument or not.
|
Class<?>[] |
getGenericTypes(Object source)
Tries to detect if the parameterized types of the property, whatever its type is, whatever there is an argument or not.
|
Class<?> |
getType(Object source)
Tries to detect if the type of the property, whatever there is an argument or not.
|
boolean |
isReadable(Object source)
Tries to detect if the property will be able to be read in theory, whatever there is an argument or not.
|
boolean |
isWriteable(Object source)
Tries to detect if the property will be able to be written in theory, whatever there is an argument or not.
|
Object |
set(IPropertySource target,
Object obj)
Simply calls
IProperty.get(IPropertySource, boolean) with instantiation of nested properties (i.e. value "true" for the boolean parameter). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, getGenericCollectionType, getGenericMapKeyType, getGenericMapValueType, getGenericTypes, getType, isReadable, isWriteable, set
public Object get(IPropertySource target) throws UtilsException
IProperty.get(IPropertySource, boolean)
with no instantiation of nested properties (i.e. value "false" for the boolean parameter).get
in interface IProperty
target
- Source context to introspect.UtilsException
public Object set(IPropertySource target, Object obj) throws UtilsException
IProperty.get(IPropertySource, boolean)
with instantiation of nested properties (i.e. value "true" for the boolean parameter).set
in interface IProperty
target
- Source context to introspect.obj
- Value to setUtilsException
public boolean isReadable(Object source) throws UtilsException
IProperty
isReadable
in interface IProperty
source
- Source class to introspect.UtilsException
public boolean isWriteable(Object source) throws UtilsException
IProperty
isWriteable
in interface IProperty
source
- Source class to introspect.UtilsException
public Class<?> getType(Object source) throws UtilsException
IProperty
getType
in interface IProperty
source
- Source context to introspect.UtilsException
public Class<?>[] getGenericTypes(Object source) throws UtilsException
IProperty
getGenericTypes
in interface IProperty
source
- Source context to introspect.UtilsException
public Class<?> getGenericCollectionType(Object source) throws UtilsException
IProperty
getGenericCollectionType
in interface IProperty
source
- Source context to introspect.UtilsException
public Class<?> getGenericMapKeyType(Object source) throws UtilsException
IProperty
getGenericMapKeyType
in interface IProperty
source
- Source context to introspect.UtilsException
public Class<?> getGenericMapValueType(Object source) throws UtilsException
IProperty
getGenericMapValueType
in interface IProperty
source
- Source context to introspect.UtilsException