Class VmwareGroup
- java.lang.Object
- 
- org.opennms.netmgt.config.vmware.vijava.VmwareGroup
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class VmwareGroup extends Object implements Serializable An VMware Object Group- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description VmwareGroup()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttrib(int index, Attrib vAttrib)voidaddAttrib(Attrib vAttrib)Enumeration<Attrib>enumerateAttrib()Method enumerateAttrib.booleanequals(Object obj)Overrides the java.lang.Object.equals method.Attrib[]getAttrib()Method getAttrib.Returns the contents of the collection in an Array.AttribgetAttrib(int index)Method getAttrib.List<Attrib>getAttribCollection()Method getAttribCollection.Returns a reference to '_attribList'.intgetAttribCount()Method getAttribCount.StringgetName()Returns the value of field 'name'.StringgetResourceType()Returns the value of field 'resourceType'.Iterator<Attrib>iterateAttrib()Method iterateAttrib.voidremoveAllAttrib()booleanremoveAttrib(Attrib vAttrib)Method removeAttrib.AttribremoveAttribAt(int index)Method removeAttribAt.voidsetAttrib(int index, Attrib vAttrib)voidsetAttrib(List<Attrib> vAttribList)Sets the value of '_attribList' by copying the given Vector.voidsetAttrib(Attrib[] vAttribArray)voidsetName(String name)Sets the value of field 'name'.voidsetResourceType(String resourceType)Sets the value of field 'resourceType'.
 
- 
- 
- 
Method Detail- 
addAttribpublic void addAttrib(Attrib vAttrib) throws IndexOutOfBoundsException - Parameters:
- vAttrib-
- Throws:
- IndexOutOfBoundsException- if the index given is outside the bounds of the collection
 
 - 
addAttribpublic void addAttrib(int index, Attrib vAttrib) throws IndexOutOfBoundsException- Parameters:
- index-
- vAttrib-
- Throws:
- IndexOutOfBoundsException- if the index given is outside the bounds of the collection
 
 - 
enumerateAttribpublic Enumeration<Attrib> enumerateAttrib() Method enumerateAttrib.- Returns:
- an Enumeration over all possible elements of this collection
 
 - 
equalspublic boolean equals(Object obj) Overrides the java.lang.Object.equals method.
 - 
getAttribpublic Attrib getAttrib(int index) throws IndexOutOfBoundsException Method getAttrib.- Parameters:
- index-
- Returns:
- the value of the org.opennms.netmgt.config.vmware.vijava.Attrib at the given index
- Throws:
- IndexOutOfBoundsException- if the index given is outside the bounds of the collection
 
 - 
getAttribpublic Attrib[] getAttrib() Method getAttrib.Returns the contents of the collection in an Array.Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length. - Returns:
- this collection as an Array
 
 - 
getAttribCollectionpublic List<Attrib> getAttribCollection() Method getAttribCollection.Returns a reference to '_attribList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
 
 - 
getAttribCountpublic int getAttribCount() Method getAttribCount.- Returns:
- the size of this collection
 
 - 
getNamepublic String getName() Returns the value of field 'name'. The field 'name' has the following description: The name of this group, for user id purposes- Returns:
- the value of field 'Name'.
 
 - 
getResourceTypepublic String getResourceType() Returns the value of field 'resourceType'. The field 'resourceType' has the following description: Specifies the name of the resource type that pertains to the attributes in this group. For scalar attributes (those occurring once per node, such as available system memory) this should be "node". For multi-instanced attributes, this should be the name of a custom resource type declared in datacollection-config.xml.- Returns:
- the value of field 'ResourceType'.
 
 - 
iterateAttribpublic Iterator<Attrib> iterateAttrib() Method iterateAttrib.- Returns:
- an Iterator over all possible elements in this collection
 
 - 
removeAllAttribpublic void removeAllAttrib() 
 - 
removeAttribpublic boolean removeAttrib(Attrib vAttrib) Method removeAttrib.- Parameters:
- vAttrib-
- Returns:
- true if the object was removed from the collection.
 
 - 
removeAttribAtpublic Attrib removeAttribAt(int index) Method removeAttribAt.- Parameters:
- index-
- Returns:
- the element removed from the collection
 
 - 
setAttribpublic void setAttrib(int index, Attrib vAttrib) throws IndexOutOfBoundsException- Parameters:
- index-
- vAttrib-
- Throws:
- IndexOutOfBoundsException- if the index given is outside the bounds of the collection
 
 - 
setAttribpublic void setAttrib(Attrib[] vAttribArray) - Parameters:
- vAttribArray-
 
 - 
setAttribpublic void setAttrib(List<Attrib> vAttribList) Sets the value of '_attribList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
- vAttribList- the Vector to copy.
 
 - 
setNamepublic void setName(String name) Sets the value of field 'name'. The field 'name' has the following description: The name of this group, for user id purposes- Parameters:
- name- the value of field 'name'.
 
 - 
setResourceTypepublic void setResourceType(String resourceType) Sets the value of field 'resourceType'. The field 'resourceType' has the following description: Specifies the name of the resource type that pertains to the attributes in this group. For scalar attributes (those occurring once per node, such as available system memory) this should be "node". For multi-instanced attributes, this should be the name of a custom resource type declared in datacollection-config.xml.- Parameters:
- resourceType- the value of field 'resourceType'.
 
 
- 
 
-