Package org.opennms.netmgt.xml.event
Class EventReceipt
- java.lang.Object
-
- org.opennms.netmgt.xml.event.EventReceipt
-
- All Implemented Interfaces:
Serializable
public class EventReceipt extends Object implements Serializable
Class EventReceipt.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventReceipt()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddUuid(int index, String vUuid)voidaddUuid(String vUuid)Enumeration<String>enumerateUuid()Method enumerateUuid.String[]getUuid()Method getUuid.Returns the contents of the collection in an Array.StringgetUuid(int index)Method getUuid.List<String>getUuidCollection()Method getUuidCollection.Returns a reference to '_uuidList'.intgetUuidCount()Method getUuidCount.Iterator<String>iterateUuid()Method iterateUuid.voidremoveAllUuid()booleanremoveUuid(String vUuid)Method removeUuid.StringremoveUuidAt(int index)Method removeUuidAt.voidsetUuid(int index, String vUuid)voidsetUuid(String[] vUuidArray)voidsetUuid(List<String> vUuidList)Sets the value of '_uuidList' by copying the given Vector.voidsetUuidCollection(List<String> uuidList)Deprecated.StringtoString()
-
-
-
Method Detail
-
addUuid
public void addUuid(String vUuid) throws IndexOutOfBoundsException
- Parameters:
vUuid-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
addUuid
public void addUuid(int index, String vUuid) throws IndexOutOfBoundsException- Parameters:
index-vUuid-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
enumerateUuid
public Enumeration<String> enumerateUuid()
Method enumerateUuid.- Returns:
- an Enumeration over all possible elements of this collection
-
getUuid
public String getUuid(int index) throws IndexOutOfBoundsException
Method getUuid.- Parameters:
index-- Returns:
- the value of the java.lang.String at the given index
- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
getUuid
public String[] getUuid()
Method getUuid.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
-
getUuidCollection
public List<String> getUuidCollection()
Method getUuidCollection.Returns a reference to '_uuidList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getUuidCount
public int getUuidCount()
Method getUuidCount.- Returns:
- the size of this collection
-
iterateUuid
public Iterator<String> iterateUuid()
Method iterateUuid.- Returns:
- an Iterator over all possible elements in this collection
-
removeAllUuid
public void removeAllUuid()
-
removeUuid
public boolean removeUuid(String vUuid)
Method removeUuid.- Parameters:
vUuid-- Returns:
- true if the object was removed from the collection.
-
removeUuidAt
public String removeUuidAt(int index)
Method removeUuidAt.- Parameters:
index-- Returns:
- the element removed from the collection
-
setUuid
public void setUuid(int index, String vUuid) throws IndexOutOfBoundsException- Parameters:
index-vUuid-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
setUuid
public void setUuid(String[] vUuidArray)
- Parameters:
vUuidArray-
-
setUuid
public void setUuid(List<String> vUuidList)
Sets the value of '_uuidList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vUuidList- the Vector to copy.
-
setUuidCollection
public void setUuidCollection(List<String> uuidList)
Deprecated.Sets the value of '_uuidList' by setting it to the given Vector. No type checking is performed.- Parameters:
uuidList- the Vector to set.
-
-