|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.tuxedo.control.TuxFieldViewSerialize
public class TuxFieldViewSerialize
Provide access to a single field in a View or View32 buffer. Used by serialization code.
Constructor Summary | |
---|---|
TuxFieldViewSerialize(String nm,
int type,
boolean array)
|
Method Summary | |
---|---|
String |
getName()
Return the name of the field. |
int |
getSize(Object obj)
Return the max size of an array field, else 1. |
int |
getType()
Return the Tuxedo type code for the field. |
Object |
getValue(Object object)
Get the value of the next indexed field in the given object. |
void |
setConventions(boolean useBeanConv)
Set the bean conventions for the field |
void |
setCount(int max)
Set the max size of an array for an array field. |
void |
setGetter(Method method)
Set the getter method for this field. |
void |
setSetter(Method method,
boolean useBeanConv)
Set the setter method for the field. |
void |
setValue(Object object,
Object value)
Set the value of the next indexed member of the field in the given object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TuxFieldViewSerialize(String nm, int type, boolean array)
Method Detail |
---|
public void setGetter(Method method)
method
- The getter methodcnt
- The max array size for the field or 1 if not an array.public void setCount(int max)
max
- The max size of the array.public void setSetter(Method method, boolean useBeanConv)
method
- The setter methoduseBeanConv
- true if the setter uses the JavaBean conventions
for setting array fields: index, value; if false, the setter uses
value, indexpublic void setConventions(boolean useBeanConv)
useBeanConv
- true if the setter uses the JavaBean conventions
for setting array fields: index, value; if false, the setter uses
value, indexpublic int getType()
getType
in interface ITuxField
public String getName()
getName
in interface ITuxField
public int getSize(Object obj)
getSize
in interface ITuxField
obj
- The buffer object
public void setValue(Object object, Object value) throws ControlException
setValue
in interface ITuxField
object
- The View or View32 buffer.value
- The desired value.
ControlException
public Object getValue(Object object) throws ControlException
getValue
in interface ITuxField
object
- The view or view32 buffer.
ControlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |