org.opennms.netmgt.config.translator
Class Translation

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

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

List of OpenNMS events for which the passive status keeper will subscribe to translate to an event for a passive node

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

Constructor Summary
Translation()
           
 
Method Summary
 void addEventTranslationSpec(EventTranslationSpec vEventTranslationSpec)
          Method addEventTranslationSpec
 void addEventTranslationSpec(int index, EventTranslationSpec vEventTranslationSpec)
          Method addEventTranslationSpec
 void clearEventTranslationSpec()
          Method clearEventTranslationSpec
 java.util.Enumeration enumerateEventTranslationSpec()
          Method enumerateEventTranslationSpec
 EventTranslationSpec[] getEventTranslationSpec()
          Method getEventTranslationSpec
 EventTranslationSpec getEventTranslationSpec(int index)
          Method getEventTranslationSpec
 java.util.ArrayList getEventTranslationSpecCollection()
          Method getEventTranslationSpecCollection Returns a reference to 'eventTranslationSpec'.
 int getEventTranslationSpecCount()
          Method getEventTranslationSpecCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeEventTranslationSpec(EventTranslationSpec vEventTranslationSpec)
          Method removeEventTranslationSpec
 void setEventTranslationSpec(java.util.ArrayList eventTranslationSpecCollection)
          Method setEventTranslationSpec Sets the value of 'eventTranslationSpec' by copying the given ArrayList.
 void setEventTranslationSpec(EventTranslationSpec[] eventTranslationSpecArray)
          Method setEventTranslationSpec
 void setEventTranslationSpec(int index, EventTranslationSpec vEventTranslationSpec)
          Method setEventTranslationSpec
 void setEventTranslationSpecCollection(java.util.ArrayList eventTranslationSpecCollection)
          Method setEventTranslationSpecCollection Sets the value of 'eventTranslationSpec' 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

Translation

public Translation()
Method Detail

addEventTranslationSpec

public void addEventTranslationSpec(EventTranslationSpec vEventTranslationSpec)
                             throws java.lang.IndexOutOfBoundsException
Method addEventTranslationSpec

Parameters:
vEventTranslationSpec -
Throws:
java.lang.IndexOutOfBoundsException

addEventTranslationSpec

public void addEventTranslationSpec(int index,
                                    EventTranslationSpec vEventTranslationSpec)
                             throws java.lang.IndexOutOfBoundsException
Method addEventTranslationSpec

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

clearEventTranslationSpec

public void clearEventTranslationSpec()
Method clearEventTranslationSpec


enumerateEventTranslationSpec

public java.util.Enumeration enumerateEventTranslationSpec()
Method enumerateEventTranslationSpec

Returns:
Enumeration

getEventTranslationSpec

public EventTranslationSpec getEventTranslationSpec(int index)
                                             throws java.lang.IndexOutOfBoundsException
Method getEventTranslationSpec

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

getEventTranslationSpec

public EventTranslationSpec[] getEventTranslationSpec()
Method getEventTranslationSpec

Returns:
EventTranslationSpec

getEventTranslationSpecCollection

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

Returns:
ArrayList

getEventTranslationSpecCount

public int getEventTranslationSpecCount()
Method getEventTranslationSpecCount

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

removeEventTranslationSpec

public boolean removeEventTranslationSpec(EventTranslationSpec vEventTranslationSpec)
Method removeEventTranslationSpec

Parameters:
vEventTranslationSpec -
Returns:
boolean

setEventTranslationSpec

public void setEventTranslationSpec(int index,
                                    EventTranslationSpec vEventTranslationSpec)
                             throws java.lang.IndexOutOfBoundsException
Method setEventTranslationSpec

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

setEventTranslationSpec

public void setEventTranslationSpec(EventTranslationSpec[] eventTranslationSpecArray)
Method setEventTranslationSpec

Parameters:
eventTranslationSpecArray -

setEventTranslationSpec

public void setEventTranslationSpec(java.util.ArrayList eventTranslationSpecCollection)
Method setEventTranslationSpec Sets the value of 'eventTranslationSpec' by copying the given ArrayList.

Parameters:
eventTranslationSpecCollection - the Vector to copy.

setEventTranslationSpecCollection

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

Parameters:
eventTranslationSpecCollection - 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.