|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.tuxedo.control.JavaFieldSerialize
public class JavaFieldSerialize
Provide access to a single field in a Java class. Fields may be accessed directly or through a JavaBean style setter/getter. This version is used by the run-time serialize and deserialize code.
Constructor Summary | |
---|---|
JavaFieldSerialize(String nm)
Constructor |
Method Summary | |
---|---|
void |
addGetter(Method method,
int level,
boolean isPrefix)
Add a getter accessor method to the field. |
void |
addPublicField(Field fld,
int level)
Add direct public access to the field. |
void |
addSetter(Method method,
int level)
Add a setter accessor method to the field. |
int |
compareTo(Object other)
Overrides default compareTo. |
int |
getLevel()
Return the derivation level for the field. |
String |
getName()
Get the name of the field. |
Object |
getType()
Get the type of the field, as a Java class. |
Object |
getValue(Object object)
Get the value of the field. |
void |
normalizeField()
Normalize the field definition. |
void |
setValue(Object object,
Object value)
Set the value of the field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaFieldSerialize(String nm)
nm
- Name of the field converted from a setter/getter name.Method Detail |
---|
public int compareTo(Object other)
compareTo
in interface Comparable
other
- The other field object to compare against.
public String getName()
getName
in interface IJavaField
public void addSetter(Method method, int level)
method
- The accessor methodlevel
- The derivation level of the declaring classpublic void addGetter(Method method, int level, boolean isPrefix)
method
- The accessor methodlevel
- The derivation level of the declaring classisPrefix
- True if the method's name starts with "is"public void addPublicField(Field fld, int level)
method
- The Java Field classlevel
- The derivation level of the declaring classpublic void normalizeField()
public int getLevel()
public Object getType()
getType
in interface IJavaField
public void setValue(Object object, Object value) throws ControlException
setValue
in interface IJavaField
object
- The class object for the defining class.value
- The value to set.
ControlException
public Object getValue(Object object) throws ControlException
getValue
in interface IJavaField
object
- The class object for the defining class.
ControlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |