The DOFType type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| asBoolean | Returns the result's value as a boolean. | |
| asByte | Returns the result's value as an unsigned byte. | |
| asBytes | Returns the result's value as a byte array. | |
| asDate | Returns the result's value as a Date. | |
| asDOFInterfaceID | Returns the result's value as a DOFInterfaceID. | |
| asDOFObjectID | Returns the result's value as a DOFObjectID. | |
| asDouble | Returns the result's value as a double. | |
| asFloat | Returns the result's value as a float. | |
| asInt | Returns the result's value as an int. | |
| asLong | Returns the result's value as a Long. | |
| asSByte | Returns the result's value as an sbyte. | |
| asShort | Returns the result's value as a short. | |
| asString | Returns the result's value as a String. | |
| asUInt | Returns the result's value as a uint. | |
| asULong | Returns the result's value as a ulong. | |
| asUShort | Returns the result's value as a ushort. | |
| dataAvailable | Return whether the type has more data available. | |
| Equals | Return whether two types are equal. (Overrides ObjectEquals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| getCharSet | Return a Java encoding string based on a MIB enum assignment. | |
| getEncoding | Get the string encoding for the type. | |
| GetHashCode | Return a hash code for the type. (Overrides ObjectGetHashCode.) | |
| getInstance | ||
| getMaxLength | Get the maximum length of the type. | |
| getMinLength | Get the minimum length of the type. | |
| getSubtypes | Return a list of subtypes associated with this type. | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| getTypeID | Get the type identifier of this type. | |
| isCompatibleWith |
Check for compatibility between a type and a value, properly handling the case where
the value is null | |
| isDefined | Return whether of not the type is fully defined. | |
| marshal(DOFTypeContext, DOFPacket) |
Marshal, or output a binary representation of this type, into the
specified packet.
| |
| marshal(DOFType, DOFValue, DOFPacket) | Write a DOFValue to a buffer, handling the case where the value is null.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| startLength | Define the ending point of the data associated with a type. | |
| ToString | Returns a description of the type. (Overrides ObjectToString.) | |
| validateLength | Verify that the data length for a type matched the data read for the type.
|
See Also