KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > src > Main


1 package src;
2
3 import dsl.Link;
4 import dsl.Page;
5 import dsl.Web;
6
7
8 @Web
9 @Link("www.yahoo.com") //this is NOT a valid URL, and it doesn't have a homepage
10
public class Main {
11     @Page(dateCreated="2006-03-31")
12     @Link("http://www.lifl.fr/~noguera")
13     public String JavaDoc user;
14     
15     @Page(dateCreated="may 2005") //this doesnot have a link and the date is not in format
16
public String JavaDoc user2;
17     
18     @Link("http://www.lifl.fr/~noguera")
19     public void method(){
20         
21     }
22     
23     @Override JavaDoc
24     public String JavaDoc toString() {
25         return super.toString();
26     }
27 }
28
29
30
31
Popular Tags