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 javax.xml.bind.annotation.XmlAccessType;
013    import javax.xml.bind.annotation.XmlAccessorType;
014    import javax.xml.bind.annotation.XmlAttribute;
015    import javax.xml.bind.annotation.XmlType;
016    import javax.xml.bind.annotation.XmlValue;
017    
018    
019    /**
020     * 
021     *                 holds key-value pair. key is in 'key' attribute, value is in content
022     *             
023     * 
024     * <p>Java class for propertyType complex type.
025     * 
026     * <p>The following schema fragment specifies the expected content contained within this class.
027     * 
028     * <pre>
029     * &lt;complexType name="propertyType">
030     *   &lt;simpleContent>
031     *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
032     *       &lt;attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
033     *       &lt;attribute name="server" type="{http://www.w3.org/2001/XMLSchema}string" default="default" />
034     *     &lt;/extension>
035     *   &lt;/simpleContent>
036     * &lt;/complexType>
037     * </pre>
038     * 
039     * 
040     */
041    @XmlAccessorType(XmlAccessType.FIELD)
042    @XmlType(name = "propertyType", propOrder = {
043        "value"
044    })
045    public class PropertyType
046        implements Serializable
047    {
048    
049        private final static long serialVersionUID = 12343L;
050        @XmlValue
051        protected String value;
052        @XmlAttribute(required = true)
053        protected String key;
054        @XmlAttribute
055        protected String server;
056    
057        /**
058         * Gets the value of the value property.
059         * 
060         * @return
061         *     possible object is
062         *     {@link String }
063         *     
064         */
065        public String getValue() {
066            return value;
067        }
068    
069        /**
070         * Sets the value of the value property.
071         * 
072         * @param value
073         *     allowed object is
074         *     {@link String }
075         *     
076         */
077        public void setValue(String value) {
078            this.value = value;
079        }
080    
081        /**
082         * Gets the value of the key property.
083         * 
084         * @return
085         *     possible object is
086         *     {@link String }
087         *     
088         */
089        public String getKey() {
090            return key;
091        }
092    
093        /**
094         * Sets the value of the key property.
095         * 
096         * @param value
097         *     allowed object is
098         *     {@link String }
099         *     
100         */
101        public void setKey(String value) {
102            this.key = value;
103        }
104    
105        /**
106         * Gets the value of the server property.
107         * 
108         * @return
109         *     possible object is
110         *     {@link String }
111         *     
112         */
113        public String getServer() {
114            if (server == null) {
115                return "default";
116            } else {
117                return server;
118            }
119        }
120    
121        /**
122         * Sets the value of the server property.
123         * 
124         * @param value
125         *     allowed object is
126         *     {@link String }
127         *     
128         */
129        public void setServer(String value) {
130            this.server = value;
131        }
132    
133    }