File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Is this consider a JavaBean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is this consider a JavaBean?" Watch "Is this consider a JavaBean?" New topic
Author

Is this consider a JavaBean?

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2409
    
    7

Hi all, I want to make sure my definition of JavaBean.



I want to point out is the method setVar2(String) valid if classify as JavaBean? Or "must" I use setVar2(int)?


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38756
    
  23
I am not sure, but I think you need a setVar2(int) method.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2409
    
    7

thanks Campbell, so i assume it's not a javabean.
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874




One of the rule of Java Beans is the setter argument type must be same as the getter return type.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2409
    
    7

thanks Balu
 
 
subject: Is this consider a JavaBean?