org.opennms.netmgt.config.ackd
Class AckdConfiguration

java.lang.Object
  extended by org.opennms.netmgt.config.ackd.AckdConfiguration
All Implemented Interfaces:
Serializable

public class AckdConfiguration
extends Object
implements Serializable

Behavior configuration for the Acknowledgment Daemon

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

Constructor Summary
AckdConfiguration()
           
 
Method Summary
 void deleteAlarmSync()
           
 boolean equals(Object obj)
          Overrides the java.lang.Object.equals method.
 String getAckExpression()
          Returns the value of field 'ackExpression'.
 String getAlarmidMatchExpression()
          Returns the value of field 'alarmidMatchExpression'.
 boolean getAlarmSync()
          Returns the value of field 'alarmSync'.
 String getClearExpression()
          Returns the value of field 'clearExpression'.
 String getEscalateExpression()
          Returns the value of field 'escalateExpression'.
 String getNotifyidMatchExpression()
          Returns the value of field 'notifyidMatchExpression'.
 Readers getReaders()
          Returns the value of field 'readers'.
 String getUnackExpression()
          Returns the value of field 'unackExpression'.
 boolean hasAlarmSync()
          Method hasAlarmSync.
 int hashCode()
          Overrides the java.lang.Object.hashCode method.
 boolean isAlarmSync()
          Returns the value of field 'alarmSync'.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setAckExpression(String ackExpression)
          Sets the value of field 'ackExpression'.
 void setAlarmidMatchExpression(String alarmidMatchExpression)
          Sets the value of field 'alarmidMatchExpression'.
 void setAlarmSync(boolean alarmSync)
          Sets the value of field 'alarmSync'.
 void setClearExpression(String clearExpression)
          Sets the value of field 'clearExpression'.
 void setEscalateExpression(String escalateExpression)
          Sets the value of field 'escalateExpression'.
 void setNotifyidMatchExpression(String notifyidMatchExpression)
          Sets the value of field 'notifyidMatchExpression'.
 void setReaders(Readers readers)
          Sets the value of field 'readers'.
 void setUnackExpression(String unackExpression)
          Sets the value of field 'unackExpression'.
static AckdConfiguration unmarshal(Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AckdConfiguration

public AckdConfiguration()
Method Detail

deleteAlarmSync

public void deleteAlarmSync()

equals

public boolean equals(Object obj)
Overrides the java.lang.Object.equals method.

Overrides:
equals in class Object
Parameters:
obj -
Returns:
true if the objects are equal.

getAckExpression

public String getAckExpression()
Returns the value of field 'ackExpression'.

Returns:
the value of field 'AckExpression'.

getAlarmSync

public boolean getAlarmSync()
Returns the value of field 'alarmSync'.

Returns:
the value of field 'AlarmSync'.

getAlarmidMatchExpression

public String getAlarmidMatchExpression()
Returns the value of field 'alarmidMatchExpression'.

Returns:
the value of field 'AlarmidMatchExpression'.

getClearExpression

public String getClearExpression()
Returns the value of field 'clearExpression'.

Returns:
the value of field 'ClearExpression'.

getEscalateExpression

public String getEscalateExpression()
Returns the value of field 'escalateExpression'.

Returns:
the value of field 'EscalateExpression'.

getNotifyidMatchExpression

public String getNotifyidMatchExpression()
Returns the value of field 'notifyidMatchExpression'.

Returns:
the value of field 'NotifyidMatchExpression'.

getReaders

public Readers getReaders()
Returns the value of field 'readers'. The field 'readers' has the following description: Location for user to define readers and they're schedules.

Returns:
the value of field 'Readers'.

getUnackExpression

public String getUnackExpression()
Returns the value of field 'unackExpression'.

Returns:
the value of field 'UnackExpression'.

hasAlarmSync

public boolean hasAlarmSync()
Method hasAlarmSync.

Returns:
true if at least one AlarmSync has been added

hashCode

public int hashCode()
Overrides the java.lang.Object.hashCode method.

The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3

Overrides:
hashCode in class Object
Returns:
a hash code value for the object.

isAlarmSync

public boolean isAlarmSync()
Returns the value of field 'alarmSync'.

Returns:
the value of field 'AlarmSync'.

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

setAckExpression

public void setAckExpression(String ackExpression)
Sets the value of field 'ackExpression'.

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

setAlarmSync

public void setAlarmSync(boolean alarmSync)
Sets the value of field 'alarmSync'.

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

setAlarmidMatchExpression

public void setAlarmidMatchExpression(String alarmidMatchExpression)
Sets the value of field 'alarmidMatchExpression'.

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

setClearExpression

public void setClearExpression(String clearExpression)
Sets the value of field 'clearExpression'.

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

setEscalateExpression

public void setEscalateExpression(String escalateExpression)
Sets the value of field 'escalateExpression'.

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

setNotifyidMatchExpression

public void setNotifyidMatchExpression(String notifyidMatchExpression)
Sets the value of field 'notifyidMatchExpression'.

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

setReaders

public void setReaders(Readers readers)
Sets the value of field 'readers'. The field 'readers' has the following description: Location for user to define readers and they're schedules.

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

setUnackExpression

public void setUnackExpression(String unackExpression)
Sets the value of field 'unackExpression'.

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

unmarshal

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

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.ackd.AckdConfiguration
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 © 2011. All Rights Reserved.