A
angelochen960
Hi,
I have this bean:
public class Item {
private String type;
private Boolean pub;
public String getType() { return type;}
public Boolean isPub() { return pub;}
}
I can use item.getType() to get the type value, but I'm looking for a
generic way, say I have a string 'Type', then I'd like to get the
value of type of a certain object, any idea how to achieve this?
Thanks.
A.C.
I have this bean:
public class Item {
private String type;
private Boolean pub;
public String getType() { return type;}
public Boolean isPub() { return pub;}
}
I can use item.getType() to get the type value, but I'm looking for a
generic way, say I have a string 'Type', then I'd like to get the
value of type of a certain object, any idea how to achieve this?
Thanks.
A.C.