org.opennms.netmgt.config.xmlrpcd
Class Subscription

java.lang.Object
  extended by org.opennms.netmgt.config.xmlrpcd.Subscription
All Implemented Interfaces:
java.io.Serializable

public class Subscription
extends java.lang.Object
implements java.io.Serializable

Subscription defines a set of events that an external XMLRPC server interested, and need OpenNMS to give notification via XMLRPC protocol

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Subscription()
           
 
Method Summary
 void addSubscribedEvent(int index, SubscribedEvent vSubscribedEvent)
          Method addSubscribedEvent
 void addSubscribedEvent(SubscribedEvent vSubscribedEvent)
          Method addSubscribedEvent
 void clearSubscribedEvent()
          Method clearSubscribedEvent
 java.util.Enumeration enumerateSubscribedEvent()
          Method enumerateSubscribedEvent
 SubscribedEvent[] getSubscribedEvent()
          Method getSubscribedEvent
 SubscribedEvent getSubscribedEvent(int index)
          Method getSubscribedEvent
 java.util.ArrayList getSubscribedEventCollection()
          Method getSubscribedEventCollection Returns a reference to 'subscribedEvent'.
 int getSubscribedEventCount()
          Method getSubscribedEventCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeSubscribedEvent(SubscribedEvent vSubscribedEvent)
          Method removeSubscribedEvent
 void setSubscribedEvent(java.util.ArrayList subscribedEventCollection)
          Method setSubscribedEvent Sets the value of 'subscribedEvent' by copying the given ArrayList.
 void setSubscribedEvent(int index, SubscribedEvent vSubscribedEvent)
          Method setSubscribedEvent
 void setSubscribedEvent(SubscribedEvent[] subscribedEventArray)
          Method setSubscribedEvent
 void setSubscribedEventCollection(java.util.ArrayList subscribedEventCollection)
          Method setSubscribedEventCollection Sets the value of 'subscribedEvent' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subscription

public Subscription()
Method Detail

addSubscribedEvent

public void addSubscribedEvent(SubscribedEvent vSubscribedEvent)
                        throws java.lang.IndexOutOfBoundsException
Method addSubscribedEvent

Parameters:
vSubscribedEvent -
Throws:
java.lang.IndexOutOfBoundsException

addSubscribedEvent

public void addSubscribedEvent(int index,
                               SubscribedEvent vSubscribedEvent)
                        throws java.lang.IndexOutOfBoundsException
Method addSubscribedEvent

Parameters:
index -
vSubscribedEvent -
Throws:
java.lang.IndexOutOfBoundsException

clearSubscribedEvent

public void clearSubscribedEvent()
Method clearSubscribedEvent


enumerateSubscribedEvent

public java.util.Enumeration enumerateSubscribedEvent()
Method enumerateSubscribedEvent

Returns:
Enumeration

getSubscribedEvent

public SubscribedEvent getSubscribedEvent(int index)
                                   throws java.lang.IndexOutOfBoundsException
Method getSubscribedEvent

Parameters:
index -
Returns:
SubscribedEvent
Throws:
java.lang.IndexOutOfBoundsException

getSubscribedEvent

public SubscribedEvent[] getSubscribedEvent()
Method getSubscribedEvent

Returns:
SubscribedEvent

getSubscribedEventCollection

public java.util.ArrayList getSubscribedEventCollection()
Method getSubscribedEventCollection Returns a reference to 'subscribedEvent'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getSubscribedEventCount

public int getSubscribedEventCount()
Method getSubscribedEventCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeSubscribedEvent

public boolean removeSubscribedEvent(SubscribedEvent vSubscribedEvent)
Method removeSubscribedEvent

Parameters:
vSubscribedEvent -
Returns:
boolean

setSubscribedEvent

public void setSubscribedEvent(int index,
                               SubscribedEvent vSubscribedEvent)
                        throws java.lang.IndexOutOfBoundsException
Method setSubscribedEvent

Parameters:
index -
vSubscribedEvent -
Throws:
java.lang.IndexOutOfBoundsException

setSubscribedEvent

public void setSubscribedEvent(SubscribedEvent[] subscribedEventArray)
Method setSubscribedEvent

Parameters:
subscribedEventArray -

setSubscribedEvent

public void setSubscribedEvent(java.util.ArrayList subscribedEventCollection)
Method setSubscribedEvent Sets the value of 'subscribedEvent' by copying the given ArrayList.

Parameters:
subscribedEventCollection - the Vector to copy.

setSubscribedEventCollection

public void setSubscribedEventCollection(java.util.ArrayList subscribedEventCollection)
Method setSubscribedEventCollection Sets the value of 'subscribedEvent' by setting it to the given ArrayList. No type checking is performed.

Parameters:
subscribedEventCollection - the ArrayList to copy.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.