Package org.opennms.netmgt.config.vmware
Class VmwareConfig
- java.lang.Object
-
- org.opennms.netmgt.config.vmware.VmwareConfig
-
- All Implemented Interfaces:
java.io.Serializable
public class VmwareConfig extends java.lang.Object implements java.io.Serializable
This is the top-level element for vmware-config.xml- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VmwareConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVmwareServer(int index, VmwareServer vVmwareServer)
void
addVmwareServer(VmwareServer vVmwareServer)
java.util.Enumeration<VmwareServer>
enumerateVmwareServer()
Method enumerateVmwareServer.boolean
equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method.VmwareServer[]
getVmwareServer()
Method getVmwareServer.Returns the contents of the collection in an Array.VmwareServer
getVmwareServer(int index)
Method getVmwareServer.java.util.List<VmwareServer>
getVmwareServerCollection()
Method getVmwareServerCollection.Returns a reference to '_vmwareServerList'.int
getVmwareServerCount()
Method getVmwareServerCount.java.util.Iterator<VmwareServer>
iterateVmwareServer()
Method iterateVmwareServer.void
removeAllVmwareServer()
boolean
removeVmwareServer(VmwareServer vVmwareServer)
Method removeVmwareServer.VmwareServer
removeVmwareServerAt(int index)
Method removeVmwareServerAt.void
setVmwareServer(int index, VmwareServer vVmwareServer)
void
setVmwareServer(java.util.List<VmwareServer> vVmwareServerList)
Sets the value of '_vmwareServerList' by copying the given Vector.void
setVmwareServer(VmwareServer[] vVmwareServerArray)
-
-
-
Method Detail
-
addVmwareServer
public void addVmwareServer(VmwareServer vVmwareServer) throws java.lang.IndexOutOfBoundsException
- Parameters:
vVmwareServer
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addVmwareServer
public void addVmwareServer(int index, VmwareServer vVmwareServer) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vVmwareServer
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
enumerateVmwareServer
public java.util.Enumeration<VmwareServer> enumerateVmwareServer()
Method enumerateVmwareServer.- Returns:
- an Enumeration over all possible elements of this collection
-
equals
public boolean equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
-- Returns:
- true if the objects are equal.
-
getVmwareServer
public VmwareServer getVmwareServer(int index) throws java.lang.IndexOutOfBoundsException
Method getVmwareServer.- Parameters:
index
-- Returns:
- the value of the org.opennms.netmgt.config.vmware.VmwareServer at the given index
- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
getVmwareServer
public VmwareServer[] getVmwareServer()
Method getVmwareServer.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
-
getVmwareServerCollection
public java.util.List<VmwareServer> getVmwareServerCollection()
Method getVmwareServerCollection.Returns a reference to '_vmwareServerList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getVmwareServerCount
public int getVmwareServerCount()
Method getVmwareServerCount.- Returns:
- the size of this collection
-
iterateVmwareServer
public java.util.Iterator<VmwareServer> iterateVmwareServer()
Method iterateVmwareServer.- Returns:
- an Iterator over all possible elements in this collection
-
removeAllVmwareServer
public void removeAllVmwareServer()
-
removeVmwareServer
public boolean removeVmwareServer(VmwareServer vVmwareServer)
Method removeVmwareServer.- Parameters:
vVmwareServer
-- Returns:
- true if the object was removed from the collection.
-
removeVmwareServerAt
public VmwareServer removeVmwareServerAt(int index)
Method removeVmwareServerAt.- Parameters:
index
-- Returns:
- the element removed from the collection
-
setVmwareServer
public void setVmwareServer(int index, VmwareServer vVmwareServer) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vVmwareServer
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setVmwareServer
public void setVmwareServer(VmwareServer[] vVmwareServerArray)
- Parameters:
vVmwareServerArray
-
-
setVmwareServer
public void setVmwareServer(java.util.List<VmwareServer> vVmwareServerList)
Sets the value of '_vmwareServerList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vVmwareServerList
- the Vector to copy.
-
-