public abstract class AbstractReflectProperty extends Object implements ReflectProperty
| Constructor and Description |
|---|
AbstractReflectProperty() |
| Modifier and Type | Method and Description |
|---|---|
ReflectPropertyDefaultValueStrategy |
getDefaultValueStrategy() |
String |
getName() |
Type |
getPropertyType() |
ReflectType |
getType() |
protected void |
init(String name,
ReflectType type,
Object cleanInstance,
Type propertyType,
ReflectPropertyDefaultValueStrategy defaultValueStrategy) |
boolean |
isDefaultValue(Object o)
equivalent to
isDefaultValue(value,null) |
boolean |
isDefaultValue(Object value,
ReflectPropertyDefaultValueStrategy strategy)
true when the given value is the default value according to the given strategy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRead, isWrite, read, writeprotected final void init(String name, ReflectType type, Object cleanInstance, Type propertyType, ReflectPropertyDefaultValueStrategy defaultValueStrategy)
public String getName()
getName in interface ReflectPropertypublic ReflectType getType()
getType in interface ReflectPropertypublic Type getPropertyType()
getPropertyType in interface ReflectPropertypublic ReflectPropertyDefaultValueStrategy getDefaultValueStrategy()
getDefaultValueStrategy in interface ReflectPropertypublic boolean isDefaultValue(Object value, ReflectPropertyDefaultValueStrategy strategy)
ReflectPropertygetDefaultValueStrategy()int x=3; // 3 is the default<code>)isDefaultValue in interface ReflectPropertyvalue - to checkstrategy - default strategypublic boolean isDefaultValue(Object o)
ReflectPropertyisDefaultValue(value,null)isDefaultValue in interface ReflectPropertyo - to checkCopyright © 2021 vpc open source initiative. All rights reserved.