org.opennms.netmgt.xml.eventconf
Class AlarmData

java.lang.Object
  extended by org.opennms.netmgt.xml.eventconf.AlarmData
All Implemented Interfaces:
Serializable

public class AlarmData
extends Object
implements Serializable

This element is used for converting events into alarms.

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

Constructor Summary
AlarmData()
           
 
Method Summary
 void deleteAlarmType()
           
 void deleteAutoClean()
           
 void deleteX733ProbableCause()
           
 int getAlarmType()
          Returns the value of field 'alarmType'.
 boolean getAutoClean()
          Returns the value of field 'autoClean'.
 String getClearKey()
          Returns the value of field 'clearKey'.
 String getClearUei()
          Returns the value of field 'clearUei'.
 String getReductionKey()
          Returns the value of field 'reductionKey'.
 String getX733AlarmType()
          Returns the value of field 'x733AlarmType'.
 int getX733ProbableCause()
          Returns the value of field 'x733ProbableCause'.
 boolean hasAlarmType()
          Method hasAlarmType.
 boolean hasAutoClean()
          Method hasAutoClean.
 boolean hasX733ProbableCause()
          Method hasX733ProbableCause.
 boolean isAutoClean()
          Returns the value of field 'autoClean'.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setAlarmType(int alarmType)
          Sets the value of field 'alarmType'.
 void setAutoClean(boolean autoClean)
          Sets the value of field 'autoClean'.
 void setClearKey(String clearKey)
          Sets the value of field 'clearKey'.
 void setClearUei(String clearUei)
          Sets the value of field 'clearUei'.
 void setReductionKey(String reductionKey)
          Sets the value of field 'reductionKey'.
 void setX733AlarmType(String x733AlarmType)
          Sets the value of field 'x733AlarmType'.
 void setX733ProbableCause(int x733ProbableCause)
          Sets the value of field 'x733ProbableCause'.
static AlarmData 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

AlarmData

public AlarmData()
Method Detail

deleteAlarmType

public void deleteAlarmType()

deleteAutoClean

public void deleteAutoClean()

deleteX733ProbableCause

public void deleteX733ProbableCause()

getAlarmType

public int getAlarmType()
Returns the value of field 'alarmType'.

Returns:
the value of field 'AlarmType'.

getAutoClean

public boolean getAutoClean()
Returns the value of field 'autoClean'.

Returns:
the value of field 'AutoClean'.

getClearKey

public String getClearKey()
Returns the value of field 'clearKey'.

Returns:
the value of field 'ClearKey'.

getClearUei

public String getClearUei()
Returns the value of field 'clearUei'.

Returns:
the value of field 'ClearUei'.

getReductionKey

public String getReductionKey()
Returns the value of field 'reductionKey'.

Returns:
the value of field 'ReductionKey'.

getX733AlarmType

public String getX733AlarmType()
Returns the value of field 'x733AlarmType'.

Returns:
the value of field 'X733AlarmType'.

getX733ProbableCause

public int getX733ProbableCause()
Returns the value of field 'x733ProbableCause'.

Returns:
the value of field 'X733ProbableCause'.

hasAlarmType

public boolean hasAlarmType()
Method hasAlarmType.

Returns:
true if at least one AlarmType has been added

hasAutoClean

public boolean hasAutoClean()
Method hasAutoClean.

Returns:
true if at least one AutoClean has been added

hasX733ProbableCause

public boolean hasX733ProbableCause()
Method hasX733ProbableCause.

Returns:
true if at least one X733ProbableCause has been added

isAutoClean

public boolean isAutoClean()
Returns the value of field 'autoClean'.

Returns:
the value of field 'AutoClean'.

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
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

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
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 marshaling

setAlarmType

public void setAlarmType(int alarmType)
Sets the value of field 'alarmType'.

Parameters:
alarmType - the value of field 'alarmType'.

setAutoClean

public void setAutoClean(boolean autoClean)
Sets the value of field 'autoClean'.

Parameters:
autoClean - the value of field 'autoClean'.

setClearKey

public void setClearKey(String clearKey)
Sets the value of field 'clearKey'.

Parameters:
clearKey - the value of field 'clearKey'.

setClearUei

public void setClearUei(String clearUei)
Sets the value of field 'clearUei'.

Parameters:
clearUei - the value of field 'clearUei'.

setReductionKey

public void setReductionKey(String reductionKey)
Sets the value of field 'reductionKey'.

Parameters:
reductionKey - the value of field 'reductionKey'.

setX733AlarmType

public void setX733AlarmType(String x733AlarmType)
Sets the value of field 'x733AlarmType'.

Parameters:
x733AlarmType - the value of field 'x733AlarmType'.

setX733ProbableCause

public void setX733ProbableCause(int x733ProbableCause)
Sets the value of field 'x733ProbableCause'.

Parameters:
x733ProbableCause - the value of field 'x733ProbableCause'.

unmarshal

public static AlarmData unmarshal(Reader reader)
                           throws org.exolab.castor.xml.MarshalException,
                                  org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.xml.eventconf.AlarmData
Throws:
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

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright ? 2008. All Rights Reserved.