KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > management > browser > model > service > ConnectionMetaData


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.management.browser.model.service;
8
9 import org.ejtools.util.service.ProfileMetaData;
10
11 /**
12  * @author Laurent Etiemble
13  * @version $Revision: 1.6 $
14  */

15 public class ConnectionMetaData implements ProfileMetaData
16 {
17    /** Description of the Field */
18    protected String JavaDoc[] keys = new String JavaDoc[]{
19       ConnectionMetaData.CLASS_NAME,
20       ConnectionMetaData.FACTORY,
21       ConnectionMetaData.PACKAGES,
22       ConnectionMetaData.URL,
23       ConnectionMetaData.CONTEXT,
24       ConnectionMetaData.PRINCIPAL,
25       ConnectionMetaData.CREDENTIALS
26       };
27    /** Description of the Field */
28    public final static String JavaDoc CLASS_NAME = "classname";
29    /** Description of the Field */
30    public final static String JavaDoc CONTEXT = "context";
31    /** Description of the Field */
32    public final static String JavaDoc CREDENTIALS = "credentials";
33    /** Description of the Field */
34    public final static String JavaDoc FACTORY = "factory";
35    /** Description of the Field */
36    public final static String JavaDoc PACKAGES = "packages";
37    /** Description of the Field */
38    public final static String JavaDoc PRINCIPAL = "principal";
39    /** Description of the Field */
40    public final static String JavaDoc URL = "url";
41
42
43    /** Constructor for ConnectionMetaData. */
44    public ConnectionMetaData()
45    {
46       super();
47    }
48
49
50    /**
51     * Gets the fileName attribute of the ConnectionMetaData object
52     *
53     * @return The fileName value
54     */

55    public String JavaDoc getFileName()
56    {
57       return "/management.connection.properties";
58    }
59
60
61    /**
62     * Gets the key attribute of the ConnectionMetaData object
63     *
64     * @param index Description of the Parameter
65     * @return The key value
66     */

67    public String JavaDoc getKey(int index)
68    {
69       return this.keys[index];
70    }
71
72
73    /**
74     * Gets the keys attribute of the ConnectionMetaData object
75     *
76     * @return The keys value
77     */

78    public String JavaDoc[] getKeys()
79    {
80       return this.keys;
81    }
82
83
84    /**
85     * Gets the prefix attribute of the ConnectionMetaData object
86     *
87     * @return The prefix value
88     */

89    public String JavaDoc getPrefix()
90    {
91       return "connection";
92    }
93 }
94
Popular Tags