/*
* Created on 05/10/2004
*
*/
package comum.util;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import ecar.pojo.Cor;
/**
* @author garten
*/
public class Teste {
/**
* Teste.<br>
*
* @author N/C
* @since N/C
* @version N/C
* @param args
*/
public static void main(String[] args) {
List l = new ArrayList();
Object o;
Cor c = new Cor();
c.setCodCor(Long.valueOf(2));
c.setNomeCor("Amarelo");
l = Util.listaMetodosGet(c);
try {
for (int i = 0; i< l.size(); i++){
System.out.println(((Method)l.get(i)).getName());
String attr = ((Method)l.get(i)).getName().substring(3,4).toLowerCase() +
((Method)l.get(i)).getName().substring(4);
System.out.println(attr);
}
} catch (Exception e) {
System.out.println(e.getMessage());
}
l = Util.listaAtributos(c);
try {
for (int i = 0; i < l.size(); i++){
System.out.println(((Field)l.get(i)).getName());
}
} catch (Exception e){
System.out.println(e.getMessage());
}
}
}