KickJava   Java API By Example, From Geeks To Geeks.

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


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
// JahiaWebAppsWarPackage
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 war package
26  *
27  *
28  * @author Khue ng
29  * @version 1.0
30  */

31 public class JahiaWebAppsWarPackage {
32
33    /** The WebApps list *
34     * @associates JahiaWebAppDef*/

35    private Vector JavaDoc m_WebApps = new Vector JavaDoc();
36
37    /** The ContextRoot for all the web apps within the war file **/
38    private String JavaDoc m_ContextRoot ;
39    
40    /**
41     * Constructor
42     *
43     * @param (String) contextRoot , the context root of the web apps
44     */

45     public JahiaWebAppsWarPackage ( String JavaDoc contextRoot ) {
46        m_ContextRoot = contextRoot;
47     }
48     
49    /**
50     * Get the WebApps List
51     *
52     * @return (Vector) the Vector of webapps list
53     */

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

65    public void addWebAppDef(JahiaWebAppDef webAppDef ){
66       
67       m_WebApps.add(webAppDef);
68    
69    }
70
71    
72    /**
73     * Returns the Context Root of this package
74     *
75     * @return (String) the context root
76     */

77    public String JavaDoc getContextRoot(){
78       
79       return m_ContextRoot;
80       
81    }
82     
83     
84     
85 } // end JahiaWebAppWarPackage
86
Popular Tags