|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bea.tuxedo.control.JavaFieldValidate
public class JavaFieldValidate
Provide access to a single field in a Java class. For the validator, we only provide access to the field name and type (we use the compiler internal types). Fields may actually represent JavaBean style getters.
| Constructor Summary | |
|---|---|
JavaFieldValidate(String nm)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addGetter(MethodDeclaration method,
int level,
boolean isPrefix)
Add a getter accessor method to the field. |
void |
addPublicField(FieldDeclaration fld,
int level)
Add direct public access to the field. |
void |
addSetter(MethodDeclaration method,
int level)
Add a setter accessor method to 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 JavaFieldValidate(String nm)
nm - The field name.| Method Detail |
|---|
public String getName()
getName in interface IJavaFieldpublic Object getType()
getType in interface IJavaField
public void setValue(Object object,
Object value)
IJavaField
setValue in interface IJavaFieldobject - The class object for the defining class.value - The value to set.public Object getValue(Object object)
IJavaField
getValue in interface IJavaFieldobject - The class object for the defining class.
public void addSetter(MethodDeclaration method,
int level)
method - The accessor methodlevel - The derivation level of the declaring class
public void addGetter(MethodDeclaration 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(FieldDeclaration fld,
int level)
method - The Java Field classlevel - The derivation level of the declaring class
public void normalizeField()
throws IntrospectionException
IntrospectionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||