DmtSession interface.
Different constructors are available to create nodes with different formats.
Nodes of null format can be created using the static
NULL_VALUE constant instance of this class.
FORMAT_RAW_BINARY and FORMAT_RAW_STRING enable the support
of future data formats. When using these formats, the actual format name is
specified as a String. The application is responsible for the proper
encoding of the data according to the specified format.
| Modifier and Type | Field and Description |
|---|---|
| public static final DmtData | FALSE_VALUE
Constant instance representing a boolean |
| private final int | |
| public static final int | FORMAT_BASE64
The node holds an OMA DM |
| public static final int | FORMAT_BINARY
The node holds an OMA DM |
| public static final int | FORMAT_BOOLEAN
The node holds an OMA DM |
| public static final int | FORMAT_DATE
The node holds an OMA DM |
| public static final int | FORMAT_DATE_TIME
The node holds a Date object. |
| public static final int | FORMAT_FLOAT
The node holds an OMA DM |
| public static final int | FORMAT_INTEGER
The node holds an OMA DM |
| public static final int | FORMAT_LONG
The node holds a long value. |
| private static final Map | |
| public static final int | FORMAT_NODE
Format specifier of an internal node. |
| public static final int | FORMAT_NULL
The node holds an OMA DM |
| public static final int | FORMAT_RAW_BINARY
The node holds raw protocol data encoded in binary format. |
| public static final int | FORMAT_RAW_STRING
The node holds raw protocol data encoded as |
| public static final int | FORMAT_STRING
The node holds an OMA DM |
| public static final int | FORMAT_TIME
The node holds an OMA DM |
| public static final int | FORMAT_XML
The node holds an OMA DM |
| private String | |
| private static char[] | |
| public static final DmtData | NULL_VALUE
Constant instance representing a leaf node of |
| public static final DmtData | TRUE_VALUE
Constant instance representing a boolean |
| private final Object |
| Access | Constructor and Description |
|---|---|
| private | |
| public | |
| public | |
| public | |
| public | |
| public | DmtData(int
the integer value to set integer)Create a |
| public | DmtData(float
the float value to set flt)Create a |
| public | |
| public | DmtData(boolean
the boolean value to set bool)Create a |
| public | DmtData(byte[]
the byte array to set, must not be bytes)nullCreate a |
| public | DmtData(byte[]
the byte array to set, must not be bytes, boolean nullif base64)true, the new instance will have b64
format, if false, it will have bin formatCreate a |
| public | DmtData(byte[]
the byte array to set, must not be bytes, int nullthe format of the DmtData instance to be created, must be
one of the formats specified above format)Create a |
| public | DmtData(String
the name of the format, must not be formatName, String nullthe data encoded according to the specified format, must not
be data)nullCreate a |
| private | |
| public | DmtData(String
the name of the format, must not be formatName, byte[] nullthe data encoded according to the specified format, must not
be data)nullCreate a |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static int | |
| private static void | |
| private byte[] | |
| public boolean | Returns: true if the argument represents the sameDmtData as this
objectthe object to compare with this obj)DmtDataOverrides java. Compares the specified object with this |
| public byte[] | |
| public byte[] | |
| public boolean | |
| public String | |
| public Date | |
| public float | |
| public int | Returns: the format of the nodeGet the node's format, expressed in terms of type constants defined in this class. |
| public String | |
| private static String | |
| private static String | |
| public int | |
| public long | |
| public Object | Returns: the data object associated with an interior nodeGets the complex data associated with an interior node ( |
| public byte[] | Returns: the data value in raw binary formatGets the value of a node in raw binary ( |
| public String | Returns: the data value in rawString formatGets the value of a node in raw |
| public int | |
| public String | |
| public String | |
| public String | |
| public int | Returns: the hash code value for this objectOverrides java. Returns the hash code value for this |
| public String | Returns: the string representation of thisDmtData instanceOverrides java. Gets the string representation of the |
| private void |
| FALSE_VALUE | back to summary |
|---|---|
| public static final DmtData FALSE_VALUE Constant instance representing a boolean
| |
| format | back to summary |
|---|---|
| private final int format | |
| FORMAT_BASE64 | back to summary |
|---|---|
| public static final int FORMAT_BASE64 The node holds an OMA DM | |
| FORMAT_BINARY | back to summary |
|---|---|
| public static final int FORMAT_BINARY The node holds an OMA DM | |
| FORMAT_BOOLEAN | back to summary |
|---|---|
| public static final int FORMAT_BOOLEAN The node holds an OMA DM | |
| FORMAT_DATE | back to summary |
|---|---|
| public static final int FORMAT_DATE The node holds an OMA DM | |
| FORMAT_DATE_TIME | back to summary |
|---|---|
| public static final int FORMAT_DATE_TIME 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.
| |
| FORMAT_FLOAT | back to summary |
|---|---|
| public static final int FORMAT_FLOAT The node holds an OMA DM | |
| FORMAT_INTEGER | back to summary |
|---|---|
| public static final int FORMAT_INTEGER The node holds an OMA DM | |
| FORMAT_LONG | back to summary |
|---|---|
| public static final int FORMAT_LONG The node holds a long value. The
| |
| FORMAT_NAMES | back to summary |
|---|---|
| private static final Map<Integer, String> FORMAT_NAMES | |
| FORMAT_NODE | back to summary |
|---|---|
| public static final int FORMAT_NODE Format specifier of an internal node. An interior node can hold a Java
object as value (see | |
| FORMAT_NULL | back to summary |
|---|---|
| public static final int FORMAT_NULL The node holds an OMA DM | |
| FORMAT_RAW_BINARY | back to summary |
|---|---|
| public static final int FORMAT_RAW_BINARY The node holds raw protocol data encoded in binary format. The
| |
| FORMAT_RAW_STRING | back to summary |
|---|---|
| public static final int FORMAT_RAW_STRING The node holds raw protocol data encoded as | |
| FORMAT_STRING | back to summary |
|---|---|
| public static final int FORMAT_STRING The node holds an OMA DM | |
| FORMAT_TIME | back to summary |
|---|---|
| public static final int FORMAT_TIME The node holds an OMA DM | |
| FORMAT_XML | back to summary |
|---|---|
| public static final int FORMAT_XML The node holds an OMA DM | |
| formatName | back to summary |
|---|---|
| private String formatName | |
| hex | back to summary |
|---|---|
| private static char[] hex | |
| NULL_VALUE | back to summary |
|---|---|
| public static final DmtData NULL_VALUE Constant instance representing a leaf node of | |
| TRUE_VALUE | back to summary |
|---|---|
| public static final DmtData TRUE_VALUE Constant instance representing a boolean
| |
| value | back to summary |
|---|---|
| private final Object value | |
| DmtData | back to summary |
|---|---|
| private DmtData() Create a | |
| DmtData | back to summary |
|---|---|
| public DmtData(String string) Create a
| |
| DmtData | back to summary |
|---|---|
| public DmtData(Date date) Create a
| |
| DmtData | back to summary |
|---|---|
| public DmtData(Object complex) Create a 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.
The given value must be a non-
| |
| DmtData | back to summary |
|---|---|
| public DmtData(String value, int format) Create a
null string argument is only valid if the format is string
or XML.
| |
| DmtData | back to summary |
|---|---|
| public DmtData(int integer) Create a
| |
| DmtData | back to summary |
|---|---|
| public DmtData(float flt) Create a
| |
| DmtData | back to summary |
|---|---|
| public DmtData(long lng) Create a
| |
| DmtData | back to summary |
|---|---|
| public DmtData(boolean bool) Create a
| |
| DmtData | back to summary |
|---|---|
| public DmtData(byte[] bytes) Create a
| |
| DmtData | back to summary |
|---|---|
| public DmtData(byte[] bytes, boolean base64) Create a
| |
| DmtData | back to summary |
|---|---|
| public DmtData(byte[] bytes, int format) Create a
| |
| DmtData | back to summary |
|---|---|
| public DmtData(String formatName, String data) Create a
| |
| DmtData | back to summary |
|---|---|
| private DmtData(Object value, int format, String formatName) | |
| DmtData | back to summary |
|---|---|
| public DmtData(String formatName, byte[] data) Create a
| |
| appendHexByte | back to summary |
|---|---|
| private static void appendHexByte(StringBuilder buf, byte b) | |
| checkDateFormat | back to summary |
|---|---|
| private static void checkDateFormat(String value) | |
| checkNumber | back to summary |
|---|---|
| private static int checkNumber(String value, String name, int from, int length, int min, int max) | |
| checkTimeFormat | back to summary |
|---|---|
| private static void checkTimeFormat(String value) | |
| copyBytes | back to summary |
|---|---|
| private byte[] copyBytes() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares the specified object with this
In case of | |
| getBase64 | back to summary |
|---|---|
| public byte[] getBase64() Gets the value of a node with base 64 (
| |
| getBinary | back to summary |
|---|---|
| public byte[] getBinary() Gets the value of a node with binary (
| |
| getBoolean | back to summary |
|---|---|
| public boolean getBoolean() Gets the value of a node with boolean (
| |
| getDate | back to summary |
|---|---|
| public String getDate() 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
| |
| getDateTime | back to summary |
|---|---|
| public Date getDateTime() Gets the value of a node with
| |
| getFloat | back to summary |
|---|---|
| public float getFloat() Gets the value of a node with
| |
| getFormat | back to summary |
|---|---|
| public int getFormat() 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'.
| |
| getFormatName | back to summary |
|---|---|
| public String getFormatName() Returns the format of this
| |
| getFormatName | back to summary |
|---|---|
| private static String getFormatName(int format) | |
| getHexDump | back to summary |
|---|---|
| private static String getHexDump(byte[] bytes) | |
| getInt | back to summary |
|---|---|
| public int getInt() Gets the value of a node with integer (
| |
| getLong | back to summary |
|---|---|
| public long getLong() Gets the value of a node with long format.
| |
| getNode | back to summary |
|---|---|
| public Object getNode() Gets the complex data associated with an interior node ( 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.
| |
| getRawBinary | back to summary |
|---|---|
| public byte[] getRawBinary() Gets the value of a node in raw binary (
| |
| getRawString | back to summary |
|---|---|
| public String getRawString() Gets the value of a node in raw
| |
| getSize | back to summary |
|---|---|
| public int getSize() Get the size of the data. The returned value depends on the format of data in the node:
| |
| getString | back to summary |
|---|---|
| public String getString() Gets the value of a node with string (
| |
| getTime | back to summary |
|---|---|
| public String getTime() 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
| |
| getXml | back to summary |
|---|---|
| public String getXml() Gets the value of a node with
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Gets the string representation of the
For string format data - including | |
| validate | back to summary |
|---|---|
| private void validate() | |