Package org.opennms.netmgt.xml.event
Class EventReceipt
- java.lang.Object
-
- org.opennms.netmgt.xml.event.EventReceipt
-
- All Implemented Interfaces:
java.io.Serializable
public class EventReceipt extends java.lang.Object implements java.io.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 void
addUuid(int index, java.lang.String vUuid)
void
addUuid(java.lang.String vUuid)
java.util.Enumeration<java.lang.String>
enumerateUuid()
Method enumerateUuid.java.lang.String[]
getUuid()
Method getUuid.Returns the contents of the collection in an Array.java.lang.String
getUuid(int index)
Method getUuid.java.util.List<java.lang.String>
getUuidCollection()
Method getUuidCollection.Returns a reference to '_uuidList'.int
getUuidCount()
Method getUuidCount.java.util.Iterator<java.lang.String>
iterateUuid()
Method iterateUuid.void
removeAllUuid()
boolean
removeUuid(java.lang.String vUuid)
Method removeUuid.java.lang.String
removeUuidAt(int index)
Method removeUuidAt.void
setUuid(int index, java.lang.String vUuid)
void
setUuid(java.lang.String[] vUuidArray)
void
setUuid(java.util.List<java.lang.String> vUuidList)
Sets the value of '_uuidList' by copying the given Vector.void
setUuidCollection(java.util.List<java.lang.String> uuidList)
Deprecated.java.lang.String
toString()
-
-
-
Method Detail
-
addUuid
public void addUuid(java.lang.String vUuid) throws java.lang.IndexOutOfBoundsException
- Parameters:
vUuid
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addUuid
public void addUuid(int index, java.lang.String vUuid) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vUuid
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
enumerateUuid
public java.util.Enumeration<java.lang.String> enumerateUuid()
Method enumerateUuid.- Returns:
- an Enumeration over all possible elements of this collection
-
getUuid
public java.lang.String getUuid(int index) throws java.lang.IndexOutOfBoundsException
Method getUuid.- Parameters:
index
-- Returns:
- the value of the java.lang.String at the given index
- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
getUuid
public java.lang.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 java.util.List<java.lang.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 java.util.Iterator<java.lang.String> iterateUuid()
Method iterateUuid.- Returns:
- an Iterator over all possible elements in this collection
-
removeAllUuid
public void removeAllUuid()
-
removeUuid
public boolean removeUuid(java.lang.String vUuid)
Method removeUuid.- Parameters:
vUuid
-- Returns:
- true if the object was removed from the collection.
-
removeUuidAt
public java.lang.String removeUuidAt(int index)
Method removeUuidAt.- Parameters:
index
-- Returns:
- the element removed from the collection
-
setUuid
public void setUuid(int index, java.lang.String vUuid) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vUuid
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setUuid
public void setUuid(java.lang.String[] vUuidArray)
- Parameters:
vUuidArray
-
-
setUuid
public void setUuid(java.util.List<java.lang.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(java.util.List<java.lang.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.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-