|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectStrategy
Strategy pattern to create instances needed by XmlConverter
$Author: wintermond $
$Date: 2005/07/10 18:40:13 $
$Log: ObjectStrategy.java,v $
Revision 1.3 2005/07/10 18:40:13 wintermond
javadoc
init()
Revision 1.2 2005/07/09 09:56:51 wintermond
javadoc
| Method Summary | |
|---|---|
java.lang.Object |
createInstance(java.lang.Class clazz)
Creates an instance of the type clazz. |
java.lang.String |
getMethodName(java.lang.Class clazz,
java.lang.String attribute,
boolean set)
Returns the get/set method name for an attribute read by the parser |
void |
init()
Restore initial state |
java.lang.Class |
resolveInterface(java.lang.Object object)
Determines the interfaces this object was created upon. |
void |
setAttribute(java.lang.Object target,
java.lang.String attribute,
java.lang.Object value)
Sets the attribute on an instance returned via createInstance(Class)
target and attribute are guaranteed to be not null. |
| Method Detail |
|---|
java.lang.Object createInstance(java.lang.Class clazz)
clazz.
clazz is never null
clazz -
clazz.
void setAttribute(java.lang.Object target,
java.lang.String attribute,
java.lang.Object value)
createInstance(Class)
target and attribute are guaranteed to be not null.
value is guaranteed to be not null if called by the parser
target - Object to set the attribute toattribute - Attribute namevalue - value to setvoid init()
java.lang.Class resolveInterface(java.lang.Object object)
object - Object created by createInstance(Class) of this object
java.lang.String getMethodName(java.lang.Class clazz,
java.lang.String attribute,
boolean set)
clazz - attribute - set - true if set method is requested, false if get
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||