KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > changelog > html > ChangeLogHTMLService


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Ralph Krueger.
17  */

18
19 package org.netbeans.modules.changelog.html;
20
21
22 import java.util.*;
23 import org.openide.*;
24 import org.openide.util.*;
25
26 /**
27  * Holds server specific information for generating html output links.
28  *
29  * @author ralph
30  */

31 public class ChangeLogHTMLService extends ServiceType {
32
33     public static final String JavaDoc REVISION = "revisionURL"; //NOI18N
34
public static final String JavaDoc DIFF = "diffURL"; //NOI18N
35
public static final String JavaDoc PREFIX = "cvsRootPrefix"; //NOI18N
36

37
38     /** Holds value of property cvsRootPrefix. */
39     private String JavaDoc cvsRootPrefix;
40
41     /** Holds value of property diffURL. */
42     private String JavaDoc diffURL;
43     
44     /** Holds value of property revisionURL. */
45     private String JavaDoc revisionURL;
46     
47     private static final long serialVersionUID = -1717495349319475009L;
48     
49     public ChangeLogHTMLService() {
50     }
51     
52     /** Get context help for this service type.
53      * @return context help
54      */

55     public HelpCtx getHelpCtx() {
56         return new HelpCtx(ChangeLogHTMLService.class);
57     }
58     
59     /** Getter for property cvsRootPrefix.
60      * @return Value of property cvsRootPrefix.
61      */

62     public String JavaDoc getCvsRootPrefix() {
63         return this.cvsRootPrefix;
64     }
65     
66     /** Setter for property cvsRootPrefix.
67      * @param cvsRootPrefix New value of property cvsRootPrefix.
68      */

69     public void setCvsRootPrefix(String JavaDoc cvsRootPrefix) {
70         String JavaDoc old = this.cvsRootPrefix;
71         this.cvsRootPrefix = cvsRootPrefix;
72         firePropertyChange(PREFIX, old, cvsRootPrefix);
73     }
74     
75     /** Getter for property diffURL.
76      * @return Value of property diffURL.
77      */

78     public String JavaDoc getDiffURL() {
79         return this.diffURL;
80     }
81     
82     /** Setter for property diffURL.
83      * @param diffURL New value of property diffURL.
84      */

85     public void setDiffURL(String JavaDoc diffURL) {
86         String JavaDoc old = this.diffURL;
87         this.diffURL = diffURL;
88         firePropertyChange(DIFF, old, diffURL);
89     }
90     
91     /** Getter for property revisionURL.
92      * @return Value of property revisionURL.
93      */

94     public String JavaDoc getRevisionURL() {
95         return this.revisionURL;
96     }
97     
98     /** Setter for property revisionURL.
99      * @param revisionURL New value of property revisionURL.
100      */

101     public void setRevisionURL(String JavaDoc revisionURL) {
102         String JavaDoc old = this.revisionURL;
103         this.revisionURL = revisionURL;
104         firePropertyChange(REVISION, old, revisionURL);
105     }
106     
107     
108     public Object JavaDoc clone() {
109         ChangeLogHTMLService changelog = new ChangeLogHTMLService();
110         changelog.setCvsRootPrefix(getCvsRootPrefix());
111         changelog.setDiffURL(getDiffURL());
112         changelog.setRevisionURL(getRevisionURL());
113         return changelog;
114     }
115     
116 }
117
Popular Tags