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><condition/></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="condition" 13 * 14 * @author <a href="http://xdoclet.sf.net/">XDoclet</a> 15 */ 16 public final class Condition 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 Condition() { 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 Condition( Namespace 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.setCondition( this ); 37 } 38 /*** 39 * Constructor. Should only be called if the current version is of the following: 40 * <ul> 41 * <li>xtags_1_1.dtd</li> 42 * </ul> 43 * @param parent the parent element 44 * @throws java.lang.IllegalStateException if this constructor is illegal 45 * with the current version. 46 */ 47 public Condition( OptionSet parent ) throws java.lang.IllegalStateException { 48 // Check that it's ok to call this constructor. 49 checkVersion( new String[] { "xtags_1_1.dtd" } ); 50 parent.setCondition( this ); 51 } 52 /*** 53 * Constructor. Should only be called if the current version is of the following: 54 * <ul> 55 * <li>xtags_1_1.dtd</li> 56 * </ul> 57 * @param parent the parent element 58 * @throws java.lang.IllegalStateException if this constructor is illegal 59 * with the current version. 60 */ 61 public Condition( Tag parent ) throws java.lang.IllegalStateException { 62 // Check that it's ok to call this constructor. 63 checkVersion( new String[] { "xtags_1_1.dtd" } ); 64 parent.setCondition( this ); 65 } 66 /*** 67 * Constructor. Should only be called if the current version is of the following: 68 * <ul> 69 * <li>xtags_1_1.dtd</li> 70 * </ul> 71 * @param parent the parent element 72 * @throws java.lang.IllegalStateException if this constructor is illegal 73 * with the current version. 74 */ 75 public Condition( Parameter parent ) throws java.lang.IllegalStateException { 76 // Check that it's ok to call this constructor. 77 checkVersion( new String[] { "xtags_1_1.dtd" } ); 78 parent.setCondition( this ); 79 } 80 /*** 81 * Constructor. Should only be called if the current version is of the following: 82 * <ul> 83 * <li>xtags_1_1.dtd</li> 84 * </ul> 85 * @param parent the parent element 86 * @throws java.lang.IllegalStateException if this constructor is illegal 87 * with the current version. 88 */ 89 public Condition( Condition parent ) throws java.lang.IllegalStateException { 90 // Check that it's ok to call this constructor. 91 checkVersion( new String[] { "xtags_1_1.dtd" } ); 92 parent.addCondition( this ); 93 } 94 95 /*** 96 * <p>XML attribute: <b><type></b></p> 97 * This attribute exists in the following versions: 98 * <ul> 99 * <li>xtags_1_1.dtd</li> 100 * </ul> 101 * 102 * The cardinality is (1..1) 103 * 104 * @param type_Att the java.lang.String to add. 105 * @throws java.lang.IllegalStateException if this method is illegal 106 * with the current version. 107 */ 108 public final void setType_Att( final java.lang.String type_Att ) throws java.lang.IllegalStateException { 109 // Check that it's ok to call this method. 110 checkVersion( new String[] { "xtags_1_1.dtd" } ); 111 112 checkValue(type_Att, "(and|type|owner|class|not|final|tag-param|tag-param-exists|public|or|starts-with|constructor|tag-exists|abstract|field|name|method|static)"); 113 114 // Check that it's not already set. 115 if( _type_Att != null ) { 116 throw new IllegalStateException("setType_Att(java.lang.String) has already been called with " + 117 _type_Att + ". Attempt to call it again with " + type_Att 118 ); 119 } 120 _type_Att = type_Att; 121 } 122 123 /*** 124 * @bean.property 125 * @bean.attribute name="betwixt.index" value="0" 126 * @bean.attribute name="betwixt.name" value="type" 127 */ 128 public final java.lang.String getType_Att() { 129 return _type_Att; 130 } 131 132 private java.lang.String _type_Att; 133 134 /*** 135 * <p>XML element: <a href="ConditionParameter.html"><condition-parameter/></a></p> 136 * This element exists in the following versions: 137 * <ul> 138 * <li>xtags_1_1.dtd</li> 139 * </ul> 140 * 141 * The cardinality is (0..*) 142 * 143 * @param conditionParameter the ConditionParameter to add. 144 * @throws java.lang.IllegalStateException if this method is illegal 145 * with the current version. 146 */ 147 public final void addConditionParameter( final ConditionParameter conditionParameter ) throws java.lang.IllegalStateException { 148 // Check that it's ok to call this method. 149 checkVersion( new String[] { "xtags_1_1.dtd" } ); 150 _conditionParameterCollection.add( conditionParameter ); 151 } 152 153 /*** 154 * @bean.property 155 * @bean.attribute name="betwixt.index" value="1" 156 * @bean.attribute name="betwixt.name" value="condition-parameter" 157 */ 158 public final java.util.Collection getConditionParameterCollection() { 159 return _conditionParameterCollection; 160 } 161 162 private final java.util.Collection _conditionParameterCollection = new java.util.ArrayList(); 163 164 /*** 165 * <p>XML element: <a href="Condition.html"><condition/></a></p> 166 * This element exists in the following versions: 167 * <ul> 168 * <li>xtags_1_1.dtd</li> 169 * </ul> 170 * 171 * The cardinality is (0..*) 172 * 173 * @param condition the Condition to add. 174 * @throws java.lang.IllegalStateException if this method is illegal 175 * with the current version. 176 */ 177 public final void addCondition( final Condition condition ) throws java.lang.IllegalStateException { 178 // Check that it's ok to call this method. 179 checkVersion( new String[] { "xtags_1_1.dtd" } ); 180 _conditionCollection.add( condition ); 181 } 182 183 /*** 184 * @bean.property 185 * @bean.attribute name="betwixt.index" value="2" 186 * @bean.attribute name="betwixt.name" value="condition" 187 */ 188 public final java.util.Collection getConditionCollection() { 189 return _conditionCollection; 190 } 191 192 private final java.util.Collection _conditionCollection = new java.util.ArrayList(); 193 194 }

This page was automatically generated by Maven