View Javadoc
1 2 // This class is generated by XDoclet SDK (XGG). Do not edit! 3 package xdoclet.sdk.xtag.migrator; 4 5 /*** 6 * <p>XML element: <b><tag/></b></p>. 7 * This element exists in the following versions: 8 * <ul> 9 * <li>xtags_1_1.dtd</li> 10 * </ul> 11 * 12 * @bean.class name="tag" 13 * 14 * @author <a href="http://xdoclet.sf.net/">XDoclet</a> 15 */ 16 public final class Tag extends xdoclet.sdk.xgg.XGGPojo { 17 /*** 18 * Default constructor. Should not be called explicitly. It's available 19 * only to be able to convert xml into beans with Betwixt. 20 */ 21 public Tag() { 22 } 23 24 /*** 25 * Constructor. Should only be called if the current version is of the following: 26 * <ul> 27 * <li>xtags_1_1.dtd</li> 28 * </ul> 29 * @param parent the parent element 30 * @throws java.lang.IllegalStateException if this constructor is illegal 31 * with the current version. 32 */ 33 public Tag( Tags parent ) throws java.lang.IllegalStateException { 34 // Check that it's ok to call this constructor. 35 checkVersion( new String[] { "xtags_1_1.dtd" } ); 36 parent.addTag( this ); 37 } 38 39 /*** 40 * <p>XML element: <a href="Level.html"><level/></a></p> 41 * This element exists in the following versions: 42 * <ul> 43 * <li>xtags_1_1.dtd</li> 44 * </ul> 45 * 46 * The cardinality is (1..*) 47 * 48 * @param level the Level to add. 49 * @throws java.lang.IllegalStateException if this method is illegal 50 * with the current version. 51 */ 52 public final void addLevel( final Level level ) throws java.lang.IllegalStateException { 53 // Check that it's ok to call this method. 54 checkVersion( new String[] { "xtags_1_1.dtd" } ); 55 _levelCollection.add( level ); 56 } 57 58 /*** 59 * @bean.property 60 * @bean.attribute name="betwixt.index" value="0" 61 * @bean.attribute name="betwixt.name" value="level" 62 */ 63 public final java.util.Collection getLevelCollection() { 64 return _levelCollection; 65 } 66 67 private final java.util.Collection _levelCollection = new java.util.ArrayList(); 68 69 /*** 70 * <p>XML element: <a href="Xmlname.html"><name/></a></p> 71 * This element exists in the following versions: 72 * <ul> 73 * <li>xtags_1_1.dtd</li> 74 * </ul> 75 * 76 * The cardinality is (1..1) 77 * 78 * @param xmlname the Xmlname to add. 79 * @throws java.lang.IllegalStateException if this method is illegal 80 * with the current version. 81 */ 82 public final void setXmlname( final Xmlname xmlname ) throws java.lang.IllegalStateException { 83 // Check that it's ok to call this method. 84 checkVersion( new String[] { "xtags_1_1.dtd" } ); 85 86 // Check that it's not already set. 87 if( _xmlname != null ) { 88 throw new IllegalStateException("setXmlname(Xmlname) has already been called with " + 89 _xmlname + ". Attempt to call it again with " + xmlname 90 ); 91 } 92 _xmlname = xmlname; 93 } 94 95 /*** 96 * @bean.property 97 * @bean.attribute name="betwixt.index" value="1" 98 * @bean.attribute name="betwixt.name" value="name" 99 */ 100 public final Xmlname getXmlname() { 101 return _xmlname; 102 } 103 104 private Xmlname _xmlname; 105 106 /*** 107 * <p>XML element: <a href="UsageDescription.html"><usage-description/></a></p> 108 * This element exists in the following versions: 109 * <ul> 110 * <li>xtags_1_1.dtd</li> 111 * </ul> 112 * 113 * The cardinality is (1..1) 114 * 115 * @param usageDescription the UsageDescription to add. 116 * @throws java.lang.IllegalStateException if this method is illegal 117 * with the current version. 118 */ 119 public final void setUsageDescription( final UsageDescription usageDescription ) throws java.lang.IllegalStateException { 120 // Check that it's ok to call this method. 121 checkVersion( new String[] { "xtags_1_1.dtd" } ); 122 123 // Check that it's not already set. 124 if( _usageDescription != null ) { 125 throw new IllegalStateException("setUsageDescription(UsageDescription) has already been called with " + 126 _usageDescription + ". Attempt to call it again with " + usageDescription 127 ); 128 } 129 _usageDescription = usageDescription; 130 } 131 132 /*** 133 * @bean.property 134 * @bean.attribute name="betwixt.index" value="2" 135 * @bean.attribute name="betwixt.name" value="usage-description" 136 */ 137 public final UsageDescription getUsageDescription() { 138 return _usageDescription; 139 } 140 141 private UsageDescription _usageDescription; 142 143 /*** 144 * <p>XML element: <a href="Unique.html"><unique/></a></p> 145 * This element exists in the following versions: 146 * <ul> 147 * <li>xtags_1_1.dtd</li> 148 * </ul> 149 * 150 * The cardinality is (1..1) 151 * 152 * @param unique the Unique to add. 153 * @throws java.lang.IllegalStateException if this method is illegal 154 * with the current version. 155 */ 156 public final void setUnique( final Unique unique ) throws java.lang.IllegalStateException { 157 // Check that it's ok to call this method. 158 checkVersion( new String[] { "xtags_1_1.dtd" } ); 159 160 // Check that it's not already set. 161 if( _unique != null ) { 162 throw new IllegalStateException("setUnique(Unique) has already been called with " + 163 _unique + ". Attempt to call it again with " + unique 164 ); 165 } 166 _unique = unique; 167 } 168 169 /*** 170 * @bean.property 171 * @bean.attribute name="betwixt.index" value="3" 172 * @bean.attribute name="betwixt.name" value="unique" 173 */ 174 public final Unique getUnique() { 175 return _unique; 176 } 177 178 private Unique _unique; 179 180 /*** 181 * <p>XML element: <a href="Deprecated.html"><deprecated/></a></p> 182 * This element exists in the following versions: 183 * <ul> 184 * <li>xtags_1_1.dtd</li> 185 * </ul> 186 * 187 * The cardinality is (0..1) 188 * 189 * @param deprecated the Deprecated to add. 190 * @throws java.lang.IllegalStateException if this method is illegal 191 * with the current version. 192 */ 193 public final void setDeprecated( final Deprecated deprecated ) throws java.lang.IllegalStateException { 194 // Check that it's ok to call this method. 195 checkVersion( new String[] { "xtags_1_1.dtd" } ); 196 197 // Check that it's not already set. 198 if( _deprecated != null ) { 199 throw new IllegalStateException("setDeprecated(Deprecated) has already been called with " + 200 _deprecated + ". Attempt to call it again with " + deprecated 201 ); 202 } 203 _deprecated = deprecated; 204 } 205 206 /*** 207 * @bean.property 208 * @bean.attribute name="betwixt.index" value="4" 209 * @bean.attribute name="betwixt.name" value="deprecated" 210 */ 211 public final Deprecated getDeprecated() { 212 return _deprecated; 213 } 214 215 private Deprecated _deprecated; 216 217 /*** 218 * <p>XML element: <a href="ConditionDescription.html"><condition-description/></a></p> 219 * This element exists in the following versions: 220 * <ul> 221 * <li>xtags_1_1.dtd</li> 222 * </ul> 223 * 224 * The cardinality is (0..1) 225 * 226 * @param conditionDescription the ConditionDescription to add. 227 * @throws java.lang.IllegalStateException if this method is illegal 228 * with the current version. 229 */ 230 public final void setConditionDescription( final ConditionDescription conditionDescription ) throws java.lang.IllegalStateException { 231 // Check that it's ok to call this method. 232 checkVersion( new String[] { "xtags_1_1.dtd" } ); 233 234 // Check that it's not already set. 235 if( _conditionDescription != null ) { 236 throw new IllegalStateException("setConditionDescription(ConditionDescription) has already been called with " + 237 _conditionDescription + ". Attempt to call it again with " + conditionDescription 238 ); 239 } 240 _conditionDescription = conditionDescription; 241 } 242 243 /*** 244 * @bean.property 245 * @bean.attribute name="betwixt.index" value="5" 246 * @bean.attribute name="betwixt.name" value="condition-description" 247 */ 248 public final ConditionDescription getConditionDescription() { 249 return _conditionDescription; 250 } 251 252 private ConditionDescription _conditionDescription; 253 254 /*** 255 * <p>XML element: <a href="Condition.html"><condition/></a></p> 256 * This element exists in the following versions: 257 * <ul> 258 * <li>xtags_1_1.dtd</li> 259 * </ul> 260 * 261 * The cardinality is (0..1) 262 * 263 * @param condition the Condition to add. 264 * @throws java.lang.IllegalStateException if this method is illegal 265 * with the current version. 266 */ 267 public final void setCondition( final Condition condition ) throws java.lang.IllegalStateException { 268 // Check that it's ok to call this method. 269 checkVersion( new String[] { "xtags_1_1.dtd" } ); 270 271 // Check that it's not already set. 272 if( _condition != null ) { 273 throw new IllegalStateException("setCondition(Condition) has already been called with " + 274 _condition + ". Attempt to call it again with " + condition 275 ); 276 } 277 _condition = condition; 278 } 279 280 /*** 281 * @bean.property 282 * @bean.attribute name="betwixt.index" value="6" 283 * @bean.attribute name="betwixt.name" value="condition" 284 */ 285 public final Condition getCondition() { 286 return _condition; 287 } 288 289 private Condition _condition; 290 291 /*** 292 * <p>XML element: <a href="Parameter.html"><parameter/></a></p> 293 * This element exists in the following versions: 294 * <ul> 295 * <li>xtags_1_1.dtd</li> 296 * </ul> 297 * 298 * The cardinality is (0..*) 299 * 300 * @param parameter the Parameter to add. 301 * @throws java.lang.IllegalStateException if this method is illegal 302 * with the current version. 303 */ 304 public final void addParameter( final Parameter parameter ) throws java.lang.IllegalStateException { 305 // Check that it's ok to call this method. 306 checkVersion( new String[] { "xtags_1_1.dtd" } ); 307 _parameterCollection.add( parameter ); 308 } 309 310 /*** 311 * @bean.property 312 * @bean.attribute name="betwixt.index" value="7" 313 * @bean.attribute name="betwixt.name" value="parameter" 314 */ 315 public final java.util.Collection getParameterCollection() { 316 return _parameterCollection; 317 } 318 319 private final java.util.Collection _parameterCollection = new java.util.ArrayList(); 320 321 }

This page was automatically generated by Maven