KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > webapps > JahiaWebAppsEarPackage


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12
//
13
//
14
// JahiaWebAppsEarPackage
15
//
16
// NK 16.01.2001
17
//
18
//
19

20 package org.jahia.data.webapps;
21
22 import java.util.Vector JavaDoc;
23
24 /**
25  * Holds Informations about a webapps ear package
26  *
27  *
28  * @author Khue ng
29  * @version 1.0
30  */

31 public class JahiaWebAppsEarPackage {
32
33     /** The vector of JahiaWebAppDef object *
34      * @associates JahiaWebAppDef*/

35     private Vector JavaDoc m_WebApps = new Vector JavaDoc();
36
37     /** the application context in case of ear file **/
38     private String JavaDoc m_ApplicationContextRoot;
39
40    
41    /**
42     * Constructor
43     *
44     * @param (String) context, the application context in case of ear file
45     */

46     public JahiaWebAppsEarPackage ( String JavaDoc context ) {
47        m_ApplicationContextRoot = context;
48     }
49
50
51    /**
52     * Get the list of JahiaWebAppDef object
53     *
54     * @return (Vector) the Vector of JahiaWebAppDef object
55     */

56    public Vector JavaDoc getWebApps(){
57       
58       return m_WebApps;
59    
60    }
61
62    /**
63     * Add a WebApps Definition in the Web Apps list
64     *
65     * @param (JahiaWebAppDef) webAppDef
66     */

67    public void addWebAppDef(JahiaWebAppDef webAppDef ){
68       
69       m_WebApps.add(webAppDef);
70    
71    }
72
73    /**
74     * Add a vector of JahiaWebAppDef object at the end of the WebApps Vector
75     *
76     * @param (Vector) the vector
77     */

78    public void addWebAppDefs(Vector JavaDoc vec){
79       
80       m_WebApps.addAll(vec);
81    
82    }
83
84    
85    /**
86     * Returns the Context Root of this application
87     *
88     * @return (String) the context root
89     */

90    public String JavaDoc getContextRoot(){
91       
92       return m_ApplicationContextRoot;
93       
94    }
95     
96
97    /**
98     * Set the Application Context
99     *
100     * @param (String) the application context
101     */

102    public void setContextRoot(String JavaDoc context){
103       
104       m_ApplicationContextRoot = context;
105       
106    }
107     
108     
109 } // end JahiaWebAppEarPackage
110
Popular Tags