|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.adapter.attribute.BasicAttributeDelegate
Holds convenience methods commonly used by concrete AttributeDelegate
classes.
Provides a default implementation of the getObjectAttributeValueString()
method using the wt.enterprise.ObjectPropertyValue class.
Supported API: false
Extendable: false
ObjectPropertyValue
,
Serialized FormField Summary | |
protected static ObjectPropertyValue |
adapterProcessor
|
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
BasicAttributeDelegate()
|
Method Summary | |
static Object |
getAttributeValue(Object obj,
String attributeName)
|
String |
getObjectAttributeValueString(Object object,
String attribute_name,
Locale locale,
Properties properties)
Provide a default implementation to return the String value for the specified attribute on the object. |
protected PropertyDescriptor |
getPropertyDescriptor(Object object,
String attribute_name)
Return a PropertyDescriptor for the specified attribute for a class. |
private static Method |
getReadMethod(Class c,
String attributeName)
|
protected Object |
invokeGetterMethod(Object object,
PropertyDescriptor pd)
Use the PropertyDescriptor to invoke the appropriate getter method on the object. |
protected void |
invokeSetterMethod(Object object,
PropertyDescriptor pd,
Object value)
Use the PropertyDescriptor to invoke the appropriate setter method on the object. |
boolean |
isValueFormatted(Properties properties)
Returns true if the FORMAT property is set to "true" or is omitted, otherwise returns false. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(BasicAttributeDelegate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setObjectAttributeValueString(Object object,
String attribute_name,
String value,
Locale locale,
Properties properties)
This is a empty stub implementation. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static ObjectPropertyValue adapterProcessor
Constructor Detail |
public BasicAttributeDelegate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(BasicAttributeDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected PropertyDescriptor getPropertyDescriptor(Object object, String attribute_name) throws WTException
object
- attribute_name
-
WTException
protected Object invokeGetterMethod(Object object, PropertyDescriptor pd) throws WTException
object
- pd
-
WTException
protected void invokeSetterMethod(Object object, PropertyDescriptor pd, Object value) throws WTException
object
- pd
- value
-
WTException
public String getObjectAttributeValueString(Object object, String attribute_name, Locale locale, Properties properties) throws WTException
getObjectAttributeValueString
in interface AttributeDelegate
object
- attribute_name
- locale
- properties
-
WTException
public void setObjectAttributeValueString(Object object, String attribute_name, String value, Locale locale, Properties properties) throws WTException
setObjectAttributeValueString
in interface AttributeDelegate
object
- attribute_name
- value
- locale
- properties
-
WTException
public boolean isValueFormatted(Properties properties)
properties
-
public static Object getAttributeValue(Object obj, String attributeName)
private static Method getReadMethod(Class c, String attributeName) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |