1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_06) on Thu Nov 24 12:17:56 GMT 2005 -->
<TITLE>
DatatypeFactory
</TITLE>
<META NAME="keywords" CONTENT="javax.xml.datatype.DatatypeFactory class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="DatatypeFactory";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../javax/xml/datatype/DatatypeConstants.Field.html" title="class in javax.xml.datatype"><B>PREV CLASS</B></A>
<A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="DatatypeFactory.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.xml.datatype</FONT>
<BR>
Class DatatypeFactory</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>javax.xml.datatype.DatatypeFactory</B>
</PRE>
<HR>
<DL>
<DT>public abstract class <B>DatatypeFactory</B><DT>extends java.lang.Object</DL>
<P>
<p>Factory that creates new <code>javax.xml.datatype</code> <code>Object</code>s that map XML to/from Java <code>Object</code>s.</p>
<p id="DatatypeFactory.newInstance"><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newInstance()"><CODE>newInstance()</CODE></A> is used to create a new <code>DatatypeFactory</code>.
The following implementation resolution mechanisms are used in the following order:</p>
<ol>
<li>
If the system property specified by <A HREF="../../../javax/xml/datatype/DatatypeFactory.html#DATATYPEFACTORY_PROPERTY"><CODE>DATATYPEFACTORY_PROPERTY</CODE></A>, "<code>javax.xml.datatype.DatatypeFactory</code>",
exists, a class with the name of the property's value is instantiated.
Any Exception thrown during the instantiation process is wrapped as a <A HREF="../../../javax/xml/datatype/DatatypeConfigurationException.html" title="class in javax.xml.datatype"><CODE>DatatypeConfigurationException</CODE></A>.
</li>
<li>
If the file ${JAVA_HOME}/lib/jaxp.properties exists, it is loaded in a <CODE>Properties</CODE> <code>Object</code>.
The <code>Properties</code> <code>Object </code> is then queried for the property as documented in the prior step
and processed as documented in the prior step.
</li>
<li>
The services resolution mechanism is used, e.g. <code>META-INF/services/java.xml.datatype.DatatypeFactory</code>.
Any Exception thrown during the instantiation process is wrapped as a <A HREF="../../../javax/xml/datatype/DatatypeConfigurationException.html" title="class in javax.xml.datatype"><CODE>DatatypeConfigurationException</CODE></A>.
</li>
<li>
The final mechanism is to attempt to instantiate the <code>Class</code> specified by
<A HREF="../../../javax/xml/datatype/DatatypeFactory.html#DATATYPEFACTORY_IMPLEMENTATION_CLASS"><CODE>DATATYPEFACTORY_IMPLEMENTATION_CLASS</CODE></A>, "<code>javax.xml.datatype.DatatypeFactoryImpl</code>".
Any Exception thrown during the instantiation process is wrapped as a <A HREF="../../../javax/xml/datatype/DatatypeConfigurationException.html" title="class in javax.xml.datatype"><CODE>DatatypeConfigurationException</CODE></A>.
</li>
</ol>
<P>
<P>
<DL>
<DT><B>Since:</B></DT>
<DD>1.5</DD>
</DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#DATATYPEFACTORY_IMPLEMENTATION_CLASS">DATATYPEFACTORY_IMPLEMENTATION_CLASS</A></B></CODE>
<BR>
Default implementation class name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.3.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#DATATYPEFACTORY_PROPERTY">DATATYPEFACTORY_PROPERTY</A></B></CODE>
<BR>
Default property name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.3.</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#DatatypeFactory()">DatatypeFactory</A></B>()</CODE>
<BR>
Protected constructor to prevent instaniation outside of package.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDuration(boolean, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigDecimal)">newDuration</A></B>(boolean isPositive,
java.math.BigInteger years,
java.math.BigInteger months,
java.math.BigInteger days,
java.math.BigInteger hours,
java.math.BigInteger minutes,
java.math.BigDecimal seconds)</CODE>
<BR>
Obtain a new instance of a <code>Duration</code>
specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDuration(boolean, int, int, int, int, int, int)">newDuration</A></B>(boolean isPositive,
int years,
int months,
int days,
int hours,
int minutes,
int seconds)</CODE>
<BR>
Obtain a new instance of a <code>Duration</code>
specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDuration(long)">newDuration</A></B>(long durationInMilliSeconds)</CODE>
<BR>
Obtain a new instance of a <code>Duration</code>
specifying the <code>Duration</code> as milliseconds.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDuration(java.lang.String)">newDuration</A></B>(java.lang.String lexicalRepresentation)</CODE>
<BR>
Obtain a new instance of a <code>Duration</code>
specifying the <code>Duration</code> as its string representation, "PnYnMnDTnHnMnS",
as defined in XML Schema 1.0 section 3.2.6.1.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDurationDayTime(boolean, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger)">newDurationDayTime</A></B>(boolean isPositive,
java.math.BigInteger day,
java.math.BigInteger hour,
java.math.BigInteger minute,
java.math.BigInteger second)</CODE>
<BR>
Create a <code>Duration</code> of type <code>xdt:dayTimeDuration</code> using the specified
<code>day</code>, <code>hour</code>, <code>minute</code> and <code>second</code> as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDurationDayTime(boolean, int, int, int, int)">newDurationDayTime</A></B>(boolean isPositive,
int day,
int hour,
int minute,
int second)</CODE>
<BR>
Create a <code>Duration</code> of type <code>xdt:dayTimeDuration</code> using the specified
<code>day</code>, <code>hour</code>, <code>minute</code> and <code>second</code> as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDurationDayTime(long)">newDurationDayTime</A></B>(long durationInMilliseconds)</CODE>
<BR>
Create a <code>Duration</code> of type <code>xdt:dayTimeDuration</code> using the specified milliseconds as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDurationDayTime(java.lang.String)">newDurationDayTime</A></B>(java.lang.String lexicalRepresentation)</CODE>
<BR>
Create a <code>Duration</code> of type <code>xdt:dayTimeDuration</code> by parsing its <code>String</code> representation,
"<em>PnDTnHnMnS</em>", <a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDurationYearMonth(boolean, java.math.BigInteger, java.math.BigInteger)">newDurationYearMonth</A></B>(boolean isPositive,
java.math.BigInteger year,
java.math.BigInteger month)</CODE>
<BR>
Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> using the specified
<code>year</code> and <code>month</code> as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthyDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDurationYearMonth(boolean, int, int)">newDurationYearMonth</A></B>(boolean isPositive,
int year,
int month)</CODE>
<BR>
Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> using the specified
<code>year</code> and <code>month</code> as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthyDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDurationYearMonth(long)">newDurationYearMonth</A></B>(long durationInMilliseconds)</CODE>
<BR>
Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> using the specified milliseconds as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDurationYearMonth(java.lang.String)">newDurationYearMonth</A></B>(java.lang.String lexicalRepresentation)</CODE>
<BR>
Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> by parsing its <code>String</code> representation,
"<em>PnYnM</em>", <a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../javax/xml/datatype/DatatypeFactory.html" title="class in javax.xml.datatype">DatatypeFactory</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newInstance()">newInstance</A></B>()</CODE>
<BR>
Obtain a new instance of a <code>DatatypeFactory</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendar()">newXMLGregorianCalendar</A></B>()</CODE>
<BR>
Create a new instance of an <code>XMLGregorianCalendar</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendar(java.math.BigInteger, int, int, int, int, int, java.math.BigDecimal, int)">newXMLGregorianCalendar</A></B>(java.math.BigInteger year,
int month,
int day,
int hour,
int minute,
int second,
java.math.BigDecimal fractionalSecond,
int timezone)</CODE>
<BR>
Constructor allowing for complete value spaces allowed by
W3C XML Schema 1.0 recommendation for xsd:dateTime and related
builtin datatypes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendar(java.util.GregorianCalendar)">newXMLGregorianCalendar</A></B>(java.util.GregorianCalendar cal)</CODE>
<BR>
Create an <code>XMLGregorianCalendar</code> from a <CODE>GregorianCalendar</CODE>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendar(int, int, int, int, int, int, int, int)">newXMLGregorianCalendar</A></B>(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int timezone)</CODE>
<BR>
Constructor of value spaces that a
<code>java.util.GregorianCalendar</code> instance would need to convert to an
<code>XMLGregorianCalendar</code> instance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendar(java.lang.String)">newXMLGregorianCalendar</A></B>(java.lang.String lexicalRepresentation)</CODE>
<BR>
Create a new XMLGregorianCalendar by parsing the String as a lexical representation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendarDate(int, int, int, int)">newXMLGregorianCalendarDate</A></B>(int year,
int month,
int day,
int timezone)</CODE>
<BR>
Create a Java representation of XML Schema builtin datatype <code>date</code> or <code>g*</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendarTime(int, int, int, java.math.BigDecimal, int)">newXMLGregorianCalendarTime</A></B>(int hours,
int minutes,
int seconds,
java.math.BigDecimal fractionalSecond,
int timezone)</CODE>
<BR>
Create a Java instance of XML Schema builtin datatype time.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendarTime(int, int, int, int)">newXMLGregorianCalendarTime</A></B>(int hours,
int minutes,
int seconds,
int timezone)</CODE>
<BR>
Create a Java instance of XML Schema builtin datatype <code>time</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newXMLGregorianCalendarTime(int, int, int, int, int)">newXMLGregorianCalendarTime</A></B>(int hours,
int minutes,
int seconds,
int milliseconds,
int timezone)</CODE>
<BR>
Create a Java instance of XML Schema builtin datatype time.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="DATATYPEFACTORY_PROPERTY"><!-- --></A><H3>
DATATYPEFACTORY_PROPERTY</H3>
<PRE>
public static final java.lang.String <B>DATATYPEFACTORY_PROPERTY</B></PRE>
<DL>
<DD><p>Default property name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.3.</p>
<p>Default value is <code>javax.xml.datatype.DatatypeFactory</code>.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.xml.datatype.DatatypeFactory.DATATYPEFACTORY_PROPERTY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="DATATYPEFACTORY_IMPLEMENTATION_CLASS"><!-- --></A><H3>
DATATYPEFACTORY_IMPLEMENTATION_CLASS</H3>
<PRE>
public static final java.lang.String <B>DATATYPEFACTORY_IMPLEMENTATION_CLASS</B></PRE>
<DL>
<DD><p>Default implementation class name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.3.</p>
<p>Default value is <code>com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl</code>.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.xml.datatype.DatatypeFactory.DATATYPEFACTORY_IMPLEMENTATION_CLASS">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="DatatypeFactory()"><!-- --></A><H3>
DatatypeFactory</H3>
<PRE>
protected <B>DatatypeFactory</B>()</PRE>
<DL>
<DD><p>Protected constructor to prevent instaniation outside of package.</p>
<p>Use <A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newInstance()"><CODE>newInstance()</CODE></A> to create a <code>DatatypeFactory</code>.</p>
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="newInstance()"><!-- --></A><H3>
newInstance</H3>
<PRE>
public static <A HREF="../../../javax/xml/datatype/DatatypeFactory.html" title="class in javax.xml.datatype">DatatypeFactory</A> <B>newInstance</B>()
throws <A HREF="../../../javax/xml/datatype/DatatypeConfigurationException.html" title="class in javax.xml.datatype">DatatypeConfigurationException</A></PRE>
<DL>
<DD><p>Obtain a new instance of a <code>DatatypeFactory</code>.</p>
<p>The implementation resolution mechanisms are <a href="#DatatypeFactory.newInstance">defined</a> in this
<code>Class</code>'s documentation.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>New instance of a <code>DocumentBuilderFactory</code>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../javax/xml/datatype/DatatypeConfigurationException.html" title="class in javax.xml.datatype">DatatypeConfigurationException</A></CODE> - If the implementation is not
available or cannot be instantiated.</DL>
</DD>
</DL>
<HR>
<A NAME="newDuration(java.lang.String)"><!-- --></A><H3>
newDuration</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDuration</B>(java.lang.String lexicalRepresentation)</PRE>
<DL>
<DD><p>Obtain a new instance of a <code>Duration</code>
specifying the <code>Duration</code> as its string representation, "PnYnMnDTnHnMnS",
as defined in XML Schema 1.0 section 3.2.6.1.</p>
<p>XML Schema Part 2: Datatypes, 3.2.6 duration, defines <code>duration</code> as:</p>
<blockquote>
duration represents a duration of time.
The value space of duration is a six-dimensional space where the coordinates designate the
Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
These components are ordered in their significance by their order of appearance i.e. as
year, month, day, hour, minute, and second.
</blockquote>
<p>All six values are set and availabe from the created <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype"><CODE>Duration</CODE></A></p>
<p>The XML Schema specification states that values can be of an arbitrary size.
Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values.
An <CODE>UnsupportedOperationException</CODE> will be thrown with a message indicating implementation limits
if implementation capacities are exceeded.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>lexicalRepresentation</CODE> - <code>String</code> representation of a <code>Duration</code>.
<DT><B>Returns:</B><DD>New <code>Duration</code> created from parsing the <code>lexicalRepresentation</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If <code>lexicalRepresentation</code> is not a valid representation of a <code>Duration</code>.
<DD><CODE>java.lang.UnsupportedOperationException</CODE> - If implementation cannot support requested values.
<DD><CODE>java.lang.NullPointerException</CODE> - if <code>lexicalRepresentation</code> is <code>null</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="newDuration(long)"><!-- --></A><H3>
newDuration</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDuration</B>(long durationInMilliSeconds)</PRE>
<DL>
<DD><p>Obtain a new instance of a <code>Duration</code>
specifying the <code>Duration</code> as milliseconds.</p>
<p>XML Schema Part 2: Datatypes, 3.2.6 duration, defines <code>duration</code> as:</p>
<blockquote>
duration represents a duration of time.
The value space of duration is a six-dimensional space where the coordinates designate the
Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
These components are ordered in their significance by their order of appearance i.e. as
year, month, day, hour, minute, and second.
</blockquote>
<p>All six values are set by computing their values from the specified milliseconds
and are availabe using the <code>get</code> methods of the created <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype"><CODE>Duration</CODE></A>.
The values conform to and are defined by:</p>
<ul>
<li>ISO 8601:2000(E) Section 5.5.3.2 Alternative format</li>
<li><a href="http://www.w3.org/TR/xmlschema-2/#isoformats">
W3C XML Schema 1.0 Part 2, Appendix D, ISO 8601 Date and Time Formats</a>
</li>
<li><A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A> Date/Time Datatype Field Mapping Between XML Schema 1.0 and Java Representation</li>
</ul>
<p>The default start instance is defined by <CODE>GregorianCalendar</CODE>'s use of the start of the epoch: i.e.,
<CODE>Calendar.YEAR</CODE> = 1970,
<CODE>Calendar.MONTH</CODE> = <CODE>Calendar.JANUARY</CODE>,
<CODE>Calendar.DATE</CODE> = 1, etc.
This is important as there are variations in the Gregorian Calendar,
e.g. leap years have different days in the month = <CODE>Calendar.FEBRUARY</CODE>
so the result of <A HREF="../../../javax/xml/datatype/Duration.html#getMonths()"><CODE>Duration.getMonths()</CODE></A> and <A HREF="../../../javax/xml/datatype/Duration.html#getDays()"><CODE>Duration.getDays()</CODE></A> can be influenced.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>durationInMilliSeconds</CODE> - Duration in milliseconds to create.
<DT><B>Returns:</B><DD>New <code>Duration</code> representing <code>durationInMilliSeconds</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="newDuration(boolean, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigDecimal)"><!-- --></A><H3>
newDuration</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDuration</B>(boolean isPositive,
java.math.BigInteger years,
java.math.BigInteger months,
java.math.BigInteger days,
java.math.BigInteger hours,
java.math.BigInteger minutes,
java.math.BigDecimal seconds)</PRE>
<DL>
<DD><p>Obtain a new instance of a <code>Duration</code>
specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p>
<p>The XML Schema specification states that values can be of an arbitrary size.
Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values.
An <CODE>UnsupportedOperationException</CODE> will be thrown with a message indicating implementation limits
if implementation capacities are exceeded.</p>
<p>A <code>null</code> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isPositive</CODE> - Set to <code>false</code> to create a negative duration. When the length
of the duration is zero, this parameter will be ignored.<DD><CODE>years</CODE> - of this <code>Duration</code><DD><CODE>months</CODE> - of this <code>Duration</code><DD><CODE>days</CODE> - of this <code>Duration</code><DD><CODE>hours</CODE> - of this <code>Duration</code><DD><CODE>minutes</CODE> - of this <code>Duration</code><DD><CODE>seconds</CODE> - of this <code>Duration</code>
<DT><B>Returns:</B><DD>New <code>Duration</code> created from the specified values.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If values are not a valid representation of a <code>Duration</code>.
<DD><CODE>java.lang.UnsupportedOperationException</CODE> - If implementation cannot support requested values.</DL>
</DD>
</DL>
<HR>
<A NAME="newDuration(boolean, int, int, int, int, int, int)"><!-- --></A><H3>
newDuration</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDuration</B>(boolean isPositive,
int years,
int months,
int days,
int hours,
int minutes,
int seconds)</PRE>
<DL>
<DD><p>Obtain a new instance of a <code>Duration</code>
specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p>
<p>A <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isPositive</CODE> - Set to <code>false</code> to create a negative duration. When the length
of the duration is zero, this parameter will be ignored.<DD><CODE>years</CODE> - of this <code>Duration</code><DD><CODE>months</CODE> - of this <code>Duration</code><DD><CODE>days</CODE> - of this <code>Duration</code><DD><CODE>hours</CODE> - of this <code>Duration</code><DD><CODE>minutes</CODE> - of this <code>Duration</code><DD><CODE>seconds</CODE> - of this <code>Duration</code>
<DT><B>Returns:</B><DD>New <code>Duration</code> created from the specified values.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If values are not a valid representation of a <code>Duration</code>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/datatype/DatatypeFactory.html#newDuration(boolean, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigDecimal)"><CODE>newDuration(
boolean isPositive,
BigInteger years,
BigInteger months,
BigInteger days,
BigInteger hours,
BigInteger minutes,
BigDecimal seconds)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="newDurationDayTime(java.lang.String)"><!-- --></A><H3>
newDurationDayTime</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDurationDayTime</B>(java.lang.String lexicalRepresentation)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:dayTimeDuration</code> by parsing its <code>String</code> representation,
"<em>PnDTnHnMnS</em>", <a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</p>
<p>The datatype <code>xdt:dayTimeDuration</code> is a subtype of <code>xs:duration</code>
whose lexical representation contains only day, hour, minute, and second components.
This datatype resides in the namespace <code>http://www.w3.org/2003/11/xpath-datatypes</code>.</p>
<p>All four values are set and availabe from the created <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype"><CODE>Duration</CODE></A></p>
<p>The XML Schema specification states that values can be of an arbitrary size.
Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values.
An <CODE>UnsupportedOperationException</CODE> will be thrown with a message indicating implementation limits
if implementation capacities are exceeded.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>lexicalRepresentation</CODE> - Lexical representation of a duration.
<DT><B>Returns:</B><DD>New <code>Duration</code> created using the specified <code>lexicalRepresentation</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If the given string does not conform to the aforementioned specification.
<DD><CODE>java.lang.UnsupportedOperationException</CODE> - If implementation cannot support requested values.
<DD><CODE>java.lang.NullPointerException</CODE> - If <code>lexicalRepresentation</code> is <code>null</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="newDurationDayTime(long)"><!-- --></A><H3>
newDurationDayTime</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDurationDayTime</B>(long durationInMilliseconds)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:dayTimeDuration</code> using the specified milliseconds as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</p>
<p>The datatype <code>xdt:dayTimeDuration</code> is a subtype of <code>xs:duration</code>
whose lexical representation contains only day, hour, minute, and second components.
This datatype resides in the namespace <code>http://www.w3.org/2003/11/xpath-datatypes</code>.</p>
<p>All four values are set by computing their values from the specified milliseconds
and are availabe using the <code>get</code> methods of the created <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype"><CODE>Duration</CODE></A>.
The values conform to and are defined by:</p>
<ul>
<li>ISO 8601:2000(E) Section 5.5.3.2 Alternative format</li>
<li><a href="http://www.w3.org/TR/xmlschema-2/#isoformats">
W3C XML Schema 1.0 Part 2, Appendix D, ISO 8601 Date and Time Formats</a>
</li>
<li><A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A> Date/Time Datatype Field Mapping Between XML Schema 1.0 and Java Representation</li>
</ul>
<p>The default start instance is defined by <CODE>GregorianCalendar</CODE>'s use of the start of the epoch: i.e.,
<CODE>Calendar.YEAR</CODE> = 1970,
<CODE>Calendar.MONTH</CODE> = <CODE>Calendar.JANUARY</CODE>,
<CODE>Calendar.DATE</CODE> = 1, etc.
This is important as there are variations in the Gregorian Calendar,
e.g. leap years have different days in the month = <CODE>Calendar.FEBRUARY</CODE>
so the result of <A HREF="../../../javax/xml/datatype/Duration.html#getDays()"><CODE>Duration.getDays()</CODE></A> can be influenced.</p>
<p>Any remaining milliseconds after determining the day, hour, minute and second are discarded.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>durationInMilliseconds</CODE> - Milliseconds of <code>Duration</code> to create.
<DT><B>Returns:</B><DD>New <code>Duration</code> created with the specified <code>durationInMilliseconds</code>.<DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a></DL>
</DD>
</DL>
<HR>
<A NAME="newDurationDayTime(boolean, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger)"><!-- --></A><H3>
newDurationDayTime</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDurationDayTime</B>(boolean isPositive,
java.math.BigInteger day,
java.math.BigInteger hour,
java.math.BigInteger minute,
java.math.BigInteger second)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:dayTimeDuration</code> using the specified
<code>day</code>, <code>hour</code>, <code>minute</code> and <code>second</code> as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</p>
<p>The datatype <code>xdt:dayTimeDuration</code> is a subtype of <code>xs:duration</code>
whose lexical representation contains only day, hour, minute, and second components.
This datatype resides in the namespace <code>http://www.w3.org/2003/11/xpath-datatypes</code>.</p>
<p>The XML Schema specification states that values can be of an arbitrary size.
Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values.
An <CODE>UnsupportedOperationException</CODE> will be thrown with a message indicating implementation limits
if implementation capacities are exceeded.</p>
<p>A <code>null</code> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isPositive</CODE> - Set to <code>false</code> to create a negative duration. When the length
of the duration is zero, this parameter will be ignored.<DD><CODE>day</CODE> - Day of <code>Duration</code>.<DD><CODE>hour</CODE> - Hour of <code>Duration</code>.<DD><CODE>minute</CODE> - Minute of <code>Duration</code>.<DD><CODE>second</CODE> - Second of <code>Duration</code>.
<DT><B>Returns:</B><DD>New <code>Duration</code> created with the specified <code>day</code>, <code>hour</code>, <code>minute</code>
and <code>second</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any values would create an invalid <code>Duration</code>.
<DD><CODE>java.lang.UnsupportedOperationException</CODE> - If implementation cannot support requested values.</DL>
</DD>
</DL>
<HR>
<A NAME="newDurationDayTime(boolean, int, int, int, int)"><!-- --></A><H3>
newDurationDayTime</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDurationDayTime</B>(boolean isPositive,
int day,
int hour,
int minute,
int second)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:dayTimeDuration</code> using the specified
<code>day</code>, <code>hour</code>, <code>minute</code> and <code>second</code> as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>.</p>
<p>The datatype <code>xdt:dayTimeDuration</code> is a subtype of <code>xs:duration</code>
whose lexical representation contains only day, hour, minute, and second components.
This datatype resides in the namespace <code>http://www.w3.org/2003/11/xpath-datatypes</code>.</p>
<p>A <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isPositive</CODE> - Set to <code>false</code> to create a negative duration. When the length
of the duration is zero, this parameter will be ignored.<DD><CODE>day</CODE> - Day of <code>Duration</code>.<DD><CODE>hour</CODE> - Hour of <code>Duration</code>.<DD><CODE>minute</CODE> - Minute of <code>Duration</code>.<DD><CODE>second</CODE> - Second of <code>Duration</code>.
<DT><B>Returns:</B><DD>New <code>Duration</code> created with the specified <code>day</code>, <code>hour</code>, <code>minute</code>
and <code>second</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any values would create an invalid <code>Duration</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="newDurationYearMonth(java.lang.String)"><!-- --></A><H3>
newDurationYearMonth</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDurationYearMonth</B>(java.lang.String lexicalRepresentation)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> by parsing its <code>String</code> representation,
"<em>PnYnM</em>", <a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>.</p>
<p>The datatype <code>xdt:yearMonthDuration</code> is a subtype of <code>xs:duration</code>
whose lexical representation contains only year and month components.
This datatype resides in the namespace <A HREF="../../../javax/xml/XMLConstants.html#W3C_XPATH_DATATYPE_NS_URI"><CODE>XMLConstants.W3C_XPATH_DATATYPE_NS_URI</CODE></A>.</p>
<p>Both values are set and availabe from the created <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype"><CODE>Duration</CODE></A></p>
<p>The XML Schema specification states that values can be of an arbitrary size.
Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values.
An <CODE>UnsupportedOperationException</CODE> will be thrown with a message indicating implementation limits
if implementation capacities are exceeded.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>lexicalRepresentation</CODE> - Lexical representation of a duration.
<DT><B>Returns:</B><DD>New <code>Duration</code> created using the specified <code>lexicalRepresentation</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If the <code>lexicalRepresentation</code> does not conform to the specification.
<DD><CODE>java.lang.UnsupportedOperationException</CODE> - If implementation cannot support requested values.
<DD><CODE>java.lang.NullPointerException</CODE> - If <code>lexicalRepresentation</code> is <code>null</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="newDurationYearMonth(long)"><!-- --></A><H3>
newDurationYearMonth</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDurationYearMonth</B>(long durationInMilliseconds)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> using the specified milliseconds as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>.</p>
<p>The datatype <code>xdt:yearMonthDuration</code> is a subtype of <code>xs:duration</code>
whose lexical representation contains only year and month components.
This datatype resides in the namespace <A HREF="../../../javax/xml/XMLConstants.html#W3C_XPATH_DATATYPE_NS_URI"><CODE>XMLConstants.W3C_XPATH_DATATYPE_NS_URI</CODE></A>.</p>
<p>Both values are set by computing their values from the specified milliseconds
and are availabe using the <code>get</code> methods of the created <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype"><CODE>Duration</CODE></A>.
The values conform to and are defined by:</p>
<ul>
<li>ISO 8601:2000(E) Section 5.5.3.2 Alternative format</li>
<li><a href="http://www.w3.org/TR/xmlschema-2/#isoformats">
W3C XML Schema 1.0 Part 2, Appendix D, ISO 8601 Date and Time Formats</a>
</li>
<li><A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A> Date/Time Datatype Field Mapping Between XML Schema 1.0 and Java Representation</li>
</ul>
<p>The default start instance is defined by <CODE>GregorianCalendar</CODE>'s use of the start of the epoch: i.e.,
<CODE>Calendar.YEAR</CODE> = 1970,
<CODE>Calendar.MONTH</CODE> = <CODE>Calendar.JANUARY</CODE>,
<CODE>Calendar.DATE</CODE> = 1, etc.
This is important as there are variations in the Gregorian Calendar,
e.g. leap years have different days in the month = <CODE>Calendar.FEBRUARY</CODE>
so the result of <A HREF="../../../javax/xml/datatype/Duration.html#getMonths()"><CODE>Duration.getMonths()</CODE></A> can be influenced.</p>
<p>Any remaining milliseconds after determining the year and month are discarded.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>durationInMilliseconds</CODE> - Milliseconds of <code>Duration</code> to create.
<DT><B>Returns:</B><DD>New <code>Duration</code> created using the specified <code>durationInMilliseconds</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="newDurationYearMonth(boolean, java.math.BigInteger, java.math.BigInteger)"><!-- --></A><H3>
newDurationYearMonth</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDurationYearMonth</B>(boolean isPositive,
java.math.BigInteger year,
java.math.BigInteger month)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> using the specified
<code>year</code> and <code>month</code> as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthyDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>.</p>
<p>The XML Schema specification states that values can be of an arbitrary size.
Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values.
An <CODE>UnsupportedOperationException</CODE> will be thrown with a message indicating implementation limits
if implementation capacities are exceeded.</p>
<p>A <code>null</code> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isPositive</CODE> - Set to <code>false</code> to create a negative duration. When the length
of the duration is zero, this parameter will be ignored.<DD><CODE>year</CODE> - Year of <code>Duration</code>.<DD><CODE>month</CODE> - Month of <code>Duration</code>.
<DT><B>Returns:</B><DD>New <code>Duration</code> created using the specified <code>year</code> and <code>month</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any values would create an invalid <code>Duration</code>.
<DD><CODE>java.lang.UnsupportedOperationException</CODE> - If implementation cannot support requested values.</DL>
</DD>
</DL>
<HR>
<A NAME="newDurationYearMonth(boolean, int, int)"><!-- --></A><H3>
newDurationYearMonth</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype">Duration</A> <B>newDurationYearMonth</B>(boolean isPositive,
int year,
int month)</PRE>
<DL>
<DD><p>Create a <code>Duration</code> of type <code>xdt:yearMonthDuration</code> using the specified
<code>year</code> and <code>month</code> as defined in
<a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthyDuration">
XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>.</p>
<p>A <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isPositive</CODE> - Set to <code>false</code> to create a negative duration. When the length
of the duration is zero, this parameter will be ignored.<DD><CODE>year</CODE> - Year of <code>Duration</code>.<DD><CODE>month</CODE> - Month of <code>Duration</code>.
<DT><B>Returns:</B><DD>New <code>Duration</code> created using the specified <code>year</code> and <code>month</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any values would create an invalid <code>Duration</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="newXMLGregorianCalendar()"><!-- --></A><H3>
newXMLGregorianCalendar</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGregorianCalendar</B>()</PRE>
<DL>
<DD><p>Create a new instance of an <code>XMLGregorianCalendar</code>.</p>
<p>All date/time datatype fields set to <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> or null.</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>New <code>XMLGregorianCalendar</code> with all date/time datatype fields set to
<A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> or null.</DL>
</DD>
</DL>
<HR>
<A NAME="newXMLGregorianCalendar(java.lang.String)"><!-- --></A><H3>
newXMLGregorianCalendar</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGregorianCalendar</B>(java.lang.String lexicalRepresentation)</PRE>
<DL>
<DD><p>Create a new XMLGregorianCalendar by parsing the String as a lexical representation.</p>
<p>Parsing the lexical string representation is defined in
<a href="http://www.w3.org/TR/xmlschema-2/#dateTime-order">XML Schema 1.0 Part 2, Section 3.2.[7-14].1,
<em>Lexical Representation</em>.</a></p>
<p>The string representation may not have any leading and trailing whitespaces.</p>
<p>The parsing is done field by field so that
the following holds for any lexically correct String x:</p>
<pre>
newXMLGregorianCalendar(x).toXMLFormat().equals(x)
</pre>
<p>Except for the noted lexical/canonical representation mismatches
listed in <a href="http://www.w3.org/2001/05/xmlschema-errata#e2-45">
XML Schema 1.0 errata, Section 3.2.7.2</a>.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>lexicalRepresentation</CODE> - Lexical representation of one the eight XML Schema date/time datatypes.
<DT><B>Returns:</B><DD><code>XMLGregorianCalendar</code> created from the <code>lexicalRepresentation</code>.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If the <code>lexicalRepresentation</code> is not a valid <code>XMLGregorianCalendar</code>.
<DD><CODE>java.lang.NullPointerException</CODE> - If <code>lexicalRepresentation</code> is <code>null</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="newXMLGregorianCalendar(java.util.GregorianCalendar)"><!-- --></A><H3>
newXMLGregorianCalendar</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGregorianCalendar</B>(java.util.GregorianCalendar cal)</PRE>
<DL>
<DD><p>Create an <code>XMLGregorianCalendar</code> from a <CODE>GregorianCalendar</CODE>.</p>
<table border="2" rules="all" cellpadding="2">
<thead>
<tr>
<th align="center" colspan="2">
Field by Field Conversion from
<CODE>GregorianCalendar</CODE> to an <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A>
</th>
</tr>
<tr>
<th><code>java.util.GregorianCalendar</code> field</th>
<th><code>javax.xml.datatype.XMLGregorianCalendar</code> field</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ERA == GregorianCalendar.BC ? -YEAR : YEAR</code></td>
<td><A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#setYear(int)"><CODE>XMLGregorianCalendar.setYear(int year)</CODE></A></td>
</tr>
<tr>
<td><code>MONTH + 1</code></td>
<td><A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#setMonth(int)"><CODE>XMLGregorianCalendar.setMonth(int month)</CODE></A></td>
</tr>
<tr>
<td><code>DAY_OF_MONTH</code></td>
<td><A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#setDay(int)"><CODE>XMLGregorianCalendar.setDay(int day)</CODE></A></td>
</tr>
<tr>
<td><code>HOUR_OF_DAY, MINUTE, SECOND, MILLISECOND</code></td>
<td><A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#setTime(int, int, int, java.math.BigDecimal)"><CODE>XMLGregorianCalendar.setTime(int hour, int minute, int second, BigDecimal fractional)</CODE></A></td>
</tr>
<tr>
<td>
<code>(ZONE_OFFSET + DST_OFFSET) / (60*1000)</code><br/>
<em>(in minutes)</em>
</td>
<td><A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#setTimezone(int)"><CODE>XMLGregorianCalendar.setTimezone(int offset)</CODE></A><sup><em>*</em></sup>
</td>
</tr>
</tbody>
</table>
<p><em>*</em>conversion loss of information. It is not possible to represent
a <code>java.util.GregorianCalendar</code> daylight savings timezone id in the
XML Schema 1.0 date/time datatype representation.</p>
<p>To compute the return value's <code>TimeZone</code> field,
<ul>
<li>when <code>this.getTimezone() != FIELD_UNDEFINED</code>,
create a <code>java.util.TimeZone</code> with a custom timezone id
using the <code>this.getTimezone()</code>.</li>
<li>else use the <code>GregorianCalendar</code> default timezone value
for the host is defined as specified by
<code>java.util.TimeZone.getDefault()</code>.</li></p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cal</CODE> - <code>java.util.GregorianCalendar</code> used to create <code>XMLGregorianCalendar</code>
<DT><B>Returns:</B><DD><code>XMLGregorianCalendar</code> created from <code>java.util.GregorianCalendar</code>
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - If <code>cal</code> is <code>null</code>.</DL>
</DD>
</DL>
<HR>
<A NAME="newXMLGregorianCalendar(java.math.BigInteger, int, int, int, int, int, java.math.BigDecimal, int)"><!-- --></A><H3>
newXMLGregorianCalendar</H3>
<PRE>
public abstract <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGregorianCalendar</B>(java.math.BigInteger year,
int month,
int day,
int hour,
int minute,
int second,
java.math.BigDecimal fractionalSecond,
int timezone)</PRE>
<DL>
<DD><p>Constructor allowing for complete value spaces allowed by
W3C XML Schema 1.0 recommendation for xsd:dateTime and related
builtin datatypes. Note that <code>year</code> parameter supports
arbitrarily large numbers and fractionalSecond has infinite
precision.</p>
<p>A <code>null</code> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>year</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>month</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>day</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>hour</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>minute</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>second</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>fractionalSecond</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>timezone</CODE> - of <code>XMLGregorianCalendar</code> to be created.
<DT><B>Returns:</B><DD><code>XMLGregorianCalendar</code> created from specified values.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any individual parameter's value is outside the maximum value constraint for the field
as determined by the Date/Time Data Mapping table in <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A>
or if the composite values constitute an invalid <code>XMLGregorianCalendar</code> instance
as determined by <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#isValid()"><CODE>XMLGregorianCalendar.isValid()</CODE></A>.</DL>
</DD>
</DL>
<HR>
<A NAME="newXMLGregorianCalendar(int, int, int, int, int, int, int, int)"><!-- --></A><H3>
newXMLGregorianCalendar</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGregorianCalendar</B>(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond,
int timezone)</PRE>
<DL>
<DD><p>Constructor of value spaces that a
<code>java.util.GregorianCalendar</code> instance would need to convert to an
<code>XMLGregorianCalendar</code> instance.</p>
<p><code>XMLGregorianCalendar eon</code> and
<code>fractionalSecond</code> are set to <code>null</code></p>
<p>A <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>year</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>month</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>day</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>hour</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>minute</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>second</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>millisecond</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>timezone</CODE> - of <code>XMLGregorianCalendar</code> to be created.
<DT><B>Returns:</B><DD><code>XMLGregorianCalendar</code> created from specified values.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any individual parameter's value is outside the maximum value constraint for the field
as determined by the Date/Time Data Mapping table in <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A>
or if the composite values constitute an invalid <code>XMLGregorianCalendar</code> instance
as determined by <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#isValid()"><CODE>XMLGregorianCalendar.isValid()</CODE></A>.</DL>
</DD>
</DL>
<HR>
<A NAME="newXMLGregorianCalendarDate(int, int, int, int)"><!-- --></A><H3>
newXMLGregorianCalendarDate</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGregorianCalendarDate</B>(int year,
int month,
int day,
int timezone)</PRE>
<DL>
<DD><p>Create a Java representation of XML Schema builtin datatype <code>date</code> or <code>g*</code>.</p>
<p>For example, an instance of <code>gYear</code> can be created invoking this factory
with <code>month</code> and <code>day</code> parameters set to
<A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A>.</p>
<p>A <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>year</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>month</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>day</CODE> - of <code>XMLGregorianCalendar</code> to be created.<DD><CODE>timezone</CODE> - offset in minutes. <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> indicates optional field is not set.
<DT><B>Returns:</B><DD><code>XMLGregorianCalendar</code> created from parameter values.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any individual parameter's value is outside the maximum value constraint for the field
as determined by the Date/Time Data Mapping table in <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A>
or if the composite values constitute an invalid <code>XMLGregorianCalendar</code> instance
as determined by <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#isValid()"><CODE>XMLGregorianCalendar.isValid()</CODE></A>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="newXMLGregorianCalendarTime(int, int, int, int)"><!-- --></A><H3>
newXMLGregorianCalendarTime</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGregorianCalendarTime</B>(int hours,
int minutes,
int seconds,
int timezone)</PRE>
<DL>
<DD><p>Create a Java instance of XML Schema builtin datatype <code>time</code>.</p>
<p>A <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hours</CODE> - number of hours<DD><CODE>minutes</CODE> - number of minutes<DD><CODE>seconds</CODE> - number of seconds<DD><CODE>timezone</CODE> - offset in minutes. <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> indicates optional field is not set.
<DT><B>Returns:</B><DD><code>XMLGregorianCalendar</code> created from parameter values.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any individual parameter's value is outside the maximum value constraint for the field
as determined by the Date/Time Data Mapping table in <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A>
or if the composite values constitute an invalid <code>XMLGregorianCalendar</code> instance
as determined by <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#isValid()"><CODE>XMLGregorianCalendar.isValid()</CODE></A>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="newXMLGregorianCalendarTime(int, int, int, java.math.BigDecimal, int)"><!-- --></A><H3>
newXMLGregorianCalendarTime</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGregorianCalendarTime</B>(int hours,
int minutes,
int seconds,
java.math.BigDecimal fractionalSecond,
int timezone)</PRE>
<DL>
<DD><p>Create a Java instance of XML Schema builtin datatype time.</p>
<p>A <code>null</code> value indicates that field isnot set.</p>
<p>A <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hours</CODE> - number of hours<DD><CODE>minutes</CODE> - number of minutes<DD><CODE>seconds</CODE> - number of seconds<DD><CODE>fractionalSecond</CODE> - value of <code>null</code> indicates that this optional field is not set.<DD><CODE>timezone</CODE> - offset in minutes. <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> indicates optional field is not set.
<DT><B>Returns:</B><DD><code>XMLGregorianCalendar</code> created from parameter values.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any individual parameter's value is outside the maximum value constraint for the field
as determined by the Date/Time Data Mapping table in <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A>
or if the composite values constitute an invalid <code>XMLGregorianCalendar</code> instance
as determined by <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#isValid()"><CODE>XMLGregorianCalendar.isValid()</CODE></A>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="newXMLGregorianCalendarTime(int, int, int, int, int)"><!-- --></A><H3>
newXMLGregorianCalendarTime</H3>
<PRE>
public <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype">XMLGregorianCalendar</A> <B>newXMLGregorianCalendarTime</B>(int hours,
int minutes,
int seconds,
int milliseconds,
int timezone)</PRE>
<DL>
<DD><p>Create a Java instance of XML Schema builtin datatype time.</p>
<p>A <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> value indicates that field isnot set.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hours</CODE> - number of hours<DD><CODE>minutes</CODE> - number of minutes<DD><CODE>seconds</CODE> - number of seconds<DD><CODE>milliseconds</CODE> - number of milliseconds<DD><CODE>timezone</CODE> - offset in minutes. <A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A> indicates optional field is not set.
<DT><B>Returns:</B><DD><code>XMLGregorianCalendar</code> created from parameter values.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If any individual parameter's value is outside the maximum value constraint for the field
as determined by the Date/Time Data Mapping table in <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html" title="class in javax.xml.datatype"><CODE>XMLGregorianCalendar</CODE></A>
or if the composite values constitute an invalid <code>XMLGregorianCalendar</code> instance
as determined by <A HREF="../../../javax/xml/datatype/XMLGregorianCalendar.html#isValid()"><CODE>XMLGregorianCalendar.isValid()</CODE></A>.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/datatype/DatatypeConstants.html#FIELD_UNDEFINED"><CODE>DatatypeConstants.FIELD_UNDEFINED</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../javax/xml/datatype/DatatypeConstants.Field.html" title="class in javax.xml.datatype"><B>PREV CLASS</B></A>
<A HREF="../../../javax/xml/datatype/Duration.html" title="class in javax.xml.datatype"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="DatatypeFactory.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
|