public interface IProperty extends Serializable
IPropertySource
as a parameter MUST return with this parameter in the same state as
when entering the method.Modifier and Type | Method and Description |
---|---|
Object |
get(IPropertySource source)
Introspects source to retrieve property value.
|
Object |
get(IPropertySource source,
boolean instanciateAll)
Introspects source to retrieve property value.
|
Class<?> |
getGenericCollectionType(IPropertySource source)
Tries to detect if the generic type of the property if the type is a Collection, knowing the argument type to use.
|
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(IPropertySource source)
Tries to detect if the generic key type of the property if the type is a Map, knowing the argument type to use.
|
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(IPropertySource source)
Tries to detect if the generic value type of the property if the type is a Map, knowing the argument type to use.
|
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(IPropertySource source)
Tries to detect if the parameterized types of the property, whatever its type is, knowing the argument type to use.
|
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(IPropertySource source)
Tries to detect if the type of the property, knowing the argument type to use.
|
Class<?> |
getType(Object source)
Tries to detect if the type of the property, whatever there is an argument or not.
|
boolean |
isReadable(IPropertySource source)
Tries to detect if the property will be able to be read in theory, knowing the argument type to use.
|
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(IPropertySource target)
Tries to detect if the property will be able to be written in theory, knowing the argument type to use.
|
boolean |
isWriteable(Object target)
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)
Introspects target to set property value.
|
Object |
set(IPropertySource target,
Object obj,
boolean instanciateNested)
Introspects target to set property value.
|
Object get(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
Object get(IPropertySource source, boolean instanciateAll) throws UtilsException
source
- Source context to introspect.instanciateAll
- whether to try or not to instantiate null nested properties values.UtilsException
Object set(IPropertySource target, Object obj) throws UtilsException
target
- Source context to introspect.obj
- Value to setUtilsException
Object set(IPropertySource target, Object obj, boolean instanciateNested) throws UtilsException
target
- Source context to introspect.obj
- Value to setinstanciateNested
- whether to try or not to instantiate null nested properties values.UtilsException
boolean isReadable(Object source) throws UtilsException
source
- Source class to introspect.UtilsException
boolean isReadable(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
boolean isWriteable(Object target) throws UtilsException
target
- Source class to introspect.UtilsException
boolean isWriteable(IPropertySource target) throws UtilsException
target
- Source context to introspect.UtilsException
Class<?> getType(Object source) throws UtilsException
source
- Source context to introspect.UtilsException
Class<?> getType(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
Class<?> getGenericCollectionType(Object source) throws UtilsException
source
- Source context to introspect.UtilsException
Class<?> getGenericCollectionType(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
Class<?>[] getGenericTypes(Object source) throws UtilsException
source
- Source context to introspect.UtilsException
Class<?>[] getGenericTypes(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
Class<?> getGenericMapKeyType(Object source) throws UtilsException
source
- Source context to introspect.UtilsException
Class<?> getGenericMapKeyType(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
Class<?> getGenericMapValueType(Object source) throws UtilsException
source
- Source context to introspect.UtilsException
Class<?> getGenericMapValueType(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException