KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > help > internal > toc > TocContribution


1 /*******************************************************************************
2  * Copyright (c) 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.help.internal.toc;
12
13 import org.eclipse.help.IToc;
14 import org.eclipse.help.ITocContribution;
15
16 public class TocContribution implements ITocContribution {
17
18     private String JavaDoc categoryId;
19     private String JavaDoc contributorId;
20     private String JavaDoc[] extraDocuments;
21     private String JavaDoc id;
22     private String JavaDoc locale;
23     private Toc toc;
24     private boolean isPrimary;
25     
26     public String JavaDoc getCategoryId() {
27         return categoryId;
28     }
29     
30     public void setCategoryId(String JavaDoc categoryId) {
31         this.categoryId = categoryId;
32     }
33     
34     public String JavaDoc getContributorId() {
35         return contributorId;
36     }
37     
38     public void setContributorId(String JavaDoc contributorId) {
39         this.contributorId = contributorId;
40     }
41     
42     public String JavaDoc[] getExtraDocuments() {
43         return extraDocuments;
44     }
45     
46     public void setExtraDocuments(String JavaDoc[] extraDocuments) {
47         this.extraDocuments = extraDocuments;
48     }
49     
50     public String JavaDoc getId() {
51         return id;
52     }
53     
54     public void setId(String JavaDoc id) {
55         this.id = id;
56     }
57     
58     public String JavaDoc getLocale() {
59         return locale;
60     }
61     
62     public void setLocale(String JavaDoc locale) {
63         this.locale = locale;
64     }
65     
66     public String JavaDoc getLinkTo() {
67         return toc.getLinkTo();
68     }
69     
70     public void setLinkTo(String JavaDoc linkTo) {
71         toc.setLinkTo(linkTo);
72     }
73     
74     public IToc getToc() {
75         return toc;
76     }
77     
78     public void setToc(Toc toc) {
79         this.toc = toc;
80         toc.setTocContribution(this);
81     }
82     
83     public boolean isPrimary() {
84         return isPrimary;
85     }
86     
87     public void setPrimary(boolean isPrimary) {
88         this.isPrimary = isPrimary;
89     }
90 }
91
Popular Tags