All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wrapper.Group

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

public class Group
extends Object

Constructor Index

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

Method Index

 o displayAttributes()
Display all the Attribute this Group has.
 o getAttribute(int)
Get an Attribute by ID.
 o getAttributeList()
Get the list of attributes of this Group.
 o getComponent()
Get the Component which contains this Group.
 o getDescription()
Get description of this Group.
 o getID()
Get the ID of this Group.
 o getName()
Get the name of this Group.
 o refresh()
Update the attribute list.
 o toString()
Get this Group in String format.

Constructors

 o Group
 public Group(ComponentB component,
              String name,
              int id,
              String description)
Constructor.

Parameters:
component - The component this Group belongs.
name - The name of this Group.
id - The id of this Group.
description - The description of this Group.

Methods

 o getComponent
 public ComponentB getComponent()
Get the Component which contains this Group.

Returns:
the Component this Group belongs to.
 o getName
 public String getName()
Get the name of this Group.

Returns:
a String as this Group's name.
 o getID
 public int getID()
Get the ID of this Group.

Returns:
an int as this Group's ID
 o getAttribute
 public Attribute getAttribute(int id)
Get an Attribute by ID.

Parameters:
id - Unique ID for an Attribute.
Returns:
an Attribute according to the ID.
 o getDescription
 public String getDescription()
Get description of this Group.

Returns:
a String as this Group's description.
 o getAttributeList
 public Attribute[] getAttributeList() throws DmiError
Get the list of attributes of this Group.

Returns:
an array of Attribute of this Group.
Throws: DmiError
on problem with disable getting the list.
 o refresh
 public void refresh() throws DmiError
Update the attribute list.

Throws: DmiError
if cannot update the list.
 o toString
 public String toString()
Get this Group in String format.

Returns:
id, name and description of this Group.
Overrides:
toString in class Object
 o displayAttributes
 public void displayAttributes()
Display all the Attribute this Group has.


All Packages  Class Hierarchy  This Package  Previous  Next  Index