All Packages Class Hierarchy This Package Previous Next Index
Class wrapper.Group
java.lang.Object
|
+----wrapper.Group
- public class Group
- extends Object
-
Group(ComponentB, String, int, String)
- Constructor.
-
displayAttributes()
- Display all the Attribute this Group has.
-
getAttribute(int)
- Get an Attribute by ID.
-
getAttributeList()
- Get the list of attributes of this Group.
-
getComponent()
- Get the Component which contains this Group.
-
getDescription()
- Get description of this Group.
-
getID()
- Get the ID of this Group.
-
getName()
- Get the name of this Group.
-
refresh()
- Update the attribute list.
-
toString()
- Get this Group in String format.
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.
getComponent
public ComponentB getComponent()
- Get the Component which contains this Group.
- Returns:
- the Component this Group belongs to.
getName
public String getName()
- Get the name of this Group.
- Returns:
- a String as this Group's name.
getID
public int getID()
- Get the ID of this Group.
- Returns:
- an int as this Group's ID
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.
getDescription
public String getDescription()
- Get description of this Group.
- Returns:
- a String as this Group's description.
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.
refresh
public void refresh() throws DmiError
- Update the attribute list.
- Throws: DmiError
- if cannot update the list.
toString
public String toString()
- Get this Group in String format.
- Returns:
- id, name and description of this Group.
- Overrides:
- toString in class Object
displayAttributes
public void displayAttributes()
- Display all the Attribute this Group has.
All Packages Class Hierarchy This Package Previous Next Index