src/share/jaxws_classes/javax/xml/bind/DatatypeConverterInterface.java

Thu, 31 Aug 2017 15:18:52 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:18:52 +0800
changeset 637
9c07ef4934dd
parent 397
b99d7e355d4b
parent 0
373ffda63c9a
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation. Oracle designates this
aoqi@0 8 * particular file as subject to the "Classpath" exception as provided
aoqi@0 9 * by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 *
aoqi@0 11 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 * accompanied this code).
aoqi@0 16 *
aoqi@0 17 * You should have received a copy of the GNU General Public License version
aoqi@0 18 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 *
aoqi@0 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 * or visit www.oracle.com if you need additional information or have any
aoqi@0 23 * questions.
aoqi@0 24 */
aoqi@0 25
aoqi@0 26 package javax.xml.bind;
aoqi@0 27
aoqi@0 28 /**
aoqi@0 29 * <p>
aoqi@0 30 * The DatatypeConverterInterface is for JAXB provider use only. A
aoqi@0 31 * JAXB provider must supply a class that implements this interface.
aoqi@0 32 * JAXB Providers are required to call the
aoqi@0 33 * {@link DatatypeConverter#setDatatypeConverter(DatatypeConverterInterface)
aoqi@0 34 * DatatypeConverter.setDatatypeConverter} api at
aoqi@0 35 * some point before the first marshal or unmarshal operation (perhaps during
aoqi@0 36 * the call to JAXBContext.newInstance). This step is necessary to configure
aoqi@0 37 * the converter that should be used to perform the print and parse
aoqi@0 38 * functionality. Calling this api repeatedly will have no effect - the
aoqi@0 39 * DatatypeConverter instance passed into the first invocation is the one that
aoqi@0 40 * will be used from then on.
aoqi@0 41 * </p>
aoqi@0 42 *
aoqi@0 43 * <p>
aoqi@0 44 * This interface defines the parse and print methods. There is one
aoqi@0 45 * parse and print method for each XML schema datatype specified in the
aoqi@0 46 * the default binding Table 5-1 in the JAXB specification.
aoqi@0 47 * </p>
aoqi@0 48 *
aoqi@0 49 * <p>
aoqi@0 50 * The parse and print methods defined here are invoked by the static parse
aoqi@0 51 * and print methods defined in the {@link DatatypeConverter DatatypeConverter}
aoqi@0 52 * class.
aoqi@0 53 * </p>
aoqi@0 54 *
aoqi@0 55 * <p>
aoqi@0 56 * A parse method for a XML schema datatype must be capable of converting any
aoqi@0 57 * lexical representation of the XML schema datatype ( specified by the
aoqi@0 58 * <a href="http://www.w3.org/TR/xmlschema-2/"> XML Schema Part2: Datatypes
aoqi@0 59 * specification</a> into a value in the value space of the XML schema datatype.
aoqi@0 60 * If an error is encountered during conversion, then an IllegalArgumentException
aoqi@0 61 * or a subclass of IllegalArgumentException must be thrown by the method.
aoqi@0 62 *
aoqi@0 63 * </p>
aoqi@0 64 *
aoqi@0 65 * <p>
aoqi@0 66 * A print method for a XML schema datatype can output any lexical
aoqi@0 67 * representation that is valid with respect to the XML schema datatype.
aoqi@0 68 * If an error is encountered during conversion, then an IllegalArgumentException,
aoqi@0 69 * or a subclass of IllegalArgumentException must be thrown by the method.
aoqi@0 70 * </p>
aoqi@0 71 *
aoqi@0 72 * The prefix xsd: is used to refer to XML schema datatypes
aoqi@0 73 * <a href="http://www.w3.org/TR/xmlschema-2/"> XML Schema Part2: Datatypes
aoqi@0 74 * specification.</a>
aoqi@0 75 *
aoqi@0 76 * <p>
aoqi@0 77 * @author <ul><li>Sekhar Vajjhala, Sun Microsystems, Inc.</li><li>Joe Fialli, Sun Microsystems Inc.</li><li>Kohsuke Kawaguchi, Sun Microsystems, Inc.</li><li>Ryan Shoemaker,Sun Microsystems Inc.</li></ul>
aoqi@0 78 * @see DatatypeConverter
aoqi@0 79 * @see ParseConversionEvent
aoqi@0 80 * @see PrintConversionEvent
aoqi@0 81 * @since JAXB1.0
aoqi@0 82 */
aoqi@0 83
aoqi@0 84 public interface DatatypeConverterInterface {
aoqi@0 85 /**
aoqi@0 86 * <p>
aoqi@0 87 * Convert the string argument into a string.
aoqi@0 88 * @param lexicalXSDString
aoqi@0 89 * A lexical representation of the XML Schema datatype xsd:string
aoqi@0 90 * @return
aoqi@0 91 * A string that is the same as the input string.
aoqi@0 92 */
aoqi@0 93 public String parseString( String lexicalXSDString );
aoqi@0 94
aoqi@0 95 /**
aoqi@0 96 * <p>
aoqi@0 97 * Convert the string argument into a BigInteger value.
aoqi@0 98 * @param lexicalXSDInteger
aoqi@0 99 * A string containing a lexical representation of
aoqi@0 100 * xsd:integer.
aoqi@0 101 * @return
aoqi@0 102 * A BigInteger value represented by the string argument.
aoqi@0 103 * @throws NumberFormatException <code>lexicalXSDInteger</code> is not a valid string representation of a {@link java.math.BigInteger} value.
aoqi@0 104 */
aoqi@0 105 public java.math.BigInteger parseInteger( String lexicalXSDInteger );
aoqi@0 106
aoqi@0 107 /**
aoqi@0 108 * <p>
aoqi@0 109 * Convert the string argument into an int value.
aoqi@0 110 * @param lexicalXSDInt
aoqi@0 111 * A string containing a lexical representation of
aoqi@0 112 * xsd:int.
aoqi@0 113 * @return
aoqi@0 114 * An int value represented byte the string argument.
aoqi@0 115 * @throws NumberFormatException <code>lexicalXSDInt</code> is not a valid string representation of an <code>int</code> value.
aoqi@0 116 */
aoqi@0 117 public int parseInt( String lexicalXSDInt );
aoqi@0 118
aoqi@0 119 /**
aoqi@0 120 * <p>
aoqi@0 121 * Converts the string argument into a long value.
aoqi@0 122 * @param lexicalXSDLong
aoqi@0 123 * A string containing lexical representation of
aoqi@0 124 * xsd:long.
aoqi@0 125 * @return
aoqi@0 126 * A long value represented by the string argument.
aoqi@0 127 * @throws NumberFormatException <code>lexicalXSDLong</code> is not a valid string representation of a <code>long</code> value.
aoqi@0 128 */
aoqi@0 129 public long parseLong( String lexicalXSDLong );
aoqi@0 130
aoqi@0 131 /**
aoqi@0 132 * <p>
aoqi@0 133 * Converts the string argument into a short value.
aoqi@0 134 * @param lexicalXSDShort
aoqi@0 135 * A string containing lexical representation of
aoqi@0 136 * xsd:short.
aoqi@0 137 * @return
aoqi@0 138 * A short value represented by the string argument.
aoqi@0 139 * @throws NumberFormatException <code>lexicalXSDShort</code> is not a valid string representation of a <code>short</code> value.
aoqi@0 140 */
aoqi@0 141 public short parseShort( String lexicalXSDShort );
aoqi@0 142
aoqi@0 143 /**
aoqi@0 144 * <p>
aoqi@0 145 * Converts the string argument into a BigDecimal value.
aoqi@0 146 * @param lexicalXSDDecimal
aoqi@0 147 * A string containing lexical representation of
aoqi@0 148 * xsd:decimal.
aoqi@0 149 * @return
aoqi@0 150 * A BigDecimal value represented by the string argument.
aoqi@0 151 * @throws NumberFormatException <code>lexicalXSDDecimal</code> is not a valid string representation of {@link java.math.BigDecimal}.
aoqi@0 152 */
aoqi@0 153 public java.math.BigDecimal parseDecimal( String lexicalXSDDecimal );
aoqi@0 154
aoqi@0 155 /**
aoqi@0 156 * <p>
aoqi@0 157 * Converts the string argument into a float value.
aoqi@0 158 * @param lexicalXSDFloat
aoqi@0 159 * A string containing lexical representation of
aoqi@0 160 * xsd:float.
aoqi@0 161 * @return
aoqi@0 162 * A float value represented by the string argument.
aoqi@0 163 * @throws NumberFormatException <code>lexicalXSDFloat</code> is not a valid string representation of a <code>float</code> value.
aoqi@0 164 */
aoqi@0 165 public float parseFloat( String lexicalXSDFloat );
aoqi@0 166
aoqi@0 167 /**
aoqi@0 168 * <p>
aoqi@0 169 * Converts the string argument into a double value.
aoqi@0 170 * @param lexicalXSDDouble
aoqi@0 171 * A string containing lexical representation of
aoqi@0 172 * xsd:double.
aoqi@0 173 * @return
aoqi@0 174 * A double value represented by the string argument.
aoqi@0 175 * @throws NumberFormatException <code>lexicalXSDDouble</code> is not a valid string representation of a <code>double</code> value.
aoqi@0 176 */
aoqi@0 177 public double parseDouble( String lexicalXSDDouble );
aoqi@0 178
aoqi@0 179 /**
aoqi@0 180 * <p>
aoqi@0 181 * Converts the string argument into a boolean value.
aoqi@0 182 * @param lexicalXSDBoolean
aoqi@0 183 * A string containing lexical representation of
aoqi@0 184 * xsd:boolean.
aoqi@0 185 * @return
aoqi@0 186 * A boolean value represented by the string argument.
aoqi@0 187 * @throws IllegalArgumentException if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:boolean.
aoqi@0 188 */
aoqi@0 189 public boolean parseBoolean( String lexicalXSDBoolean );
aoqi@0 190
aoqi@0 191 /**
aoqi@0 192 * <p>
aoqi@0 193 * Converts the string argument into a byte value.
aoqi@0 194 * @param lexicalXSDByte
aoqi@0 195 * A string containing lexical representation of
aoqi@0 196 * xsd:byte.
aoqi@0 197 * @return
aoqi@0 198 * A byte value represented by the string argument.
aoqi@0 199 * @throws NumberFormatException <code>lexicalXSDByte</code> does not contain a parseable byte.
aoqi@0 200 * @throws IllegalArgumentException if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:byte.
aoqi@0 201 */
aoqi@0 202 public byte parseByte( String lexicalXSDByte );
aoqi@0 203
aoqi@0 204 /**
aoqi@0 205 * <p>
aoqi@0 206 * Converts the string argument into a QName value.
aoqi@0 207 *
aoqi@0 208 * <p>
aoqi@0 209 * String parameter <tt>lexicalXSDQname</tt> must conform to lexical value space specifed at
aoqi@0 210 * <a href="http://www.w3.org/TR/xmlschema-2/#QName">XML Schema Part 2:Datatypes specification:QNames</a>
aoqi@0 211 *
aoqi@0 212 * @param lexicalXSDQName
aoqi@0 213 * A string containing lexical representation of xsd:QName.
aoqi@0 214 * @param nsc
aoqi@0 215 * A namespace context for interpreting a prefix within a QName.
aoqi@0 216 * @return
aoqi@0 217 * A QName value represented by the string argument.
aoqi@0 218 * @throws IllegalArgumentException if string parameter does not conform to XML Schema Part 2 specification or
aoqi@0 219 * if namespace prefix of <tt>lexicalXSDQname</tt> is not bound to a URI in NamespaceContext <tt>nsc</tt>.
aoqi@0 220 */
aoqi@0 221 public javax.xml.namespace.QName parseQName( String lexicalXSDQName,
aoqi@0 222 javax.xml.namespace.NamespaceContext nsc);
aoqi@0 223
aoqi@0 224 /**
aoqi@0 225 * <p>
aoqi@0 226 * Converts the string argument into a Calendar value.
aoqi@0 227 * @param lexicalXSDDateTime
aoqi@0 228 * A string containing lexical representation of
aoqi@0 229 * xsd:datetime.
aoqi@0 230 * @return
aoqi@0 231 * A Calendar object represented by the string argument.
aoqi@0 232 * @throws IllegalArgumentException if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:dateTime.
aoqi@0 233 */
aoqi@0 234 public java.util.Calendar parseDateTime( String lexicalXSDDateTime );
aoqi@0 235
aoqi@0 236 /**
aoqi@0 237 * <p>
aoqi@0 238 * Converts the string argument into an array of bytes.
aoqi@0 239 * @param lexicalXSDBase64Binary
aoqi@0 240 * A string containing lexical representation
aoqi@0 241 * of xsd:base64Binary.
aoqi@0 242 * @return
aoqi@0 243 * An array of bytes represented by the string argument.
aoqi@0 244 * @throws IllegalArgumentException if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:base64Binary
aoqi@0 245 */
aoqi@0 246 public byte[] parseBase64Binary( String lexicalXSDBase64Binary );
aoqi@0 247
aoqi@0 248 /**
aoqi@0 249 * <p>
aoqi@0 250 * Converts the string argument into an array of bytes.
aoqi@0 251 * @param lexicalXSDHexBinary
aoqi@0 252 * A string containing lexical representation of
aoqi@0 253 * xsd:hexBinary.
aoqi@0 254 * @return
aoqi@0 255 * An array of bytes represented by the string argument.
aoqi@0 256 * @throws IllegalArgumentException if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:hexBinary.
aoqi@0 257 */
aoqi@0 258 public byte[] parseHexBinary( String lexicalXSDHexBinary );
aoqi@0 259
aoqi@0 260 /**
aoqi@0 261 * <p>
aoqi@0 262 * Converts the string argument into a long value.
aoqi@0 263 * @param lexicalXSDUnsignedInt
aoqi@0 264 * A string containing lexical representation
aoqi@0 265 * of xsd:unsignedInt.
aoqi@0 266 * @return
aoqi@0 267 * A long value represented by the string argument.
aoqi@0 268 * @throws NumberFormatException if string parameter can not be parsed into a <tt>long</tt> value.
aoqi@0 269 */
aoqi@0 270 public long parseUnsignedInt( String lexicalXSDUnsignedInt );
aoqi@0 271
aoqi@0 272 /**
aoqi@0 273 * <p>
aoqi@0 274 * Converts the string argument into an int value.
aoqi@0 275 * @param lexicalXSDUnsignedShort
aoqi@0 276 * A string containing lexical
aoqi@0 277 * representation of xsd:unsignedShort.
aoqi@0 278 * @return
aoqi@0 279 * An int value represented by the string argument.
aoqi@0 280 * @throws NumberFormatException if string parameter can not be parsed into an <tt>int</tt> value.
aoqi@0 281 */
aoqi@0 282 public int parseUnsignedShort( String lexicalXSDUnsignedShort );
aoqi@0 283
aoqi@0 284 /**
aoqi@0 285 * <p>
aoqi@0 286 * Converts the string argument into a Calendar value.
aoqi@0 287 * @param lexicalXSDTime
aoqi@0 288 * A string containing lexical representation of
aoqi@0 289 * xsd:Time.
aoqi@0 290 * @return
aoqi@0 291 * A Calendar value represented by the string argument.
aoqi@0 292 * @throws IllegalArgumentException if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:Time.
aoqi@0 293 */
aoqi@0 294 public java.util.Calendar parseTime( String lexicalXSDTime );
aoqi@0 295
aoqi@0 296 /**
aoqi@0 297 * <p>
aoqi@0 298 * Converts the string argument into a Calendar value.
aoqi@0 299 * @param lexicalXSDDate
aoqi@0 300 * A string containing lexical representation of
aoqi@0 301 * xsd:Date.
aoqi@0 302 * @return
aoqi@0 303 * A Calendar value represented by the string argument.
aoqi@0 304 * @throws IllegalArgumentException if string parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for xsd:Date.
aoqi@0 305 */
aoqi@0 306 public java.util.Calendar parseDate( String lexicalXSDDate );
aoqi@0 307
aoqi@0 308 /**
aoqi@0 309 * <p>
aoqi@0 310 * Return a string containing the lexical representation of the
aoqi@0 311 * simple type.
aoqi@0 312 * @param lexicalXSDAnySimpleType
aoqi@0 313 * A string containing lexical
aoqi@0 314 * representation of the simple type.
aoqi@0 315 * @return
aoqi@0 316 * A string containing the lexical representation of the
aoqi@0 317 * simple type.
aoqi@0 318 */
aoqi@0 319 public String parseAnySimpleType( String lexicalXSDAnySimpleType );
aoqi@0 320
aoqi@0 321 /**
aoqi@0 322 * <p>
aoqi@0 323 * Converts the string argument into a string.
aoqi@0 324 * @param val
aoqi@0 325 * A string value.
aoqi@0 326 * @return
aoqi@0 327 * A string containing a lexical representation of xsd:string
aoqi@0 328 */
aoqi@0 329 public String printString( String val );
aoqi@0 330
aoqi@0 331 /**
aoqi@0 332 * <p>
aoqi@0 333 * Converts a BigInteger value into a string.
aoqi@0 334 * @param val
aoqi@0 335 * A BigInteger value
aoqi@0 336 * @return
aoqi@0 337 * A string containing a lexical representation of xsd:integer
aoqi@0 338 * @throws IllegalArgumentException <tt>val</tt> is null.
aoqi@0 339 */
aoqi@0 340 public String printInteger( java.math.BigInteger val );
aoqi@0 341
aoqi@0 342 /**
aoqi@0 343 * <p>
aoqi@0 344 * Converts an int value into a string.
aoqi@0 345 * @param val
aoqi@0 346 * An int value
aoqi@0 347 * @return
aoqi@0 348 * A string containing a lexical representation of xsd:int
aoqi@0 349 */
aoqi@0 350 public String printInt( int val );
aoqi@0 351
aoqi@0 352
aoqi@0 353 /**
aoqi@0 354 * <p>
aoqi@0 355 * Converts a long value into a string.
aoqi@0 356 * @param val
aoqi@0 357 * A long value
aoqi@0 358 * @return
aoqi@0 359 * A string containing a lexical representation of xsd:long
aoqi@0 360 */
aoqi@0 361 public String printLong( long val );
aoqi@0 362
aoqi@0 363 /**
aoqi@0 364 * <p>
aoqi@0 365 * Converts a short value into a string.
aoqi@0 366 * @param val
aoqi@0 367 * A short value
aoqi@0 368 * @return
aoqi@0 369 * A string containing a lexical representation of xsd:short
aoqi@0 370 */
aoqi@0 371 public String printShort( short val );
aoqi@0 372
aoqi@0 373 /**
aoqi@0 374 * <p>
aoqi@0 375 * Converts a BigDecimal value into a string.
aoqi@0 376 * @param val
aoqi@0 377 * A BigDecimal value
aoqi@0 378 * @return
aoqi@0 379 * A string containing a lexical representation of xsd:decimal
aoqi@0 380 * @throws IllegalArgumentException <tt>val</tt> is null.
aoqi@0 381 */
aoqi@0 382 public String printDecimal( java.math.BigDecimal val );
aoqi@0 383
aoqi@0 384 /**
aoqi@0 385 * <p>
aoqi@0 386 * Converts a float value into a string.
aoqi@0 387 * @param val
aoqi@0 388 * A float value
aoqi@0 389 * @return
aoqi@0 390 * A string containing a lexical representation of xsd:float
aoqi@0 391 */
aoqi@0 392 public String printFloat( float val );
aoqi@0 393
aoqi@0 394 /**
aoqi@0 395 * <p>
aoqi@0 396 * Converts a double value into a string.
aoqi@0 397 * @param val
aoqi@0 398 * A double value
aoqi@0 399 * @return
aoqi@0 400 * A string containing a lexical representation of xsd:double
aoqi@0 401 */
aoqi@0 402 public String printDouble( double val );
aoqi@0 403
aoqi@0 404 /**
aoqi@0 405 * <p>
aoqi@0 406 * Converts a boolean value into a string.
aoqi@0 407 * @param val
aoqi@0 408 * A boolean value
aoqi@0 409 * @return
aoqi@0 410 * A string containing a lexical representation of xsd:boolean
aoqi@0 411 */
aoqi@0 412 public String printBoolean( boolean val );
aoqi@0 413
aoqi@0 414 /**
aoqi@0 415 * <p>
aoqi@0 416 * Converts a byte value into a string.
aoqi@0 417 * @param val
aoqi@0 418 * A byte value
aoqi@0 419 * @return
aoqi@0 420 * A string containing a lexical representation of xsd:byte
aoqi@0 421 */
aoqi@0 422 public String printByte( byte val );
aoqi@0 423
aoqi@0 424 /**
aoqi@0 425 * <p>
aoqi@0 426 * Converts a QName instance into a string.
aoqi@0 427 * @param val
aoqi@0 428 * A QName value
aoqi@0 429 * @param nsc
aoqi@0 430 * A namespace context for interpreting a prefix within a QName.
aoqi@0 431 * @return
aoqi@0 432 * A string containing a lexical representation of QName
aoqi@0 433 * @throws IllegalArgumentException if <tt>val</tt> is null or
aoqi@0 434 * if <tt>nsc</tt> is non-null or <tt>nsc.getPrefix(nsprefixFromVal)</tt> is null.
aoqi@0 435 */
aoqi@0 436 public String printQName( javax.xml.namespace.QName val,
aoqi@0 437 javax.xml.namespace.NamespaceContext nsc );
aoqi@0 438
aoqi@0 439 /**
aoqi@0 440 * <p>
aoqi@0 441 * Converts a Calendar value into a string.
aoqi@0 442 * @param val
aoqi@0 443 * A Calendar value
aoqi@0 444 * @return
aoqi@0 445 * A string containing a lexical representation of xsd:dateTime
aoqi@0 446 * @throws IllegalArgumentException if <tt>val</tt> is null.
aoqi@0 447 */
aoqi@0 448 public String printDateTime( java.util.Calendar val );
aoqi@0 449
aoqi@0 450 /**
aoqi@0 451 * <p>
aoqi@0 452 * Converts an array of bytes into a string.
aoqi@0 453 * @param val
aoqi@0 454 * an array of bytes
aoqi@0 455 * @return
aoqi@0 456 * A string containing a lexical representation of xsd:base64Binary
aoqi@0 457 * @throws IllegalArgumentException if <tt>val</tt> is null.
aoqi@0 458 */
aoqi@0 459 public String printBase64Binary( byte[] val );
aoqi@0 460
aoqi@0 461 /**
aoqi@0 462 * <p>
aoqi@0 463 * Converts an array of bytes into a string.
aoqi@0 464 * @param val
aoqi@0 465 * an array of bytes
aoqi@0 466 * @return
aoqi@0 467 * A string containing a lexical representation of xsd:hexBinary
aoqi@0 468 * @throws IllegalArgumentException if <tt>val</tt> is null.
aoqi@0 469 */
aoqi@0 470 public String printHexBinary( byte[] val );
aoqi@0 471
aoqi@0 472 /**
aoqi@0 473 * <p>
aoqi@0 474 * Converts a long value into a string.
aoqi@0 475 * @param val
aoqi@0 476 * A long value
aoqi@0 477 * @return
aoqi@0 478 * A string containing a lexical representation of xsd:unsignedInt
aoqi@0 479 */
aoqi@0 480 public String printUnsignedInt( long val );
aoqi@0 481
aoqi@0 482 /**
aoqi@0 483 * <p>
aoqi@0 484 * Converts an int value into a string.
aoqi@0 485 * @param val
aoqi@0 486 * An int value
aoqi@0 487 * @return
aoqi@0 488 * A string containing a lexical representation of xsd:unsignedShort
aoqi@0 489 */
aoqi@0 490 public String printUnsignedShort( int val );
aoqi@0 491
aoqi@0 492 /**
aoqi@0 493 * <p>
aoqi@0 494 * Converts a Calendar value into a string.
aoqi@0 495 * @param val
aoqi@0 496 * A Calendar value
aoqi@0 497 * @return
aoqi@0 498 * A string containing a lexical representation of xsd:time
aoqi@0 499 * @throws IllegalArgumentException if <tt>val</tt> is null.
aoqi@0 500 */
aoqi@0 501 public String printTime( java.util.Calendar val );
aoqi@0 502
aoqi@0 503 /**
aoqi@0 504 * <p>
aoqi@0 505 * Converts a Calendar value into a string.
aoqi@0 506 * @param val
aoqi@0 507 * A Calendar value
aoqi@0 508 * @return
aoqi@0 509 * A string containing a lexical representation of xsd:date
aoqi@0 510 * @throws IllegalArgumentException if <tt>val</tt> is null.
aoqi@0 511 */
aoqi@0 512 public String printDate( java.util.Calendar val );
aoqi@0 513
aoqi@0 514 /**
aoqi@0 515 * <p>
aoqi@0 516 * Converts a string value into a string.
aoqi@0 517 * @param val
aoqi@0 518 * A string value
aoqi@0 519 * @return
aoqi@0 520 * A string containing a lexical representation of xsd:AnySimpleType
aoqi@0 521 */
aoqi@0 522 public String printAnySimpleType( String val );
aoqi@0 523 }

mercurial