DOFType MethodsOpenDOF Object Access Library

The DOFType type exposes the following members.

Methods

  NameDescription
Public methodStatic memberasBoolean
Returns the result's value as a boolean.
Public methodStatic memberasByte
Returns the result's value as an unsigned byte.
Public methodStatic memberasBytes
Returns the result's value as a byte array.
Public methodStatic memberasDate
Returns the result's value as a Date.
Public methodStatic memberasDOFInterfaceID
Returns the result's value as a DOFInterfaceID.
Public methodStatic memberasDOFObjectID
Returns the result's value as a DOFObjectID.
Public methodStatic memberasDouble
Returns the result's value as a double.
Public methodStatic memberasFloat
Returns the result's value as a float.
Public methodStatic memberasInt
Returns the result's value as an int.
Public methodStatic memberasLong
Returns the result's value as a Long.
Public methodStatic memberasSByte
Returns the result's value as an sbyte.
Public methodStatic memberasShort
Returns the result's value as a short.
Public methodStatic memberasString
Returns the result's value as a String.
Public methodStatic memberasUInt
Returns the result's value as a uint.
Public methodStatic memberasULong
Returns the result's value as a ulong.
Public methodStatic memberasUShort
Returns the result's value as a ushort.
Protected methoddataAvailable
Return whether the type has more data available.
Public methodEquals
Return whether two types are equal.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic membergetCharSet
Return a Java encoding string based on a MIB enum assignment.
Public methodgetEncoding
Get the string encoding for the type.
Public methodGetHashCode
Return a hash code for the type.
(Overrides ObjectGetHashCode.)
Public methodgetInstance
Create a DOFValue instance from a DOFPacket .

When called the current buffer location will point at the first byte of data associated with the type. On completion, the buffer location must point at the first byte after the data, meaning the first unread byte.

Public methodgetMaxLength
Get the maximum length of the type.
Public methodgetMinLength
Get the minimum length of the type.
Public methodgetSubtypes
Return a list of subtypes associated with this type.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodgetTypeID
Get the type identifier of this type.
Public methodStatic memberisCompatibleWith
Check for compatibility between a type and a value, properly handling the case where the value is
null
.
Public methodisDefined
Return whether of not the type is fully defined.
Public methodmarshal(DOFTypeContext, DOFPacket)
Marshal, or output a binary representation of this type, into the specified packet.
Public methodStatic membermarshal(DOFType, DOFValue, DOFPacket)
Write a DOFValue to a buffer, handling the case where the value is null.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodstartLength
Define the ending point of the data associated with a type.
Public methodToString
Returns a description of the type.
(Overrides ObjectToString.)
Protected methodvalidateLength
Verify that the data length for a type matched the data read for the type.
Top
See Also

Reference