| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | |
|---|
| 3 | <simpleTypes> |
|---|
| 4 | |
|---|
| 5 | <!-- =============================================================== |
|---|
| 6 | TYPE-SAFE ENUMERATIONS |
|---|
| 7 | =============================================================== --> |
|---|
| 8 | <typeSafeEnumerations> |
|---|
| 9 | <enumeration |
|---|
| 10 | classname="Color" |
|---|
| 11 | package="org.jcoderz.commons"> |
|---|
| 12 | <value>blue</value> |
|---|
| 13 | <value>red</value> |
|---|
| 14 | <value>yellow</value> |
|---|
| 15 | </enumeration> |
|---|
| 16 | </typeSafeEnumerations> |
|---|
| 17 | |
|---|
| 18 | <enumeration |
|---|
| 19 | classname="TestEnum" |
|---|
| 20 | package="org.jcoderz.commons.types.samples" |
|---|
| 21 | user-type="string"> |
|---|
| 22 | <value>Clubs</value> |
|---|
| 23 | <value>Diamonds</value> |
|---|
| 24 | <value>Hearts</value> |
|---|
| 25 | <value>Spades</value> |
|---|
| 26 | </enumeration> |
|---|
| 27 | |
|---|
| 28 | <enumeration |
|---|
| 29 | classname="TestEnumAsString" |
|---|
| 30 | package="org.jcoderz.commons.types.samples" |
|---|
| 31 | user-type="string"> |
|---|
| 32 | <value>Clubs</value> |
|---|
| 33 | <value>Diamonds</value> |
|---|
| 34 | <value>Hearts</value> |
|---|
| 35 | <value>Spades</value> |
|---|
| 36 | </enumeration> |
|---|
| 37 | |
|---|
| 38 | <enumeration |
|---|
| 39 | classname="TestRoles" |
|---|
| 40 | package="org.jcoderz.commons.types.samples" |
|---|
| 41 | user-type="string"> |
|---|
| 42 | <value description="Experts">FOO.R10021</value> |
|---|
| 43 | <value description="Guests">FOO.R10022</value> |
|---|
| 44 | </enumeration> |
|---|
| 45 | |
|---|
| 46 | <enumeration |
|---|
| 47 | classname="TestEnumAsNumeric" |
|---|
| 48 | package="org.jcoderz.commons.types.samples" |
|---|
| 49 | user-type="numeric"> |
|---|
| 50 | <value>Clubs</value> |
|---|
| 51 | <value>Diamonds</value> |
|---|
| 52 | <value>Hearts</value> |
|---|
| 53 | <value>Spades</value> |
|---|
| 54 | </enumeration> |
|---|
| 55 | |
|---|
| 56 | <enumeration |
|---|
| 57 | classname="TestEnumExpliciteValue" |
|---|
| 58 | package="org.jcoderz.commons.types.samples" |
|---|
| 59 | user-type="numeric"> |
|---|
| 60 | <value numeric="1">Clubs</value> |
|---|
| 61 | <value numeric="2">Diamonds</value> |
|---|
| 62 | <value numeric="4">Hearts</value> |
|---|
| 63 | <value numeric="8">Spades</value> |
|---|
| 64 | </enumeration> |
|---|
| 65 | |
|---|
| 66 | <enumeration |
|---|
| 67 | classname="TestEnumWiredText" |
|---|
| 68 | package="org.jcoderz.commons.types.samples" |
|---|
| 69 | user-type="string"> |
|---|
| 70 | <value>Zues (1)</value> |
|---|
| 71 | <value symbol="TEST">Strange!</value> |
|---|
| 72 | <value>5.7.2.6 / 12</value> |
|---|
| 73 | </enumeration> |
|---|
| 74 | |
|---|
| 75 | <!-- =============================================================== |
|---|
| 76 | RESTRICTED STRINGS |
|---|
| 77 | =============================================================== --> |
|---|
| 78 | <restrictedStrings> |
|---|
| 79 | <restrictedString |
|---|
| 80 | classname="FooString" |
|---|
| 81 | package="org.jcoderz.commons" |
|---|
| 82 | min-length="1" |
|---|
| 83 | max-length="10" |
|---|
| 84 | user-type="true"> |
|---|
| 85 | <constant |
|---|
| 86 | name="CONSTANT_VALUE" |
|---|
| 87 | value="foo" |
|---|
| 88 | comment="Additional Constant defined in the XML document."/> |
|---|
| 89 | </restrictedString> |
|---|
| 90 | </restrictedStrings> |
|---|
| 91 | |
|---|
| 92 | <!-- =============================================================== |
|---|
| 93 | RESTRICTED LONG |
|---|
| 94 | =============================================================== --> |
|---|
| 95 | <restrictedLongs> |
|---|
| 96 | <restrictedLong |
|---|
| 97 | classname="FooLong" |
|---|
| 98 | package="org.jcoderz.commons" |
|---|
| 99 | min-value="1" |
|---|
| 100 | max-value="10"> |
|---|
| 101 | <constant |
|---|
| 102 | name="CONSTANT_VALUE" |
|---|
| 103 | value="5" |
|---|
| 104 | comment="Additional Constant defined in the XML document."/> |
|---|
| 105 | </restrictedLong> |
|---|
| 106 | <restrictedLong |
|---|
| 107 | classname="SampleLong" |
|---|
| 108 | package="org.jcoderz.commons.types.samples" |
|---|
| 109 | min-value="1" |
|---|
| 110 | max-value="10" |
|---|
| 111 | user-type="numeric"> |
|---|
| 112 | <constant |
|---|
| 113 | name="CONSTANT_VALUE" |
|---|
| 114 | value="5" |
|---|
| 115 | comment="Additional Constant defined in the XML document."/> |
|---|
| 116 | </restrictedLong> |
|---|
| 117 | </restrictedLongs> |
|---|
| 118 | |
|---|
| 119 | <!-- =============================================================== |
|---|
| 120 | REGEX STRINGS |
|---|
| 121 | =============================================================== --> |
|---|
| 122 | <regexStrings> |
|---|
| 123 | <regexString |
|---|
| 124 | classname="RegexString" |
|---|
| 125 | package="org.jcoderz.commons"> |
|---|
| 126 | <regex>foo|bar|buz</regex> |
|---|
| 127 | </regexString> |
|---|
| 128 | </regexStrings> |
|---|
| 129 | |
|---|
| 130 | <!-- =============================================================== |
|---|
| 131 | VALUE OBJECTS |
|---|
| 132 | =============================================================== --> |
|---|
| 133 | <valueObjects> |
|---|
| 134 | <valueObject |
|---|
| 135 | classname="SampleValueObject" |
|---|
| 136 | baseclass="SampleValueObjectBase" |
|---|
| 137 | package="org.jcoderz.commons.types.samples" |
|---|
| 138 | serializable="true" |
|---|
| 139 | final="false" > |
|---|
| 140 | <member name="test value" |
|---|
| 141 | type="long"/> |
|---|
| 142 | </valueObject> |
|---|
| 143 | <valueObject |
|---|
| 144 | classname="SampleValueObjectBase" |
|---|
| 145 | package="org.jcoderz.commons.types.samples" |
|---|
| 146 | serializable="true" |
|---|
| 147 | final="false" > |
|---|
| 148 | <member name="test value base" |
|---|
| 149 | type="long"/> |
|---|
| 150 | </valueObject> |
|---|
| 151 | <valueObject |
|---|
| 152 | classname="FooValueObject" |
|---|
| 153 | package="org.jcoderz.commons.types.samples" |
|---|
| 154 | serializable="true" |
|---|
| 155 | final="false" > |
|---|
| 156 | <description>The Foo is documented here!</description> |
|---|
| 157 | <xdoclet> |
|---|
| 158 | <hibernate.class |
|---|
| 159 | table="FooTable" dynamic-update="true"/> |
|---|
| 160 | <hibernate.cache usage="read-only"/> |
|---|
| 161 | </xdoclet> |
|---|
| 162 | <member |
|---|
| 163 | name="Id" |
|---|
| 164 | type="long"> |
|---|
| 165 | <decription>unique identifier for Foo</decription> |
|---|
| 166 | <xdoclet> |
|---|
| 167 | <hibernate.id |
|---|
| 168 | generator-class="native" |
|---|
| 169 | unsaved-value="-1"/> |
|---|
| 170 | </xdoclet> |
|---|
| 171 | </member> |
|---|
| 172 | <member |
|---|
| 173 | name="Creation Date" |
|---|
| 174 | type="org.jcoderz.commons.types.Date"> |
|---|
| 175 | creation date of Buz |
|---|
| 176 | </member> |
|---|
| 177 | <member |
|---|
| 178 | name="Participants" |
|---|
| 179 | type="java.util.List" |
|---|
| 180 | initial-value="new java.util.ArrayList()" |
|---|
| 181 | final="true">List of all Merchants |
|---|
| 182 | </member> |
|---|
| 183 | </valueObject> |
|---|
| 184 | <valueObject |
|---|
| 185 | classname="BarValueObject" |
|---|
| 186 | package="org.jcoderz.commons.types.samples" |
|---|
| 187 | serializable="true" |
|---|
| 188 | final="false" > |
|---|
| 189 | <description>The Bar is documented here!</description> |
|---|
| 190 | <member |
|---|
| 191 | name="Id" |
|---|
| 192 | type="long"> |
|---|
| 193 | <decription>unique identifier for Foo</decription> |
|---|
| 194 | </member> |
|---|
| 195 | <member |
|---|
| 196 | name="Creation Date" |
|---|
| 197 | type="org.jcoderz.commons.types.Date" |
|---|
| 198 | final="true"> |
|---|
| 199 | creation date of Buz |
|---|
| 200 | </member> |
|---|
| 201 | </valueObject> |
|---|
| 202 | <valueObject |
|---|
| 203 | classname="CopyValueSampleObject" |
|---|
| 204 | package="org.jcoderz.commons.types.samples" |
|---|
| 205 | serializable="true" |
|---|
| 206 | final="false" > |
|---|
| 207 | <description>Class to test the 'copyValue functionality</description> |
|---|
| 208 | <member |
|---|
| 209 | name="modification date" |
|---|
| 210 | type="java.util.Date" |
|---|
| 211 | copyValue="clone"> |
|---|
| 212 | <decription>Sample value copied via clone</decription> |
|---|
| 213 | </member> |
|---|
| 214 | <member |
|---|
| 215 | name="sample bar" |
|---|
| 216 | type="BarValueObject" |
|---|
| 217 | copyValue="constructor" |
|---|
| 218 | final="true"> |
|---|
| 219 | <decription>Sample value copied via copy constructor</decription> |
|---|
| 220 | </member> |
|---|
| 221 | </valueObject> |
|---|
| 222 | <!-- |
|---|
| 223 | <valueObject |
|---|
| 224 | classname="Settlement" |
|---|
| 225 | package="org.jcoderz.commons.types.samples" |
|---|
| 226 | serializable="true" |
|---|
| 227 | final="false"> |
|---|
| 228 | <description>The Settlement.</description> |
|---|
| 229 | <member |
|---|
| 230 | name="Amount" |
|---|
| 231 | type="org.jcoderz.commons.types.PrecisionAmount"> |
|---|
| 232 | amount of this settlement |
|---|
| 233 | </member> |
|---|
| 234 | <member |
|---|
| 235 | name="Settlement Date" |
|---|
| 236 | type="org.jcoderz.commons.types.Date"> |
|---|
| 237 | date of this settlement |
|---|
| 238 | </member> |
|---|
| 239 | <member |
|---|
| 240 | name="Settlement State" |
|---|
| 241 | type="SettlementState"> |
|---|
| 242 | state of this settlement |
|---|
| 243 | </member> |
|---|
| 244 | <member |
|---|
| 245 | name="Payor" |
|---|
| 246 | type="org.jcoderz.commons.types.ParticipantId"> |
|---|
| 247 | payor of this settlement |
|---|
| 248 | </member> |
|---|
| 249 | <member |
|---|
| 250 | name="Payee" |
|---|
| 251 | type="org.jcoderz.commons.types.ParticipantId"> |
|---|
| 252 | payee of this settlement |
|---|
| 253 | </member> |
|---|
| 254 | </valueObject> --> |
|---|
| 255 | </valueObjects> |
|---|
| 256 | |
|---|
| 257 | <fixPointNumbers> |
|---|
| 258 | <fixPointNumber |
|---|
| 259 | classname="SampleFixPoint" |
|---|
| 260 | package="org.jcoderz.commons.types.samples" |
|---|
| 261 | min-value="-100.50" |
|---|
| 262 | fraction-digits="2" |
|---|
| 263 | total-digits="5" |
|---|
| 264 | user-type="true"> |
|---|
| 265 | <constant |
|---|
| 266 | name="ZERO" |
|---|
| 267 | value="0.00" |
|---|
| 268 | comment="The ZERO instance."/> |
|---|
| 269 | <constant |
|---|
| 270 | name="CONSTANT_VALUE" |
|---|
| 271 | value="5.12" |
|---|
| 272 | comment="Additional Constant defined in the XML document."/> |
|---|
| 273 | </fixPointNumber> |
|---|
| 274 | <fixPointNumber |
|---|
| 275 | classname="TestFixPoint" |
|---|
| 276 | package="org.jcoderz.commons.types.samples" |
|---|
| 277 | min-value="-9999999.999" |
|---|
| 278 | max-value="9999999.999" |
|---|
| 279 | fraction-digits="3" |
|---|
| 280 | total-digits="10" |
|---|
| 281 | user-type="true"> |
|---|
| 282 | </fixPointNumber> |
|---|
| 283 | <fixPointNumber |
|---|
| 284 | classname="TestFixPointTwo" |
|---|
| 285 | package="org.jcoderz.commons.types.samples" |
|---|
| 286 | min-value="-9999999.99999" |
|---|
| 287 | max-value="9999999.99999" |
|---|
| 288 | fraction-digits="5" |
|---|
| 289 | total-digits="12" |
|---|
| 290 | user-type="true"> |
|---|
| 291 | </fixPointNumber> |
|---|
| 292 | |
|---|
| 293 | </fixPointNumbers> |
|---|
| 294 | |
|---|
| 295 | |
|---|
| 296 | <!-- Test the implements feature: --> |
|---|
| 297 | <enumeration |
|---|
| 298 | classname="TaggedColor" |
|---|
| 299 | package="org.jcoderz.commons.types" |
|---|
| 300 | implements="org.jcoderz.commons.types.TestTaggerInterface"> |
|---|
| 301 | <value>blue</value> |
|---|
| 302 | <value>red</value> |
|---|
| 303 | <value>yellow</value> |
|---|
| 304 | </enumeration> |
|---|
| 305 | <restrictedString |
|---|
| 306 | classname="TaggedFooString" |
|---|
| 307 | package="org.jcoderz.commons.types" |
|---|
| 308 | min-length="1" max-length="10" |
|---|
| 309 | implements="org.jcoderz.commons.types.TestTaggerInterface"> |
|---|
| 310 | </restrictedString> |
|---|
| 311 | <valueObject |
|---|
| 312 | classname="TaggedSampleValueObject" |
|---|
| 313 | baseclass="org.jcoderz.commons.types.samples.SampleValueObjectBase" |
|---|
| 314 | package="org.jcoderz.commons.types" |
|---|
| 315 | serializable="true" |
|---|
| 316 | final="false" |
|---|
| 317 | implements="org.jcoderz.commons.types.TestTaggerInterface"> |
|---|
| 318 | <member name="test value" |
|---|
| 319 | type="long"/> |
|---|
| 320 | </valueObject> |
|---|
| 321 | <valueObject |
|---|
| 322 | classname="TaggedPlainSampleValueObject" |
|---|
| 323 | package="org.jcoderz.commons.types" |
|---|
| 324 | final="final" |
|---|
| 325 | implements="org.jcoderz.commons.types.TestTaggerInterface"> |
|---|
| 326 | <member name="test value" type="long"/> |
|---|
| 327 | <member name="test value boolean" type="boolean"/> |
|---|
| 328 | <member name="test value boolean object" type="Boolean"/> |
|---|
| 329 | </valueObject> |
|---|
| 330 | <valueObject |
|---|
| 331 | classname="TaggedSerializableSampleValueObject" |
|---|
| 332 | package="org.jcoderz.commons.types" |
|---|
| 333 | implements="org.jcoderz.commons.types.TestTaggerInterface"> |
|---|
| 334 | <member name="test value" type="long"/> |
|---|
| 335 | <member name="test value boolean" type="boolean"/> |
|---|
| 336 | <member name="test value boolean object" type="Boolean"/> |
|---|
| 337 | </valueObject> |
|---|
| 338 | |
|---|
| 339 | </simpleTypes> |
|---|