All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wrapper.Attribute

java.lang.Object
   |
   +----wrapper.Attribute

public class Attribute
extends Object

Variable Index

 o COUNTER
 o COUNTER64
 o DATE
 o DISPLAYSTRING
 o GAUGE
 o INTEGER
 o INTEGER64
 o OCTETSTRING
 o READ_ONLY
 o READ_WRITE
 o UNKNOWN_ACCESS
 o UNSUPPORTED
 o WRITE_ONLY

Constructor Index

 o Attribute(Group, String, int, String, String, int, int)
Constructor.

Method Index

 o getAccessMode()
Get related String for an access mode.
 o getDataType()
Get related String for a data type.
 o getDescription()
Get the description of this Attribute.
 o getID()
Get the id of this Attribute.
 o getName()
Get the name of this Attribute.
 o getValue()
Get the value of this Attribute.
 o refresh()
Update the value of this Attribute.
 o setValue(int, String)
Set the value of this Attribute.
 o toString()
Attribute in String format.

Variables

 o UNKNOWN_ACCESS
 public final int UNKNOWN_ACCESS
 o READ_ONLY
 public final int READ_ONLY
 o READ_WRITE
 public final int READ_WRITE
 o WRITE_ONLY
 public final int WRITE_ONLY
 o UNSUPPORTED
 public final int UNSUPPORTED
 o COUNTER
 public final int COUNTER
 o COUNTER64
 public final int COUNTER64
 o GAUGE
 public final int GAUGE
 o INTEGER
 public final int INTEGER
 o INTEGER64
 public final int INTEGER64
 o OCTETSTRING
 public final int OCTETSTRING
 o DISPLAYSTRING
 public final int DISPLAYSTRING
 o DATE
 public final int DATE

Constructors

 o Attribute
 public Attribute(Group group,
                  String name,
                  int id,
                  String description,
                  String pragma,
                  int accessMode,
                  int dataType)
Constructor.

Parameters:
group - The Group which contains this Attribute.
name - The name of this Attribute.
id - The id of this Attribute.
description - The description of this Attribute.
pragma - The pragma of this Attribute.
accessMode - The access mode of this Attrivute. E.g., Read-only, read-write, etc.
dataType - The data type of this Attribute. E.g., integer, date, string, etc.

Methods

 o getName
 public String getName()
Get the name of this Attribute.

Returns:
A String as this Attribute's name.
 o getID
 public int getID()
Get the id of this Attribute.

Returns:
An int as this Attribute's ID
 o getDescription
 public String getDescription()
Get the description of this Attribute.

Returns:
A String as this Attribute's description.
 o getValue
 public String getValue()
Get the value of this Attribute.

Returns:
A String as the value of this Attribute.
 o refresh
 public void refresh() throws DmiError
Update the value of this Attribute.

Throws: DmiError
if cannot get the value of the attribute.
 o setValue
 public void setValue(int setMode,
                      String value) throws DmiError
Set the value of this Attribute.

Parameters:
setMode - The mode of setting, one of Set, Reserve and Release.
value - A String as the value of this Attribute.
Throws: DmiError
if violate the access mode, or cannot get the value correctly.
 o toString
 public String toString()
Attribute in String format.

Returns:
A String indicateds id, name, description, pragma, access mode, data type, and value.
Overrides:
toString in class Object
 o getAccessMode
 public String getAccessMode()
Get related String for an access mode.

Returns:
A String indicates the access mode of this Attribute.
 o getDataType
 public String getDataType()
Get related String for a data type.

Returns:
A String indicates the data Type of this Attribute.

All Packages  Class Hierarchy  This Package  Previous  Next  Index