/usr/share/doc/libosgi-compendium-java/api/info/dmtree/DmtData.html is in libosgi-compendium-java-doc 4.3.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!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.6.0_23) on Wed Nov 09 19:45:53 UTC 2011 -->
<TITLE>
DmtData
</TITLE>
<META NAME="date" CONTENT="2011-11-09">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DmtData";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= 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=2 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="../../info/dmtree/DmtAdmin.html" title="interface in info.dmtree"><B>PREV CLASS</B></A>
<A HREF="../../info/dmtree/DmtEvent.html" title="interface in info.dmtree"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?info/dmtree/DmtData.html" target="_top"><B>FRAMES</B></A>
<A HREF="DmtData.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">
info.dmtree</FONT>
<BR>
Class DmtData</H2>
<PRE>
java.lang.Object
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>info.dmtree.DmtData</B>
</PRE>
<HR>
<DL>
<DT><PRE>public final class <B>DmtData</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
An immutable data structure representing the contents of a leaf or interior
node. This structure represents only the value and the format property of the
node, all other properties (like MIME type) can be set and read using the
<code>DmtSession</code> interface.
<p>
Different constructors are available to create nodes with different formats.
Nodes of <code>null</code> format can be created using the static
<A HREF="../../info/dmtree/DmtData.html#NULL_VALUE"><CODE>NULL_VALUE</CODE></A> constant instance of this class.
<p>
<A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY"><CODE>FORMAT_RAW_BINARY</CODE></A> and <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING"><CODE>FORMAT_RAW_STRING</CODE></A> enable the support
of future data formats. When using these formats, the actual format name is
specified as a <code>String</code>. The application is responsible for the
proper encoding of the data according to the specified format.
<P>
<P>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_BASE64">FORMAT_BASE64</A></B></CODE>
<BR>
The node holds an OMA DM <code>b64</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_BINARY">FORMAT_BINARY</A></B></CODE>
<BR>
The node holds an OMA DM <code>bin</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_BOOLEAN">FORMAT_BOOLEAN</A></B></CODE>
<BR>
The node holds an OMA DM <code>bool</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_DATE">FORMAT_DATE</A></B></CODE>
<BR>
The node holds an OMA DM <code>date</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_FLOAT">FORMAT_FLOAT</A></B></CODE>
<BR>
The node holds an OMA DM <code>float</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_INTEGER">FORMAT_INTEGER</A></B></CODE>
<BR>
The node holds an OMA DM <code>int</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_NODE">FORMAT_NODE</A></B></CODE>
<BR>
Format specifier of an internal node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_NULL">FORMAT_NULL</A></B></CODE>
<BR>
The node holds an OMA DM <code>null</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY">FORMAT_RAW_BINARY</A></B></CODE>
<BR>
The node holds raw protocol data encoded in binary format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING">FORMAT_RAW_STRING</A></B></CODE>
<BR>
The node holds raw protocol data encoded as <code>String</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_STRING">FORMAT_STRING</A></B></CODE>
<BR>
The node holds an OMA DM <code>chr</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_TIME">FORMAT_TIME</A></B></CODE>
<BR>
The node holds an OMA DM <code>time</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#FORMAT_XML">FORMAT_XML</A></B></CODE>
<BR>
The node holds an OMA DM <code>xml</code> value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../info/dmtree/DmtData.html" title="class in info.dmtree">DmtData</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#NULL_VALUE">NULL_VALUE</A></B></CODE>
<BR>
Constant instance representing a leaf node of <code>null</code> format.</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">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(boolean)">DmtData</A></B>(boolean bool)</CODE>
<BR>
Create a <code>DmtData</code> instance of <code>bool</code> format
and set its value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(byte[])">DmtData</A></B>(byte[] bytes)</CODE>
<BR>
Create a <code>DmtData</code> instance of <code>bin</code> format and
set its value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(byte[], boolean)">DmtData</A></B>(byte[] bytes,
boolean base64)</CODE>
<BR>
Create a <code>DmtData</code> instance of <code>bin</code> or
<code>b64</code> format and set its value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(float)">DmtData</A></B>(float flt)</CODE>
<BR>
Create a <code>DmtData</code> instance of <code>float</code> format
and set its value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(int)">DmtData</A></B>(int integer)</CODE>
<BR>
Create a <code>DmtData</code> instance of <code>int</code> format and
set its value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(java.lang.Object)">DmtData</A></B>(java.lang.Object complex)</CODE>
<BR>
Create a <code>DmtData</code> instance of <code>node</code> format
with the given object value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(java.lang.String)">DmtData</A></B>(java.lang.String str)</CODE>
<BR>
Create a <code>DmtData</code> instance of <code>chr</code> format
with the given string value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(java.lang.String, byte[])">DmtData</A></B>(java.lang.String formatName,
byte[] data)</CODE>
<BR>
Create a <code>DmtData</code> instance in <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY"><CODE>FORMAT_RAW_BINARY</CODE></A>
format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(java.lang.String, int)">DmtData</A></B>(java.lang.String value,
int format)</CODE>
<BR>
Create a <code>DmtData</code> instance of the specified format and set
its value based on the given string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#DmtData(java.lang.String, java.lang.String)">DmtData</A></B>(java.lang.String formatName,
java.lang.String data)</CODE>
<BR>
Create a <code>DmtData</code> instance in <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING"><CODE>FORMAT_RAW_STRING</CODE></A>
format.</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">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE>
<BR>
Compares the specified object with this <code>DmtData</code> instance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getBase64()">getBase64</A></B>()</CODE>
<BR>
Gets the value of a node with base 64 (<code>b64</code>) format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getBinary()">getBinary</A></B>()</CODE>
<BR>
Gets the value of a node with binary (<code>bin</code>) format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getBoolean()">getBoolean</A></B>()</CODE>
<BR>
Gets the value of a node with boolean (<code>bool</code>) format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getDate()">getDate</A></B>()</CODE>
<BR>
Gets the value of a node with date format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getFloat()">getFloat</A></B>()</CODE>
<BR>
Gets the value of a node with <code>float</code> format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getFormat()">getFormat</A></B>()</CODE>
<BR>
Get the node's format, expressed in terms of type constants defined in
this class.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getFormatName()">getFormatName</A></B>()</CODE>
<BR>
Returns the format of this <code>DmtData</code> as <code>String</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getInt()">getInt</A></B>()</CODE>
<BR>
Gets the value of a node with integer (<code>int</code>) format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getNode()">getNode</A></B>()</CODE>
<BR>
Gets the complex data associated with an interior node (<code>node</code>
format).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getRawBinary()">getRawBinary</A></B>()</CODE>
<BR>
Gets the value of a node in raw binary (<A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY"><CODE>FORMAT_RAW_BINARY</CODE></A>)
format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getRawString()">getRawString</A></B>()</CODE>
<BR>
Gets the value of a node in raw <code>String</code>
(<A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING"><CODE>FORMAT_RAW_STRING</CODE></A>) format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getSize()">getSize</A></B>()</CODE>
<BR>
Get the size of the data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getString()">getString</A></B>()</CODE>
<BR>
Gets the value of a node with string (<code>chr</code>) format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getTime()">getTime</A></B>()</CODE>
<BR>
Gets the value of a node with time format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#getXml()">getXml</A></B>()</CODE>
<BR>
Gets the value of a node with <code>xml</code> format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#hashCode()">hashCode</A></B>()</CODE>
<BR>
Returns the hash code value for this <code>DmtData</code> instance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../info/dmtree/DmtData.html#toString()">toString</A></B>()</CODE>
<BR>
Gets the string representation of the <code>DmtData</code>.</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">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, finalize, getClass, notify, notifyAll, 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">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="FORMAT_INTEGER"><!-- --></A><H3>
FORMAT_INTEGER</H3>
<PRE>
public static final int <B>FORMAT_INTEGER</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>int</code> value.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_INTEGER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_FLOAT"><!-- --></A><H3>
FORMAT_FLOAT</H3>
<PRE>
public static final int <B>FORMAT_FLOAT</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>float</code> value.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_FLOAT">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_STRING"><!-- --></A><H3>
FORMAT_STRING</H3>
<PRE>
public static final int <B>FORMAT_STRING</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>chr</code> value.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_STRING">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_BOOLEAN"><!-- --></A><H3>
FORMAT_BOOLEAN</H3>
<PRE>
public static final int <B>FORMAT_BOOLEAN</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>bool</code> value.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_BOOLEAN">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_DATE"><!-- --></A><H3>
FORMAT_DATE</H3>
<PRE>
public static final int <B>FORMAT_DATE</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>date</code> value.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_DATE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_TIME"><!-- --></A><H3>
FORMAT_TIME</H3>
<PRE>
public static final int <B>FORMAT_TIME</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>time</code> value.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_TIME">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_BINARY"><!-- --></A><H3>
FORMAT_BINARY</H3>
<PRE>
public static final int <B>FORMAT_BINARY</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>bin</code> value. The value of the node
corresponds to the Java <code>byte[]</code> type.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_BINARY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_BASE64"><!-- --></A><H3>
FORMAT_BASE64</H3>
<PRE>
public static final int <B>FORMAT_BASE64</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>b64</code> value. Like
<A HREF="../../info/dmtree/DmtData.html#FORMAT_BINARY"><CODE>FORMAT_BINARY</CODE></A>, this format is also represented by the Java
<code>byte[]</code> type, the difference is only in the corresponding
OMA DM format.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_BASE64">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_XML"><!-- --></A><H3>
FORMAT_XML</H3>
<PRE>
public static final int <B>FORMAT_XML</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>xml</code> value.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_XML">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_NULL"><!-- --></A><H3>
FORMAT_NULL</H3>
<PRE>
public static final int <B>FORMAT_NULL</B></PRE>
<DL>
<DD>The node holds an OMA DM <code>null</code> value. This corresponds to
the Java <code>null</code> type.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_NULL">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_NODE"><!-- --></A><H3>
FORMAT_NODE</H3>
<PRE>
public static final int <B>FORMAT_NODE</B></PRE>
<DL>
<DD>Format specifier of an internal node. An interior node can hold a Java
object as value (see <A HREF="../../info/dmtree/DmtData.html#DmtData(java.lang.Object)"><CODE>DmtData(Object)</CODE></A> and
<A HREF="../../info/dmtree/DmtData.html#getNode()"><CODE>getNode()</CODE></A>). This value can be used by Java programs that
know a specific URI understands the associated Java type. This type is
further used as a return value of the <A HREF="../../info/dmtree/MetaNode.html#getFormat()"><CODE>MetaNode.getFormat()</CODE></A> method
for interior nodes.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_NODE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_RAW_STRING"><!-- --></A><H3>
FORMAT_RAW_STRING</H3>
<PRE>
public static final int <B>FORMAT_RAW_STRING</B></PRE>
<DL>
<DD>The node holds raw protocol data encoded as <code>String</code>. The
<A HREF="../../info/dmtree/DmtData.html#getFormatName()"><CODE>getFormatName()</CODE></A> method can be used to get the actual format
name.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_RAW_STRING">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="FORMAT_RAW_BINARY"><!-- --></A><H3>
FORMAT_RAW_BINARY</H3>
<PRE>
public static final int <B>FORMAT_RAW_BINARY</B></PRE>
<DL>
<DD>The node holds raw protocol data encoded in binary format. The
<A HREF="../../info/dmtree/DmtData.html#getFormatName()"><CODE>getFormatName()</CODE></A> method can be used to get the actual format
name.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#info.dmtree.DmtData.FORMAT_RAW_BINARY">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NULL_VALUE"><!-- --></A><H3>
NULL_VALUE</H3>
<PRE>
public static final <A HREF="../../info/dmtree/DmtData.html" title="class in info.dmtree">DmtData</A> <B>NULL_VALUE</B></PRE>
<DL>
<DD>Constant instance representing a leaf node of <code>null</code> format.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="DmtData(java.lang.String)"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(java.lang.String str)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance of <code>chr</code> format
with the given string value. The <code>null</code> string argument is
valid.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>str</CODE> - the string value to set</DL>
</DL>
<HR>
<A NAME="DmtData(java.lang.Object)"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(java.lang.Object complex)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance of <code>node</code> format
with the given object value. The value represents complex data associated
with an interior node.
<p>
Certain interior nodes can support access to their subtrees through such
complex values, making it simpler to retrieve or update all leaf nodes in
a subtree.
<p>
The given value must be a non-<code>null</code> immutable object.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>complex</CODE> - the complex data object to set</DL>
</DL>
<HR>
<A NAME="DmtData(java.lang.String, int)"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(java.lang.String value,
int format)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance of the specified format and set
its value based on the given string. Only the following string-based
formats can be created using this constructor:
<ul>
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_STRING"><CODE>FORMAT_STRING</CODE></A> - value can be any string
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_XML"><CODE>FORMAT_XML</CODE></A> - value must contain an XML fragment (the
validity is not checked by this constructor)
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_DATE"><CODE>FORMAT_DATE</CODE></A> - value must be parseable to an ISO 8601
calendar date in complete representation, basic format (pattern
<code>CCYYMMDD</code>)
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_TIME"><CODE>FORMAT_TIME</CODE></A> - value must be parseable to an ISO 8601 time
of day in either local time, complete representation, basic format
(pattern <code>hhmmss</code>) or Coordinated Universal Time, basic format
(pattern <code>hhmmssZ</code>)
</ul>
The <code>null</code> string argument is only valid if the format is
string or XML.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the string, XML, date or time value to set<DD><CODE>format</CODE> - the format of the <code>DmtData</code> instance to be
created, must be one of the formats specified above
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>format</code> is not one of
the allowed formats, or <code>value</code> is not a valid
string for the given format
<DD><CODE>java.lang.NullPointerException</CODE> - if a date or time is constructed and
<code>value</code> is <code>null</code></DL>
</DL>
<HR>
<A NAME="DmtData(int)"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(int integer)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance of <code>int</code> format and
set its value.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>integer</CODE> - the integer value to set</DL>
</DL>
<HR>
<A NAME="DmtData(float)"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(float flt)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance of <code>float</code> format
and set its value.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>flt</CODE> - the float value to set</DL>
</DL>
<HR>
<A NAME="DmtData(boolean)"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(boolean bool)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance of <code>bool</code> format
and set its value.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>bool</CODE> - the boolean value to set</DL>
</DL>
<HR>
<A NAME="DmtData(byte[])"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(byte[] bytes)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance of <code>bin</code> format and
set its value.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - the byte array to set, must not be <code>null</code>
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if <code>bytes</code> is <code>null</code></DL>
</DL>
<HR>
<A NAME="DmtData(byte[], boolean)"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(byte[] bytes,
boolean base64)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance of <code>bin</code> or
<code>b64</code> format and set its value. The chosen format is
specified by the <code>base64</code> parameter.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>bytes</CODE> - the byte array to set, must not be <code>null</code><DD><CODE>base64</CODE> - if <code>true</code>, the new instance will have
<code>b64</code> format, if <code>false</code>, it will have
<code>bin</code> format
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if <code>bytes</code> is <code>null</code></DL>
</DL>
<HR>
<A NAME="DmtData(java.lang.String, java.lang.String)"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(java.lang.String formatName,
java.lang.String data)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance in <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING"><CODE>FORMAT_RAW_STRING</CODE></A>
format. The data is provided encoded as a <code>String</code>. The
actual data format is specified in <code>formatName</code>. The
encoding used in <code>data</code> must conform to this format.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>formatName</CODE> - the name of the format, must not be <code>null</code><DD><CODE>data</CODE> - the data encoded according to the specified format, must not
be <code>null</code>
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if <code>formatName</code> or
<code>data</code> is <code>null</code></DL>
</DL>
<HR>
<A NAME="DmtData(java.lang.String, byte[])"><!-- --></A><H3>
DmtData</H3>
<PRE>
public <B>DmtData</B>(java.lang.String formatName,
byte[] data)</PRE>
<DL>
<DD>Create a <code>DmtData</code> instance in <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY"><CODE>FORMAT_RAW_BINARY</CODE></A>
format. The data is provided encoded as binary. The actual data format is
specified in <code>formatName</code>. The encoding used in
<code>data</code> must conform to this format.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>formatName</CODE> - the name of the format, must not be <code>null</code><DD><CODE>data</CODE> - the data encoded according to the specified format, must not
be <code>null</code>
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if <code>formatName</code> or
<code>data</code> is <code>null</code></DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getString()"><!-- --></A><H3>
getString</H3>
<PRE>
public java.lang.String <B>getString</B>()</PRE>
<DL>
<DD>Gets the value of a node with string (<code>chr</code>) format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the string value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not string</DL>
</DD>
</DL>
<HR>
<A NAME="getDate()"><!-- --></A><H3>
getDate</H3>
<PRE>
public java.lang.String <B>getDate</B>()</PRE>
<DL>
<DD>Gets the value of a node with date format. The returned date string is
formatted according to the ISO 8601 definition of a calendar date in
complete representation, basic format (pattern <code>CCYYMMDD</code>).
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the date value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not date</DL>
</DD>
</DL>
<HR>
<A NAME="getTime()"><!-- --></A><H3>
getTime</H3>
<PRE>
public java.lang.String <B>getTime</B>()</PRE>
<DL>
<DD>Gets the value of a node with time format. The returned time string is
formatted according to the ISO 8601 definition of the time of day. The
exact format depends on the value the object was initialized with: either
local time, complete representation, basic format (pattern
<code>hhmmss</code>) or Coordinated Universal Time, basic format (pattern
<code>hhmmssZ</code>).
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the time value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not time</DL>
</DD>
</DL>
<HR>
<A NAME="getXml()"><!-- --></A><H3>
getXml</H3>
<PRE>
public java.lang.String <B>getXml</B>()</PRE>
<DL>
<DD>Gets the value of a node with <code>xml</code> format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the XML value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not
<code>xml</code></DL>
</DD>
</DL>
<HR>
<A NAME="getInt()"><!-- --></A><H3>
getInt</H3>
<PRE>
public int <B>getInt</B>()</PRE>
<DL>
<DD>Gets the value of a node with integer (<code>int</code>) format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the integer value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not integer</DL>
</DD>
</DL>
<HR>
<A NAME="getFloat()"><!-- --></A><H3>
getFloat</H3>
<PRE>
public float <B>getFloat</B>()</PRE>
<DL>
<DD>Gets the value of a node with <code>float</code> format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the float value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not
<code>float</code></DL>
</DD>
</DL>
<HR>
<A NAME="getBoolean()"><!-- --></A><H3>
getBoolean</H3>
<PRE>
public boolean <B>getBoolean</B>()</PRE>
<DL>
<DD>Gets the value of a node with boolean (<code>bool</code>) format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the boolean value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not boolean</DL>
</DD>
</DL>
<HR>
<A NAME="getBinary()"><!-- --></A><H3>
getBinary</H3>
<PRE>
public byte[] <B>getBinary</B>()</PRE>
<DL>
<DD>Gets the value of a node with binary (<code>bin</code>) format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the binary value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not binary</DL>
</DD>
</DL>
<HR>
<A NAME="getRawBinary()"><!-- --></A><H3>
getRawBinary</H3>
<PRE>
public byte[] <B>getRawBinary</B>()</PRE>
<DL>
<DD>Gets the value of a node in raw binary (<A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY"><CODE>FORMAT_RAW_BINARY</CODE></A>)
format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the data value in raw binary format
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not raw binary</DL>
</DD>
</DL>
<HR>
<A NAME="getRawString()"><!-- --></A><H3>
getRawString</H3>
<PRE>
public java.lang.String <B>getRawString</B>()</PRE>
<DL>
<DD>Gets the value of a node in raw <code>String</code>
(<A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING"><CODE>FORMAT_RAW_STRING</CODE></A>) format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the data value in raw <code>String</code> format
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not raw
<code>String</code></DL>
</DD>
</DL>
<HR>
<A NAME="getBase64()"><!-- --></A><H3>
getBase64</H3>
<PRE>
public byte[] <B>getBase64</B>()</PRE>
<DL>
<DD>Gets the value of a node with base 64 (<code>b64</code>) format.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the binary value
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the node is not base 64.</DL>
</DD>
</DL>
<HR>
<A NAME="getNode()"><!-- --></A><H3>
getNode</H3>
<PRE>
public java.lang.Object <B>getNode</B>()</PRE>
<DL>
<DD>Gets the complex data associated with an interior node (<code>node</code>
format).
<p>
Certain interior nodes can support access to their subtrees through
complex values, making it simpler to retrieve or update all leaf nodes in
the subtree.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the data object associated with an interior node
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../info/dmtree/DmtIllegalStateException.html" title="class in info.dmtree">DmtIllegalStateException</A></CODE> - if the format of the data is not
<code>node</code></DL>
</DD>
</DL>
<HR>
<A NAME="getFormat()"><!-- --></A><H3>
getFormat</H3>
<PRE>
public int <B>getFormat</B>()</PRE>
<DL>
<DD>Get the node's format, expressed in terms of type constants defined in
this class. Note that the 'format' term is a legacy from OMA DM, it is
more customary to think of this as 'type'.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the format of the node</DL>
</DD>
</DL>
<HR>
<A NAME="getFormatName()"><!-- --></A><H3>
getFormatName</H3>
<PRE>
public java.lang.String <B>getFormatName</B>()</PRE>
<DL>
<DD>Returns the format of this <code>DmtData</code> as <code>String</code>.
For the predefined data formats this is the OMA DM defined name of the
format. For <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING"><CODE>FORMAT_RAW_STRING</CODE></A> and <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY"><CODE>FORMAT_RAW_BINARY</CODE></A>
this is the format specified when the object was created.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the format name as <code>String</code></DL>
</DD>
</DL>
<HR>
<A NAME="getSize()"><!-- --></A><H3>
getSize</H3>
<PRE>
public int <B>getSize</B>()</PRE>
<DL>
<DD>Get the size of the data. The returned value depends on the format of
data in the node:
<ul>
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_STRING"><CODE>FORMAT_STRING</CODE></A>, <A HREF="../../info/dmtree/DmtData.html#FORMAT_XML"><CODE>FORMAT_XML</CODE></A>, <A HREF="../../info/dmtree/DmtData.html#FORMAT_BINARY"><CODE>FORMAT_BINARY</CODE></A>,
<A HREF="../../info/dmtree/DmtData.html#FORMAT_BASE64"><CODE>FORMAT_BASE64</CODE></A>, <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING"><CODE>FORMAT_RAW_STRING</CODE></A>, and
<A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY"><CODE>FORMAT_RAW_BINARY</CODE></A>: the length of the stored data, or 0 if
the data is <code>null</code>
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_INTEGER"><CODE>FORMAT_INTEGER</CODE></A> and <A HREF="../../info/dmtree/DmtData.html#FORMAT_FLOAT"><CODE>FORMAT_FLOAT</CODE></A>: 4
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_DATE"><CODE>FORMAT_DATE</CODE></A> and <A HREF="../../info/dmtree/DmtData.html#FORMAT_TIME"><CODE>FORMAT_TIME</CODE></A>: the length of the
date or time in its string representation
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_BOOLEAN"><CODE>FORMAT_BOOLEAN</CODE></A>: 1
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_NODE"><CODE>FORMAT_NODE</CODE></A>: -1 (unknown)
<li><A HREF="../../info/dmtree/DmtData.html#FORMAT_NULL"><CODE>FORMAT_NULL</CODE></A>: 0
</ul>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the size of the data stored by this object</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Gets the string representation of the <code>DmtData</code>. This
method works for all formats.
<p>
For string format data - including <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING"><CODE>FORMAT_RAW_STRING</CODE></A> - the
string value itself is returned, while for XML, date, time, integer,
float, boolean and node formats the string form of the value is returned.
Binary - including <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY"><CODE>FORMAT_RAW_BINARY</CODE></A> - and base64 data is
represented by two-digit hexadecimal numbers for each byte separated by
spaces. The <A HREF="../../info/dmtree/DmtData.html#NULL_VALUE"><CODE>NULL_VALUE</CODE></A> data has the string form of
"<code>null</code>". Data of string or XML format containing the Java
<code>null</code> value is represented by an empty string.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the string representation of this <code>DmtData</code> instance</DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object obj)</PRE>
<DL>
<DD>Compares the specified object with this <code>DmtData</code> instance.
Two <code>DmtData</code> objects are considered equal if their format
is the same, and their data (selected by the format) is equal.
<p>
In case of <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_BINARY"><CODE>FORMAT_RAW_BINARY</CODE></A> and <A HREF="../../info/dmtree/DmtData.html#FORMAT_RAW_STRING"><CODE>FORMAT_RAW_STRING</CODE></A>
the textual name of the data format - as returned by
<A HREF="../../info/dmtree/DmtData.html#getFormatName()"><CODE>getFormatName()</CODE></A> - must be equal as well.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to compare with this <code>DmtData</code>
<DT><B>Returns:</B><DD>true if the argument represents the same <code>DmtData</code>
as this object</DL>
</DD>
</DL>
<HR>
<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD>Returns the hash code value for this <code>DmtData</code> instance. The
hash code is calculated based on the data (selected by the format) of
this object.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the hash code value for this object</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=2 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="../../info/dmtree/DmtAdmin.html" title="interface in info.dmtree"><B>PREV CLASS</B></A>
<A HREF="../../info/dmtree/DmtEvent.html" title="interface in info.dmtree"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?info/dmtree/DmtData.html" target="_top"><B>FRAMES</B></A>
<A HREF="DmtData.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>
|