com.tivoli.twg.dmi
Class DMIAttributeValue

java.lang.Object
  extended bycom.tivoli.twg.dmi.DMIAttributeValue

public class DMIAttributeValue
extends java.lang.Object

This class represents the Value assigned to a DMI Attribute.

See Also:
MIF_Types, DMIAttributeValue, DMIEnumValues

Constructor Summary
  DMIAttributeValue(int ID, byte Type, java.lang.Object Value)
          Create a new DMIAttributeValue.
protected DMIAttributeValue(IntelByteBuffer Buffer)
           
 
Method Summary
protected  void Encode(IntelByteBuffer Buffer)
           
 int GetID()
          Accessor method for retrieving the Attribute ID.
 int GetType()
          Accessor method for retrieving the Type associated with this attribute.
 java.lang.String GetTypeAsString()
          Method to return the Type as a Keyword string - as defined by the specification
 java.lang.Object GetValue()
          Accessor method for retrieving the value object
 java.lang.String GetValueAsString()
          Accessor method for obtaining a display string representation of this value
protected  int Length()
           
 void SetValue(java.lang.Object Value)
          Method to allow the replacement of the value object with a new one
 java.lang.String toString()
          Debug method to provide a displayable string that contains a dump of all of the information contained in this attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DMIAttributeValue

public DMIAttributeValue(int ID,
                         byte Type,
                         java.lang.Object Value)
Create a new DMIAttributeValue.

See Also:
MIF_Types, DMIEnumValues, DMI_DateString

DMIAttributeValue

protected DMIAttributeValue(IntelByteBuffer Buffer)
Method Detail

GetID

public int GetID()
Accessor method for retrieving the Attribute ID.

Returns:
int - Attribute ID.

GetType

public int GetType()
Accessor method for retrieving the Type associated with this attribute.

Returns:
int - MIF_Type

GetTypeAsString

public java.lang.String GetTypeAsString()
Method to return the Type as a Keyword string - as defined by the specification

Returns:
String - Keyword String

GetValue

public java.lang.Object GetValue()
Accessor method for retrieving the value object

Returns:
Object - an Object that contains the actual value for this attribute. The type of object returned depends on the Type for this attribute.

SetValue

public void SetValue(java.lang.Object Value)
Method to allow the replacement of the value object with a new one


GetValueAsString

public java.lang.String GetValueAsString()
Accessor method for obtaining a display string representation of this value

Returns:
String - Displayable string containing the value for this attribute

Encode

protected void Encode(IntelByteBuffer Buffer)

Length

protected int Length()

toString

public java.lang.String toString()
Debug method to provide a displayable string that contains a dump of all of the information contained in this attribute value.

Returns:
String - Display string contained the value information