001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.3-b01-fcs
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2008.10.21 at 09:24:54 AM EDT
006 //
007
008
009 package org.apache.geronimo.system.plugin.model;
010
011 import java.io.Serializable;
012 import java.util.ArrayList;
013 import java.util.List;
014 import javax.xml.bind.annotation.XmlAccessType;
015 import javax.xml.bind.annotation.XmlAccessorType;
016 import javax.xml.bind.annotation.XmlAttribute;
017 import javax.xml.bind.annotation.XmlElement;
018 import javax.xml.bind.annotation.XmlType;
019
020
021 /**
022 *
023 * Lets a plugin declare data that should be inserted into config.xml
024 * when the plugin is installed. This is normally used to add ports
025 * and other settings that the user is likely to want to change. The
026 * gbean entries declared here will be written into config.xml for the
027 * new module when the plugin is installed.
028 *
029 *
030 * <p>Java class for config-xml-contentType complex type.
031 *
032 * <p>The following schema fragment specifies the expected content contained within this class.
033 *
034 * <pre>
035 * <complexType name="config-xml-contentType">
036 * <complexContent>
037 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
038 * <sequence>
039 * <element ref="{http://geronimo.apache.org/xml/ns/attributes-1.2}comment" minOccurs="0"/>
040 * <element ref="{http://geronimo.apache.org/xml/ns/attributes-1.2}gbean" maxOccurs="unbounded"/>
041 * </sequence>
042 * <attribute name="condition" type="{http://www.w3.org/2001/XMLSchema}string" />
043 * <attribute name="load" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
044 * <attribute name="server" type="{http://www.w3.org/2001/XMLSchema}string" default="default" />
045 * </restriction>
046 * </complexContent>
047 * </complexType>
048 * </pre>
049 *
050 *
051 */
052 @XmlAccessorType(XmlAccessType.FIELD)
053 @XmlType(name = "config-xml-contentType", propOrder = {
054 "comment",
055 "gbean"
056 })
057 public class ConfigXmlContentType
058 implements Serializable
059 {
060
061 private final static long serialVersionUID = 12343L;
062 @XmlElement(namespace = "http://geronimo.apache.org/xml/ns/attributes-1.2")
063 protected String comment;
064 @XmlElement(namespace = "http://geronimo.apache.org/xml/ns/attributes-1.2", required = true)
065 protected List<GbeanType> gbean;
066 @XmlAttribute
067 protected String condition;
068 @XmlAttribute
069 protected Boolean load;
070 @XmlAttribute
071 protected String server;
072
073 /**
074 * Gets the value of the comment property.
075 *
076 * @return
077 * possible object is
078 * {@link String }
079 *
080 */
081 public String getComment() {
082 return comment;
083 }
084
085 /**
086 * Sets the value of the comment property.
087 *
088 * @param value
089 * allowed object is
090 * {@link String }
091 *
092 */
093 public void setComment(String value) {
094 this.comment = value;
095 }
096
097 /**
098 * Gets the value of the gbean property.
099 *
100 * <p>
101 * This accessor method returns a reference to the live list,
102 * not a snapshot. Therefore any modification you make to the
103 * returned list will be present inside the JAXB object.
104 * This is why there is not a <CODE>set</CODE> method for the gbean property.
105 *
106 * <p>
107 * For example, to add a new item, do as follows:
108 * <pre>
109 * getGbean().add(newItem);
110 * </pre>
111 *
112 *
113 * <p>
114 * Objects of the following type(s) are allowed in the list
115 * {@link GbeanType }
116 *
117 *
118 */
119 public List<GbeanType> getGbean() {
120 if (gbean == null) {
121 gbean = new ArrayList<GbeanType>();
122 }
123 return this.gbean;
124 }
125
126 /**
127 * Gets the value of the condition property.
128 *
129 * @return
130 * possible object is
131 * {@link String }
132 *
133 */
134 public String getCondition() {
135 return condition;
136 }
137
138 /**
139 * Sets the value of the condition property.
140 *
141 * @param value
142 * allowed object is
143 * {@link String }
144 *
145 */
146 public void setCondition(String value) {
147 this.condition = value;
148 }
149
150 /**
151 * Gets the value of the load property.
152 *
153 * @return
154 * possible object is
155 * {@link Boolean }
156 *
157 */
158 public boolean isLoad() {
159 if (load == null) {
160 return true;
161 } else {
162 return load;
163 }
164 }
165
166 /**
167 * Sets the value of the load property.
168 *
169 * @param value
170 * allowed object is
171 * {@link Boolean }
172 *
173 */
174 public void setLoad(Boolean value) {
175 this.load = value;
176 }
177
178 /**
179 * Gets the value of the server property.
180 *
181 * @return
182 * possible object is
183 * {@link String }
184 *
185 */
186 public String getServer() {
187 if (server == null) {
188 return "default";
189 } else {
190 return server;
191 }
192 }
193
194 /**
195 * Sets the value of the server property.
196 *
197 * @param value
198 * allowed object is
199 * {@link String }
200 *
201 */
202 public void setServer(String value) {
203 this.server = value;
204 }
205
206 }