KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > module > RepositoryDefinition


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.module;
14
15 import java.util.ArrayList JavaDoc;
16 import java.util.List JavaDoc;
17
18
19 /**
20  * @author Philipp Bracher
21  * @version $Revision: 6341 $ ($Author: philipp $)
22  */

23 public class RepositoryDefinition {
24
25     /**
26      * The name of the repository to register
27      */

28     private String JavaDoc name;
29
30     /**
31      * The file containing the nodeTypes
32      */

33     private String JavaDoc nodeTypeFile;
34
35     /**
36      * workspaces
37      */

38     private List JavaDoc workspaces = new ArrayList JavaDoc();
39
40     /**
41      * @return Returns the name.
42      */

43     public String JavaDoc getName() {
44         return this.name;
45     }
46
47     /**
48      * @param name The name to set.
49      */

50     public void setName(String JavaDoc name) {
51         this.name = name;
52     }
53
54     /**
55      * @return Returns the nodeTypeFile.
56      */

57     public String JavaDoc getNodeTypeFile() {
58         return this.nodeTypeFile;
59     }
60
61     /**
62      * @param nodeTypeFile The nodeTypeFile to set.
63      */

64     public void setNodeTypeFile(String JavaDoc nodeTypeFile) {
65         this.nodeTypeFile = nodeTypeFile;
66     }
67
68     /**
69      * @return Returns the workspaces.
70      */

71     public List JavaDoc getWorkspaces() {
72         return this.workspaces;
73     }
74
75     /**
76      * Add a workspace to this repository
77      * @param workspace
78      */

79     public void addWorkspace(String JavaDoc workspace) {
80         this.workspaces.add(workspace);
81     }
82
83 }
84
Popular Tags