01 /*
02  * Copyright 2007 Roberto Fasciolo
03  
04  * This file is part of vsitegen.
05  
06  * vsitegen is free software; you can redistribute it and/or modify
07  * it under the terms of the GNU General Public License as published by
08  * the Free Software Foundation; either version 2 of the License, or
09  * (at your option) any later version.
10  
11  * vsitegen is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  
16  * You should have received a copy of the GNU General Public License
17  * along with vsitegen; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20 package net.robyf.vsitegen.model;
21 
22 public final class Link extends Element {
23 
24     private String url;
25 
26     private boolean newWindow;
27 
28     public boolean isNewWindow() {
29         return newWindow;
30     }
31 
32     public void setNewWindow(final String newWindow) {
33         this.newWindow = Boolean.valueOf(newWindow);
34     }
35 
36     public void setNewWindow(final boolean newWindow) {
37         this.newWindow = newWindow;
38     }
39 
40     public String getUrl() {
41         return url;
42     }
43 
44     public void setUrl(final String url) {
45         this.url = url;
46     }
47 
48     public boolean isLink() {
49         return true;
50     }
51 
52     public boolean isPage() {
53         return false;
54     }
55 
56 }