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