public class Events extends Object implements Serializable
Constructor and Description |
---|
Events() |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Event vEvent) |
void |
addEvent(int index,
Event vEvent) |
void |
addEventFile(int index,
String vEventFile) |
void |
addEventFile(String vEventFile) |
Enumeration<Event> |
enumerateEvent()
Method enumerateEvent.
|
Enumeration<String> |
enumerateEventFile()
Method enumerateEventFile.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
Event[] |
getEvent()
Method getEvent.Returns the contents of the collection in an
Array.
|
Event |
getEvent(int index)
Method getEvent.
|
List<Event> |
getEventCollection()
Method getEventCollection.Returns a reference to
'_eventList'.
|
int |
getEventCount()
Method getEventCount.
|
String[] |
getEventFile()
Method getEventFile.Returns the contents of the collection
in an Array.
|
String |
getEventFile(int index)
Method getEventFile.
|
List<String> |
getEventFileCollection()
Method getEventFileCollection.Returns a reference to
'_eventFileList'.
|
int |
getEventFileCount()
Method getEventFileCount.
|
Global |
getGlobal()
Returns the value of field 'global'.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Event> |
iterateEvent()
Method iterateEvent.
|
Iterator<String> |
iterateEventFile()
Method iterateEventFile.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllEvent() |
void |
removeAllEventFile() |
boolean |
removeEvent(Event vEvent)
Method removeEvent.
|
Event |
removeEventAt(int index)
Method removeEventAt.
|
boolean |
removeEventFile(String vEventFile)
Method removeEventFile.
|
String |
removeEventFileAt(int index)
Method removeEventFileAt.
|
void |
setEvent(Event[] vEventArray) |
void |
setEvent(int index,
Event vEvent) |
void |
setEvent(List<Event> vEventList)
Sets the value of '_eventList' by copying the given Vector.
|
void |
setEventCollection(List<Event> eventList)
Deprecated.
|
void |
setEventFile(int index,
String vEventFile) |
void |
setEventFile(List<String> vEventFileList)
Sets the value of '_eventFileList' by copying the given
Vector.
|
void |
setEventFile(String[] vEventFileArray) |
void |
setEventFileCollection(List<String> eventFileList)
Deprecated.
|
void |
setGlobal(Global global)
Sets the value of field 'global'.
|
static Events |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addEvent(Event vEvent) throws IndexOutOfBoundsException
vEvent
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addEvent(int index, Event vEvent) throws IndexOutOfBoundsException
index
- vEvent
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addEventFile(String vEventFile) throws IndexOutOfBoundsException
vEventFile
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addEventFile(int index, String vEventFile) throws IndexOutOfBoundsException
index
- vEventFile
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Event> enumerateEvent()
public Enumeration<String> enumerateEventFile()
public boolean equals(Object obj)
public Event getEvent(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Event[] getEvent()
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.
public List<Event> getEventCollection()
public int getEventCount()
public String getEventFile(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getEventFile()
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.
public List<String> getEventFileCollection()
public int getEventFileCount()
public Global getGlobal()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Event> iterateEvent()
public Iterator<String> iterateEventFile()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllEvent()
public void removeAllEventFile()
public boolean removeEvent(Event vEvent)
vEvent
- public Event removeEventAt(int index)
index
- public boolean removeEventFile(String vEventFile)
vEventFile
- public String removeEventFileAt(int index)
index
- public void setEvent(int index, Event vEvent) throws IndexOutOfBoundsException
index
- vEvent
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setEvent(Event[] vEventArray)
vEventArray
- public void setEvent(List<Event> vEventList)
vEventList
- the Vector to copy.public void setEventCollection(List<Event> eventList)
eventList
- the Vector to set.public void setEventFile(int index, String vEventFile) throws IndexOutOfBoundsException
index
- vEventFile
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setEventFile(String[] vEventFileArray)
vEventFileArray
- public void setEventFile(List<String> vEventFileList)
vEventFileList
- the Vector to copy.public void setEventFileCollection(List<String> eventFileList)
eventFileList
- the Vector to set.public void setGlobal(Global global)
global
- the value of field 'global'.public static Events unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.