KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > webjmx > adapter > xml > AdapterMapping


1 /*
2  * Copyright (C) WebJMX.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the WebJMX License version 2.0.
6  * See the terms of the WebJMX License in the documentation provided with this software.
7  */

8 /*
9  * AdaptorMapping.java
10  *
11  * Created on December 22, 2001, 5:29 PM
12  */

13
14 package org.webjmx.adapter.xml;
15
16 /** A simple data class used by the Quick XML/Java mapper
17  *
18  * @author John Aronson
19  * @version
20  */

21 public class AdapterMapping
22 {
23     /** Holds value of property name. */
24     private String JavaDoc name;
25     
26     /** Holds value of property locator. */
27     private String JavaDoc locator;
28     
29     /** Holds value of property preload. */
30     private boolean preload;
31     
32     /** Creates new AdaptorMapping */
33     public AdapterMapping() {
34     }
35
36     /** Getter for property name.
37      * @return Value of property name.
38      */

39     public String JavaDoc getName()
40     {
41         return name;
42     }
43     
44     /** Setter for property name.
45      * @param name New value of property name.
46      */

47     public void setName(String JavaDoc name)
48     {
49         this.name = name;
50     }
51     
52     /** Getter for property locator.
53      * @return Value of property locator.
54      */

55     public String JavaDoc getLocator()
56     {
57         return locator;
58     }
59     
60     /** Setter for property locator.
61      * @param locator New value of property locator.
62      */

63     public void setLocator(String JavaDoc locator)
64     {
65         this.locator = locator;
66     }
67     
68     /** Getter for property preload.
69      * @return Value of property preload.
70      */

71     public boolean isPreload()
72     {
73         return preload;
74     }
75     
76     /** Setter for property preload.
77      * @param preload New value of property preload.
78      */

79     public void setPreload(boolean preload)
80     {
81         this.preload = preload;
82     }
83     
84     public String JavaDoc toString()
85     {
86         return "AdaptorMapping[ " +name +", " +locator +"]";
87     }
88     
89 }
90
Popular Tags