public class ConstantProperty<C> extends AbstractProperty
Constructor and Description |
---|
ConstantProperty(C value,
Class<C> type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
C |
get(IPropertySource source,
boolean instantiateAll)
Introspects source to retrieve property value.
|
Class<?> |
getGenericCollectionType(IPropertySource source)
Always null.
|
Class<?> |
getGenericMapKeyType(IPropertySource source)
Always null.
|
Class<?> |
getGenericMapValueType(IPropertySource source)
Always null.
|
Class<?>[] |
getGenericTypes(IPropertySource source)
Always null.
|
Class<C> |
getType(IPropertySource source)
Always "String.class"
|
C |
getValue() |
int |
hashCode() |
boolean |
isReadable(IPropertySource source)
Always true
|
boolean |
isWriteable(IPropertySource target)
Always false
|
Object |
set(IPropertySource target,
Object obj,
boolean instanciateNested)
Unsupported.S
|
String |
toString() |
get, getGenericCollectionType, getGenericMapKeyType, getGenericMapValueType, getGenericTypes, getType, isReadable, isWriteable, set
public C get(IPropertySource source, boolean instantiateAll)
IProperty
source
- Source context to introspect.instantiateAll
- whether to try or not to instantiate null nested properties values.public 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
public Class<C> getType(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
public Class<?> getGenericCollectionType(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
public Class<?>[] getGenericTypes(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
public Class<?> getGenericMapKeyType(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
public Class<?> getGenericMapValueType(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
public boolean isReadable(IPropertySource source) throws UtilsException
source
- Source context to introspect.UtilsException
public boolean isWriteable(IPropertySource target) throws UtilsException
target
- Source context to introspect.UtilsException
public C getValue()