|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.xmlrpcd.Subscription
public class Subscription
Subscription defines a set of events that an external XMLRPC server interested, and need OpenNMS to give notification via XMLRPC protocol
| Constructor Summary | |
|---|---|
Subscription()
|
|
| Method Summary | |
|---|---|
void |
addSubscribedEvent(int index,
SubscribedEvent vSubscribedEvent)
|
void |
addSubscribedEvent(SubscribedEvent vSubscribedEvent)
|
Enumeration<SubscribedEvent> |
enumerateSubscribedEvent()
Method enumerateSubscribedEvent. |
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. |
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 |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Subscription()
| Method Detail |
|---|
public void addSubscribedEvent(SubscribedEvent vSubscribedEvent)
throws IndexOutOfBoundsException
vSubscribedEvent -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public 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 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 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.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 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||