/usr/share/doc/libosgi-compendium-java/api/org/osgi/service/dmt/DmtData.html is in libosgi-compendium-java-doc 5.0.0-3.
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 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>DmtData</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DmtData";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/osgi/service/dmt/DmtConstants.html" title="class in org.osgi.service.dmt"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/osgi/service/dmt/DmtEvent.html" title="interface in org.osgi.service.dmt"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/osgi/service/dmt/DmtData.html" target="_top">Frames</a></li>
<li><a href="DmtData.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.osgi.service.dmt</div>
<h2 title="Class DmtData" class="title">Class DmtData</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.osgi.service.dmt.DmtData</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="strong">DmtData</span>
extends java.lang.Object</pre>
<div class="block">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="../../../../org/osgi/service/dmt/DmtData.html#NULL_VALUE"><code>NULL_VALUE</code></a> constant instance of this class.
<p>
<a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_BINARY"><code>FORMAT_RAW_BINARY</code></a> and <a href="../../../../org/osgi/service/dmt/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.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/osgi/service/dmt/DmtData.html" title="class in org.osgi.service.dmt">DmtData</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FALSE_VALUE">FALSE_VALUE</a></strong></code>
<div class="block">Constant instance representing a boolean <code>false</code> value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_BASE64">FORMAT_BASE64</a></strong></code>
<div class="block">The node holds an OMA DM <code>b64</code> value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_BINARY">FORMAT_BINARY</a></strong></code>
<div class="block">The node holds an OMA DM <code>bin</code> value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_BOOLEAN">FORMAT_BOOLEAN</a></strong></code>
<div class="block">The node holds an OMA DM <code>bool</code> value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_DATE">FORMAT_DATE</a></strong></code>
<div class="block">The node holds an OMA DM <code>date</code> value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_DATE_TIME">FORMAT_DATE_TIME</a></strong></code>
<div class="block">The node holds a Date object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_FLOAT">FORMAT_FLOAT</a></strong></code>
<div class="block">The node holds an OMA DM <code>float</code> value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_INTEGER">FORMAT_INTEGER</a></strong></code>
<div class="block">The node holds an OMA DM <code>int</code> value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_LONG">FORMAT_LONG</a></strong></code>
<div class="block">The node holds a long value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_NODE">FORMAT_NODE</a></strong></code>
<div class="block">Format specifier of an internal node.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_NULL">FORMAT_NULL</a></strong></code>
<div class="block">The node holds an OMA DM <code>null</code> value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_BINARY">FORMAT_RAW_BINARY</a></strong></code>
<div class="block">The node holds raw protocol data encoded in binary format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_STRING">FORMAT_RAW_STRING</a></strong></code>
<div class="block">The node holds raw protocol data encoded as <code>String</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_STRING">FORMAT_STRING</a></strong></code>
<div class="block">The node holds an OMA DM <code>chr</code> value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_TIME">FORMAT_TIME</a></strong></code>
<div class="block">The node holds an OMA DM <code>time</code> value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_XML">FORMAT_XML</a></strong></code>
<div class="block">The node holds an OMA DM <code>xml</code> value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/osgi/service/dmt/DmtData.html" title="class in org.osgi.service.dmt">DmtData</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#NULL_VALUE">NULL_VALUE</a></strong></code>
<div class="block">Constant instance representing a leaf node of <code>null</code> format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/osgi/service/dmt/DmtData.html" title="class in org.osgi.service.dmt">DmtData</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#TRUE_VALUE">TRUE_VALUE</a></strong></code>
<div class="block">Constant instance representing a boolean <code>true</code> value.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(boolean)">DmtData</a></strong>(boolean bool)</code>
<div class="block">Create a <code>DmtData</code> instance of <code>bool</code> format and set its
value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(byte[])">DmtData</a></strong>(byte[] bytes)</code>
<div class="block">Create a <code>DmtData</code> instance of <code>bin</code> format and set its
value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(byte[],%20boolean)">DmtData</a></strong>(byte[] bytes,
boolean base64)</code>
<div class="block">Create a <code>DmtData</code> instance of <code>bin</code> or <code>b64</code> format
and set its value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(byte[],%20int)">DmtData</a></strong>(byte[] bytes,
int format)</code>
<div class="block">Create a <code>DmtData</code> instance of the specified format and set its
value based on the given <code>byte[]</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(java.util.Date)">DmtData</a></strong>(java.util.Date date)</code>
<div class="block">Create a <code>DmtData</code> instance of <code>dateTime</code> format with the
given Date value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(float)">DmtData</a></strong>(float flt)</code>
<div class="block">Create a <code>DmtData</code> instance of <code>float</code> format and set its
value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(int)">DmtData</a></strong>(int integer)</code>
<div class="block">Create a <code>DmtData</code> instance of <code>int</code> format and set its
value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(long)">DmtData</a></strong>(long lng)</code>
<div class="block">Create a <code>DmtData</code> instance of <code>long</code> format and set its
value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(java.lang.Object)">DmtData</a></strong>(java.lang.Object complex)</code>
<div class="block">Create a <code>DmtData</code> instance of <code>node</code> format with the given
object value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(java.lang.String)">DmtData</a></strong>(java.lang.String string)</code>
<div class="block">Create a <code>DmtData</code> instance of <code>chr</code> format with the given
string value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(java.lang.String,%20byte[])">DmtData</a></strong>(java.lang.String formatName,
byte[] data)</code>
<div class="block">Create a <code>DmtData</code> instance in <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_BINARY"><code>FORMAT_RAW_BINARY</code></a> format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(java.lang.String,%20int)">DmtData</a></strong>(java.lang.String value,
int format)</code>
<div class="block">Create a <code>DmtData</code> instance of the specified format and set its
value based on the given string.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(java.lang.String,%20java.lang.String)">DmtData</a></strong>(java.lang.String formatName,
java.lang.String data)</code>
<div class="block">Create a <code>DmtData</code> instance in <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_STRING"><code>FORMAT_RAW_STRING</code></a> format.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object obj)</code>
<div class="block">Compares the specified object with this <code>DmtData</code> instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getBase64()">getBase64</a></strong>()</code>
<div class="block">Gets the value of a node with base 64 (<code>b64</code>) format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getBinary()">getBinary</a></strong>()</code>
<div class="block">Gets the value of a node with binary (<code>bin</code>) format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getBoolean()">getBoolean</a></strong>()</code>
<div class="block">Gets the value of a node with boolean (<code>bool</code>) format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getDate()">getDate</a></strong>()</code>
<div class="block">Gets the value of a node with date format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.Date</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getDateTime()">getDateTime</a></strong>()</code>
<div class="block">Gets the value of a node with <code>dateTime</code> format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getFloat()">getFloat</a></strong>()</code>
<div class="block">Gets the value of a node with <code>float</code> format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getFormat()">getFormat</a></strong>()</code>
<div class="block">Get the node's format, expressed in terms of type constants defined in
this class.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getFormatName()">getFormatName</a></strong>()</code>
<div class="block">Returns the format of this <code>DmtData</code> as <code>String</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getInt()">getInt</a></strong>()</code>
<div class="block">Gets the value of a node with integer (<code>int</code>) format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getLong()">getLong</a></strong>()</code>
<div class="block">Gets the value of a node with long format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getNode()">getNode</a></strong>()</code>
<div class="block">Gets the complex data associated with an interior node (<code>node</code>
format).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getRawBinary()">getRawBinary</a></strong>()</code>
<div class="block">Gets the value of a node in raw binary (<a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_BINARY"><code>FORMAT_RAW_BINARY</code></a>)
format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getRawString()">getRawString</a></strong>()</code>
<div class="block">Gets the value of a node in raw <code>String</code> (
<a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_STRING"><code>FORMAT_RAW_STRING</code></a>) format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getSize()">getSize</a></strong>()</code>
<div class="block">Get the size of the data.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getString()">getString</a></strong>()</code>
<div class="block">Gets the value of a node with string (<code>chr</code>) format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getTime()">getTime</a></strong>()</code>
<div class="block">Gets the value of a node with time format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#getXml()">getXml</a></strong>()</code>
<div class="block">Gets the value of a node with <code>xml</code> format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#hashCode()">hashCode</a></strong>()</code>
<div class="block">Returns the hash code value for this <code>DmtData</code> instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../org/osgi/service/dmt/DmtData.html#toString()">toString</a></strong>()</code>
<div class="block">Gets the string representation of the <code>DmtData</code>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="FORMAT_INTEGER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_INTEGER</h4>
<pre>public static final int FORMAT_INTEGER</pre>
<div class="block">The node holds an OMA DM <code>int</code> value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_INTEGER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_FLOAT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_FLOAT</h4>
<pre>public static final int FORMAT_FLOAT</pre>
<div class="block">The node holds an OMA DM <code>float</code> value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_FLOAT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_STRING">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_STRING</h4>
<pre>public static final int FORMAT_STRING</pre>
<div class="block">The node holds an OMA DM <code>chr</code> value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_STRING">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_BOOLEAN">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_BOOLEAN</h4>
<pre>public static final int FORMAT_BOOLEAN</pre>
<div class="block">The node holds an OMA DM <code>bool</code> value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_BOOLEAN">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_DATE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_DATE</h4>
<pre>public static final int FORMAT_DATE</pre>
<div class="block">The node holds an OMA DM <code>date</code> value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_DATE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_TIME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_TIME</h4>
<pre>public static final int FORMAT_TIME</pre>
<div class="block">The node holds an OMA DM <code>time</code> value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_TIME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_BINARY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_BINARY</h4>
<pre>public static final int FORMAT_BINARY</pre>
<div class="block">The node holds an OMA DM <code>bin</code> value. The value of the node
corresponds to the Java <code>byte[]</code> type.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_BINARY">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_BASE64">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_BASE64</h4>
<pre>public static final int FORMAT_BASE64</pre>
<div class="block">The node holds an OMA DM <code>b64</code> value. Like <a href="../../../../org/osgi/service/dmt/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.
This format does not affect the internal storage format of the data as
<code>byte[]</code>. It is intended as a hint for the external representation
of this data. Protocol Adapters can use this hint for their further
processing.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_BASE64">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_XML">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_XML</h4>
<pre>public static final int FORMAT_XML</pre>
<div class="block">The node holds an OMA DM <code>xml</code> value.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_XML">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_NULL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_NULL</h4>
<pre>public static final int FORMAT_NULL</pre>
<div class="block">The node holds an OMA DM <code>null</code> value. This corresponds to the Java
<code>null</code> type.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_NULL">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_NODE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_NODE</h4>
<pre>public static final int FORMAT_NODE</pre>
<div class="block">Format specifier of an internal node. An interior node can hold a Java
object as value (see <a href="../../../../org/osgi/service/dmt/DmtData.html#DmtData(java.lang.Object)"><code>DmtData(Object)</code></a> and
<a href="../../../../org/osgi/service/dmt/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="../../../../org/osgi/service/dmt/MetaNode.html#getFormat()"><code>MetaNode.getFormat()</code></a> method
for interior nodes.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_NODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_RAW_STRING">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_RAW_STRING</h4>
<pre>public static final int FORMAT_RAW_STRING</pre>
<div class="block">The node holds raw protocol data encoded as <code>String</code>. The
<a href="../../../../org/osgi/service/dmt/DmtData.html#getFormatName()"><code>getFormatName()</code></a> method can be used to get the actual format
name.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_RAW_STRING">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_RAW_BINARY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_RAW_BINARY</h4>
<pre>public static final int FORMAT_RAW_BINARY</pre>
<div class="block">The node holds raw protocol data encoded in binary format. The
<a href="../../../../org/osgi/service/dmt/DmtData.html#getFormatName()"><code>getFormatName()</code></a> method can be used to get the actual format
name.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_RAW_BINARY">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_LONG">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_LONG</h4>
<pre>public static final int FORMAT_LONG</pre>
<div class="block">The node holds a long value. The <a href="../../../../org/osgi/service/dmt/DmtData.html#getFormatName()"><code>getFormatName()</code></a> method can be
used to get the actual format name.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>2.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_LONG">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORMAT_DATE_TIME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORMAT_DATE_TIME</h4>
<pre>public static final int FORMAT_DATE_TIME</pre>
<div class="block">The node holds a Date object. If the getTime() equals zero then the date
time is not known. If the getTime() is negative it must be interpreted as
a relative number of milliseconds.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>2.0</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.osgi.service.dmt.DmtData.FORMAT_DATE_TIME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="NULL_VALUE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NULL_VALUE</h4>
<pre>public static final <a href="../../../../org/osgi/service/dmt/DmtData.html" title="class in org.osgi.service.dmt">DmtData</a> NULL_VALUE</pre>
<div class="block">Constant instance representing a leaf node of <code>null</code> format.</div>
</li>
</ul>
<a name="TRUE_VALUE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TRUE_VALUE</h4>
<pre>public static final <a href="../../../../org/osgi/service/dmt/DmtData.html" title="class in org.osgi.service.dmt">DmtData</a> TRUE_VALUE</pre>
<div class="block">Constant instance representing a boolean <code>true</code> value.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>2.0</dd></dl>
</li>
</ul>
<a name="FALSE_VALUE">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>FALSE_VALUE</h4>
<pre>public static final <a href="../../../../org/osgi/service/dmt/DmtData.html" title="class in org.osgi.service.dmt">DmtData</a> FALSE_VALUE</pre>
<div class="block">Constant instance representing a boolean <code>false</code> value.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>2.0</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="DmtData(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(java.lang.String string)</pre>
<div class="block">Create a <code>DmtData</code> instance of <code>chr</code> format with the given
string value. The <code>null</code> string argument is valid.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>string</code> - the string value to set</dd></dl>
</li>
</ul>
<a name="DmtData(java.util.Date)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(java.util.Date date)</pre>
<div class="block">Create a <code>DmtData</code> instance of <code>dateTime</code> format with the
given Date value. The given Date value must be a non-null <code>Date</code>
object.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>date</code> - the Date object to set</dd></dl>
</li>
</ul>
<a name="DmtData(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(java.lang.Object complex)</pre>
<div class="block">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.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>complex</code> - the complex data object to set</dd></dl>
</li>
</ul>
<a name="DmtData(java.lang.String, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(java.lang.String value,
int format)</pre>
<div class="block">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="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_STRING"><code>FORMAT_STRING</code></a> - value can be any string</li>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_XML"><code>FORMAT_XML</code></a> - value must contain an XML fragment (the
validity is not checked by this constructor)</li>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_DATE"><code>FORMAT_DATE</code></a> - value must be parsable to an ISO 8601 calendar
date in complete representation, basic format (pattern <code>CCYYMMDD</code>)</li>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_TIME"><code>FORMAT_TIME</code></a> - value must be parsable 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>)</li>
</ul>
* The <code>null</code> string argument is only valid if the format is string
or XML.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the string, XML, date, or time value to set</dd><dd><code>format</code> - the format of the <code>DmtData</code> instance to be created,
must be one of the formats specified above</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code>java.lang.NullPointerException</code> - if a string, XML, date, or time is
constructed and <code>value</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="DmtData(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(int integer)</pre>
<div class="block">Create a <code>DmtData</code> instance of <code>int</code> format and set its
value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>integer</code> - the integer value to set</dd></dl>
</li>
</ul>
<a name="DmtData(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(float flt)</pre>
<div class="block">Create a <code>DmtData</code> instance of <code>float</code> format and set its
value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>flt</code> - the float value to set</dd></dl>
</li>
</ul>
<a name="DmtData(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(long lng)</pre>
<div class="block">Create a <code>DmtData</code> instance of <code>long</code> format and set its
value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>lng</code> - the long value to set</dd><dt><span class="strong">Since:</span></dt>
<dd>2.0</dd></dl>
</li>
</ul>
<a name="DmtData(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(boolean bool)</pre>
<div class="block">Create a <code>DmtData</code> instance of <code>bool</code> format and set its
value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bool</code> - the boolean value to set</dd></dl>
</li>
</ul>
<a name="DmtData(byte[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(byte[] bytes)</pre>
<div class="block">Create a <code>DmtData</code> instance of <code>bin</code> format and set its
value.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - the byte array to set, must not be <code>null</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if <code>bytes</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="DmtData(byte[], boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(byte[] bytes,
boolean base64)</pre>
<div class="block">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.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - the byte array to set, must not be <code>null</code></dd><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</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if <code>bytes</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="DmtData(byte[], int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(byte[] bytes,
int format)</pre>
<div class="block">Create a <code>DmtData</code> instance of the specified format and set its
value based on the given <code>byte[]</code>. Only the following
<code>byte[]</code> based formats can be created using this constructor:
<ul>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_BINARY"><code>FORMAT_BINARY</code></a></li>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_BASE64"><code>FORMAT_BASE64</code></a></li>
</ul></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - the byte array to set, must not be <code>null</code></dd><dd><code>format</code> - the format of the DmtData instance to be created, must be
one of the formats specified above</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if format is not one of the allowed
formats</dd>
<dd><code>java.lang.NullPointerException</code> - if <code>bytes</code> is <code>null</code></dd></dl>
</li>
</ul>
<a name="DmtData(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(java.lang.String formatName,
java.lang.String data)</pre>
<div class="block">Create a <code>DmtData</code> instance in <a href="../../../../org/osgi/service/dmt/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.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>formatName</code> - the name of the format, must not be <code>null</code></dd><dd><code>data</code> - the data encoded according to the specified format, must not
be <code>null</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if <code>formatName</code> or <code>data</code> is
<code>null</code></dd></dl>
</li>
</ul>
<a name="DmtData(java.lang.String, byte[])">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DmtData</h4>
<pre>public DmtData(java.lang.String formatName,
byte[] data)</pre>
<div class="block">Create a <code>DmtData</code> instance in <a href="../../../../org/osgi/service/dmt/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.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>formatName</code> - the name of the format, must not be <code>null</code></dd><dd><code>data</code> - the data encoded according to the specified format, must not
be <code>null</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if <code>formatName</code> or <code>data</code> is
<code>null</code></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getString</h4>
<pre>public java.lang.String getString()</pre>
<div class="block">Gets the value of a node with string (<code>chr</code>) format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the string value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not string</dd></dl>
</li>
</ul>
<a name="getDate()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDate</h4>
<pre>public java.lang.String getDate()</pre>
<div class="block">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>).</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the date value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not date</dd></dl>
</li>
</ul>
<a name="getTime()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTime</h4>
<pre>public java.lang.String getTime()</pre>
<div class="block">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>).</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the time value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not time</dd></dl>
</li>
</ul>
<a name="getDateTime()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDateTime</h4>
<pre>public java.util.Date getDateTime()</pre>
<div class="block">Gets the value of a node with <code>dateTime</code> format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the Date value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not time</dd><dt><span class="strong">Since:</span></dt>
<dd>2.0</dd></dl>
</li>
</ul>
<a name="getXml()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getXml</h4>
<pre>public java.lang.String getXml()</pre>
<div class="block">Gets the value of a node with <code>xml</code> format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the XML value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not
<code>xml</code></dd></dl>
</li>
</ul>
<a name="getInt()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>public int getInt()</pre>
<div class="block">Gets the value of a node with integer (<code>int</code>) format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the integer value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not integer</dd></dl>
</li>
</ul>
<a name="getLong()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public long getLong()</pre>
<div class="block">Gets the value of a node with long format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the long value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not long</dd><dt><span class="strong">Since:</span></dt>
<dd>2.0</dd></dl>
</li>
</ul>
<a name="getFloat()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
<pre>public float getFloat()</pre>
<div class="block">Gets the value of a node with <code>float</code> format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the float value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not
<code>float</code></dd></dl>
</li>
</ul>
<a name="getBoolean()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBoolean</h4>
<pre>public boolean getBoolean()</pre>
<div class="block">Gets the value of a node with boolean (<code>bool</code>) format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the boolean value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not boolean</dd></dl>
</li>
</ul>
<a name="getBinary()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBinary</h4>
<pre>public byte[] getBinary()</pre>
<div class="block">Gets the value of a node with binary (<code>bin</code>) format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the binary value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not binary</dd></dl>
</li>
</ul>
<a name="getRawBinary()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRawBinary</h4>
<pre>public byte[] getRawBinary()</pre>
<div class="block">Gets the value of a node in raw binary (<a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_BINARY"><code>FORMAT_RAW_BINARY</code></a>)
format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the data value in raw binary format</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not raw
binary</dd></dl>
</li>
</ul>
<a name="getRawString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRawString</h4>
<pre>public java.lang.String getRawString()</pre>
<div class="block">Gets the value of a node in raw <code>String</code> (
<a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_STRING"><code>FORMAT_RAW_STRING</code></a>) format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the data value in raw <code>String</code> format</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not raw
<code>String</code></dd></dl>
</li>
</ul>
<a name="getBase64()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBase64</h4>
<pre>public byte[] getBase64()</pre>
<div class="block">Gets the value of a node with base 64 (<code>b64</code>) format.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the binary value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the node is not base
64.</dd></dl>
</li>
</ul>
<a name="getNode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNode</h4>
<pre>public java.lang.Object getNode()</pre>
<div class="block">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.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the data object associated with an interior node</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../org/osgi/service/dmt/DmtIllegalStateException.html" title="class in org.osgi.service.dmt">DmtIllegalStateException</a></code> - if the format of the data is not
<code>node</code></dd></dl>
</li>
</ul>
<a name="getFormat()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFormat</h4>
<pre>public int getFormat()</pre>
<div class="block">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'.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the format of the node</dd></dl>
</li>
</ul>
<a name="getFormatName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFormatName</h4>
<pre>public java.lang.String getFormatName()</pre>
<div class="block">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="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_STRING"><code>FORMAT_RAW_STRING</code></a> and <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_BINARY"><code>FORMAT_RAW_BINARY</code></a> this is the
format specified when the object was created.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the format name as <code>String</code></dd></dl>
</li>
</ul>
<a name="getSize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSize</h4>
<pre>public int getSize()</pre>
<div class="block">Get the size of the data. The returned value depends on the format of
data in the node:
<ul>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_STRING"><code>FORMAT_STRING</code></a>, <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_XML"><code>FORMAT_XML</code></a>, <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_BINARY"><code>FORMAT_BINARY</code></a>,
<a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_BASE64"><code>FORMAT_BASE64</code></a>, <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_STRING"><code>FORMAT_RAW_STRING</code></a>, and
<a href="../../../../org/osgi/service/dmt/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>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_INTEGER"><code>FORMAT_INTEGER</code></a> and <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_FLOAT"><code>FORMAT_FLOAT</code></a>: 4</li>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_LONG"><code>FORMAT_LONG</code></a> and <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_DATE_TIME"><code>FORMAT_DATE_TIME</code></a>: 8</li>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_DATE"><code>FORMAT_DATE</code></a> and <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_TIME"><code>FORMAT_TIME</code></a>: the length of the date
or time in its string representation</li>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_BOOLEAN"><code>FORMAT_BOOLEAN</code></a>: 1</li>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_NODE"><code>FORMAT_NODE</code></a>: -1 (unknown)</li>
<li><a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_NULL"><code>FORMAT_NULL</code></a>: 0</li>
</ul></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the size of the data stored by this object</dd></dl>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public java.lang.String toString()</pre>
<div class="block">Gets the string representation of the <code>DmtData</code>. This method works
for all formats.
<p>
For string format data - including <a href="../../../../org/osgi/service/dmt/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, long and node formats the string form of the value is
returned. Binary - including <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_BINARY"><code>FORMAT_RAW_BINARY</code></a> - base64 data is
represented by two-digit hexadecimal numbers for each byte separated by
spaces. The <a href="../../../../org/osgi/service/dmt/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. DateTime data is
formatted as <code>yyyy-MM-dd'T'HH:mm:SS'Z'</code>).</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the string representation of this <code>DmtData</code> instance</dd></dl>
</li>
</ul>
<a name="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public boolean equals(java.lang.Object obj)</pre>
<div class="block">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="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_BINARY"><code>FORMAT_RAW_BINARY</code></a> and <a href="../../../../org/osgi/service/dmt/DmtData.html#FORMAT_RAW_STRING"><code>FORMAT_RAW_STRING</code></a> the
textual name of the data format - as returned by <a href="../../../../org/osgi/service/dmt/DmtData.html#getFormatName()"><code>getFormatName()</code></a>
- must be equal as well.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>equals</code> in class <code>java.lang.Object</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - the object to compare with this <code>DmtData</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>true if the argument represents the same <code>DmtData</code> as this
object</dd></dl>
</li>
</ul>
<a name="hashCode()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>hashCode</h4>
<pre>public int hashCode()</pre>
<div class="block">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.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>hashCode</code> in class <code>java.lang.Object</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the hash code value for this object</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/osgi/service/dmt/DmtConstants.html" title="class in org.osgi.service.dmt"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/osgi/service/dmt/DmtEvent.html" title="interface in org.osgi.service.dmt"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/osgi/service/dmt/DmtData.html" target="_top">Frames</a></li>
<li><a href="DmtData.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|