public class Subscription extends Object implements Serializable
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
void |
addSubscribedEvent(int index,
SubscribedEvent vSubscribedEvent) |
void |
addSubscribedEvent(SubscribedEvent vSubscribedEvent) |
Enumeration<SubscribedEvent> |
enumerateSubscribedEvent()
Method enumerateSubscribedEvent.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getName()
Returns the value of field 'name'.
|
SubscribedEvent[] |
getSubscribedEvent()
Method getSubscribedEvent.Returns the contents of the
collection in an Array.
|
SubscribedEvent |
getSubscribedEvent(int index)
Method getSubscribedEvent.
|
List<SubscribedEvent> |
getSubscribedEventCollection()
Method getSubscribedEventCollection.Returns a reference to
'_subscribedEventList'.
|
int |
getSubscribedEventCount()
Method getSubscribedEventCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<SubscribedEvent> |
iterateSubscribedEvent()
Method iterateSubscribedEvent.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllSubscribedEvent() |
boolean |
removeSubscribedEvent(SubscribedEvent vSubscribedEvent)
Method removeSubscribedEvent.
|
SubscribedEvent |
removeSubscribedEventAt(int index)
Method removeSubscribedEventAt.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setSubscribedEvent(int index,
SubscribedEvent vSubscribedEvent) |
void |
setSubscribedEvent(List<SubscribedEvent> vSubscribedEventList)
Sets the value of '_subscribedEventList' by copying the
given Vector.
|
void |
setSubscribedEvent(SubscribedEvent[] vSubscribedEventArray) |
void |
setSubscribedEventCollection(List<SubscribedEvent> subscribedEventList)
Deprecated.
|
static Subscription |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addSubscribedEvent(SubscribedEvent vSubscribedEvent) throws IndexOutOfBoundsException
vSubscribedEvent
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSubscribedEvent(int index, SubscribedEvent vSubscribedEvent) throws IndexOutOfBoundsException
index
- vSubscribedEvent
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<SubscribedEvent> enumerateSubscribedEvent()
public boolean equals(Object obj)
public String getName()
public SubscribedEvent getSubscribedEvent(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic SubscribedEvent[] getSubscribedEvent()
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<SubscribedEvent> getSubscribedEventCollection()
public int getSubscribedEventCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<SubscribedEvent> iterateSubscribedEvent()
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 removeAllSubscribedEvent()
public boolean removeSubscribedEvent(SubscribedEvent vSubscribedEvent)
vSubscribedEvent
- public SubscribedEvent removeSubscribedEventAt(int index)
index
- public void setName(String name)
name
- the value of field 'name'.public void setSubscribedEvent(int index, SubscribedEvent vSubscribedEvent) throws IndexOutOfBoundsException
index
- vSubscribedEvent
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSubscribedEvent(SubscribedEvent[] vSubscribedEventArray)
vSubscribedEventArray
- public void setSubscribedEvent(List<SubscribedEvent> vSubscribedEventList)
vSubscribedEventList
- the Vector to copy.public void setSubscribedEventCollection(List<SubscribedEvent> subscribedEventList)
subscribedEventList
- the Vector to set.public static Subscription 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.