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.XmlElements; 019 import javax.xml.bind.annotation.XmlType; 020 021 022 /** 023 * 024 * Element used by the plugin system to list individual GBeans. 025 * Note that the name attribute for a gbean element may hold either 026 * the full GBeanName, or only the value for the "name=" portion of 027 * the GBeanName. If there are multiple GBeans in the module with 028 * manageable attributes and the same "name=" portion of the 029 * GBeanName, then all must be listed and all must be listed with a 030 * full GBeanName. 031 * 032 * 033 * <p>Java class for gbeanType complex type. 034 * 035 * <p>The following schema fragment specifies the expected content contained within this class. 036 * 037 * <pre> 038 * <complexType name="gbeanType"> 039 * <complexContent> 040 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 041 * <sequence> 042 * <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 043 * <choice maxOccurs="unbounded" minOccurs="0"> 044 * <element ref="{http://geronimo.apache.org/xml/ns/attributes-1.2}attribute"/> 045 * <element name="reference" type="{http://geronimo.apache.org/xml/ns/attributes-1.2}referenceType"/> 046 * </choice> 047 * </sequence> 048 * <attribute name="gbeanInfo" type="{http://www.w3.org/2001/XMLSchema}string" /> 049 * <attribute name="load" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> 050 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 051 * </restriction> 052 * </complexContent> 053 * </complexType> 054 * </pre> 055 * 056 * 057 */ 058 @XmlAccessorType(XmlAccessType.FIELD) 059 @XmlType(name = "gbeanType", namespace = "http://geronimo.apache.org/xml/ns/attributes-1.2", propOrder = { 060 "comment", 061 "attributeOrReference" 062 }) 063 public class GbeanType 064 implements Serializable 065 { 066 067 private final static long serialVersionUID = 12343L; 068 @XmlElement(namespace = "http://geronimo.apache.org/xml/ns/attributes-1.2") 069 protected String comment; 070 @XmlElements({ 071 @XmlElement(name = "reference", namespace = "http://geronimo.apache.org/xml/ns/attributes-1.2", type = ReferenceType.class), 072 @XmlElement(name = "attribute", namespace = "http://geronimo.apache.org/xml/ns/attributes-1.2", type = AttributeType.class) 073 }) 074 protected List<Object> attributeOrReference; 075 @XmlAttribute 076 protected String gbeanInfo; 077 @XmlAttribute 078 protected Boolean load; 079 @XmlAttribute(required = true) 080 protected String name; 081 082 /** 083 * Gets the value of the comment property. 084 * 085 * @return 086 * possible object is 087 * {@link String } 088 * 089 */ 090 public String getComment() { 091 return comment; 092 } 093 094 /** 095 * Sets the value of the comment property. 096 * 097 * @param value 098 * allowed object is 099 * {@link String } 100 * 101 */ 102 public void setComment(String value) { 103 this.comment = value; 104 } 105 106 /** 107 * Gets the value of the attributeOrReference property. 108 * 109 * <p> 110 * This accessor method returns a reference to the live list, 111 * not a snapshot. Therefore any modification you make to the 112 * returned list will be present inside the JAXB object. 113 * This is why there is not a <CODE>set</CODE> method for the attributeOrReference property. 114 * 115 * <p> 116 * For example, to add a new item, do as follows: 117 * <pre> 118 * getAttributeOrReference().add(newItem); 119 * </pre> 120 * 121 * 122 * <p> 123 * Objects of the following type(s) are allowed in the list 124 * {@link ReferenceType } 125 * {@link AttributeType } 126 * 127 * 128 */ 129 public List<Object> getAttributeOrReference() { 130 if (attributeOrReference == null) { 131 attributeOrReference = new ArrayList<Object>(); 132 } 133 return this.attributeOrReference; 134 } 135 136 /** 137 * Gets the value of the gbeanInfo property. 138 * 139 * @return 140 * possible object is 141 * {@link String } 142 * 143 */ 144 public String getGbeanInfo() { 145 return gbeanInfo; 146 } 147 148 /** 149 * Sets the value of the gbeanInfo property. 150 * 151 * @param value 152 * allowed object is 153 * {@link String } 154 * 155 */ 156 public void setGbeanInfo(String value) { 157 this.gbeanInfo = value; 158 } 159 160 /** 161 * Gets the value of the load property. 162 * 163 * @return 164 * possible object is 165 * {@link Boolean } 166 * 167 */ 168 public boolean isLoad() { 169 if (load == null) { 170 return true; 171 } else { 172 return load; 173 } 174 } 175 176 /** 177 * Sets the value of the load property. 178 * 179 * @param value 180 * allowed object is 181 * {@link Boolean } 182 * 183 */ 184 public void setLoad(Boolean value) { 185 this.load = value; 186 } 187 188 /** 189 * Gets the value of the name property. 190 * 191 * @return 192 * possible object is 193 * {@link String } 194 * 195 */ 196 public String getName() { 197 return name; 198 } 199 200 /** 201 * Sets the value of the name property. 202 * 203 * @param value 204 * allowed object is 205 * {@link String } 206 * 207 */ 208 public void setName(String value) { 209 this.name = value; 210 } 211 212 }