public class DefaultPropertyConfig extends java.lang.Object implements PropertyConfig
PropertyConfig implementation.| Modifier | Constructor and Description |
|---|---|
protected |
DefaultPropertyConfig(DefaultPropertyConfig config) |
|
DefaultPropertyConfig(java.lang.String id,
java.lang.reflect.Method read,
java.lang.reflect.Method write) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.reflect.Method |
getInterceptMethod(PropertyInterceptor interceptor)
Find the declared (non-bridged) 'intercept' method.
|
java.lang.String |
getName()
Returns the name of this property.
|
PropertyInterceptor |
getReadInterceptor()
Returns a
PropertyInterceptor which gets applied for the read value of this property. |
java.lang.reflect.Method |
getReadMethod()
Returns the read method for that property.
|
java.lang.Class |
getReadType()
Returns the read-value type.
|
PropertyInterceptor |
getWriteInterceptor()
Returns a
PropertyInterceptor which gets applied for the write value of this property. |
java.lang.reflect.Method |
getWriteMethod()
Returns the write method for that property.
|
java.lang.Class |
getWriteType()
Returns the write-value type
Type is either return type of write-method or if an interceptor is assigned the return type of
PropertyInterceptor.intercept(PropertyContext, Object) |
boolean |
isReadTypeCheckEnabled()
True (default) when enabling type check which assures during build-time of graph, that this read-type can be
assigned to a target property write type (not this property write type)
Example: read-type: NUMBER; target write-type INTEGER:
With enabled type check (default) this property will skipped and not processed during graph processing. |
boolean |
isWriteTypeCheckEnabled()
True (default) when checking whether write-type is assignable from a source read-type.
|
protected void |
mergeWith(PropertyConfig pCfg) |
void |
setName(java.lang.String name) |
void |
setReadInterceptor(PropertyInterceptor interceptor)
Sets a
PropertyInterceptor which gets assigned to read-method of this property. |
protected void |
setReadMethod(java.lang.reflect.Method readMethod) |
void |
setWriteInterceptor(PropertyInterceptor interceptor)
Sets a
PropertyInterceptor which gets assigned to write-method of this property. |
protected void |
setWriteMethod(java.lang.reflect.Method writeMethod) |
java.lang.String |
toString() |
public DefaultPropertyConfig(java.lang.String id,
java.lang.reflect.Method read,
java.lang.reflect.Method write)
protected DefaultPropertyConfig(DefaultPropertyConfig config)
public java.lang.String getName()
PropertyConfiggetName in interface PropertyConfigpublic void setName(java.lang.String name)
public java.lang.reflect.Method getReadMethod()
PropertyConfiggetReadMethod in interface PropertyConfigprotected void setReadMethod(java.lang.reflect.Method readMethod)
public java.lang.reflect.Method getWriteMethod()
PropertyConfiggetWriteMethod in interface PropertyConfigprotected void setWriteMethod(java.lang.reflect.Method writeMethod)
public PropertyInterceptor getReadInterceptor()
PropertyConfigPropertyInterceptor which gets applied for the read value of this property.getReadInterceptor in interface PropertyConfigPropertyInterceptorpublic void setReadInterceptor(PropertyInterceptor interceptor)
PropertyInterceptor which gets assigned to read-method of this property.interceptor - the interceptor to setpublic PropertyInterceptor getWriteInterceptor()
PropertyConfigPropertyInterceptor which gets applied for the write value of this property.getWriteInterceptor in interface PropertyConfigPropertyInterceptorpublic void setWriteInterceptor(PropertyInterceptor interceptor)
PropertyInterceptor which gets assigned to write-method of this property.interceptor - public boolean isReadTypeCheckEnabled()
PropertyConfigisReadTypeCheckEnabled in interface PropertyConfigpublic boolean isWriteTypeCheckEnabled()
PropertyConfigisWriteTypeCheckEnabled in interface PropertyConfigpublic java.lang.Class getReadType()
PropertyConfigPropertyInterceptor.intercept(PropertyContext, Object)getReadType in interface PropertyConfigpublic java.lang.Class getWriteType()
PropertyConfigPropertyInterceptor.intercept(PropertyContext, Object)getWriteType in interface PropertyConfigprotected java.lang.reflect.Method getInterceptMethod(PropertyInterceptor interceptor)
interceptor - protected void mergeWith(PropertyConfig pCfg)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.