KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
16  * @author Philipp Bracher
17  * @version $Revision: 6341 $ ($Author: philipp $)
18  */

19 public class DependencyDefinition {
20
21     /**
22      * The name of the module
23      */

24     private String JavaDoc name;
25
26     /**
27      * The version of the module
28      */

29     private String JavaDoc version;
30
31     /**
32      * If this dependency is optional but should get loaded before this module
33      */

34     private boolean optional = false;
35
36     /**
37      * @return Returns the name.
38      */

39     public String JavaDoc getName() {
40         return this.name;
41     }
42
43     /**
44      * @param name The name to set.
45      */

46     public void setName(String JavaDoc name) {
47         this.name = name;
48     }
49
50     /**
51      * @return Returns the version.
52      */

53     public String JavaDoc getVersion() {
54         return this.version;
55     }
56
57     /**
58      * @param version The version to set.
59      */

60     public void setVersion(String JavaDoc version) {
61         this.version = version;
62     }
63
64     /**
65      * @return Returns the optional.
66      */

67     public boolean isOptional() {
68         return this.optional;
69     }
70
71     /**
72      * @param optional The optional to set.
73      */

74     public void setOptional(boolean optional) {
75         this.optional = optional;
76     }
77
78 }
79
Popular Tags