org.opennms.netmgt.config.threshd
Class ThresholdingConfig

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

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

Top-level element for the thresholds.xml configuration file.

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

Constructor Summary
ThresholdingConfig()
           
 
Method Summary
 void addGroup(Group vGroup)
          Method addGroup
 void addGroup(int index, Group vGroup)
          Method addGroup
 void clearGroup()
          Method clearGroup
 java.util.Enumeration enumerateGroup()
          Method enumerateGroup
 Group[] getGroup()
          Method getGroup
 Group getGroup(int index)
          Method getGroup
 java.util.ArrayList getGroupCollection()
          Method getGroupCollection Returns a reference to 'group'.
 int getGroupCount()
          Method getGroupCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeGroup(Group vGroup)
          Method removeGroup
 void setGroup(java.util.ArrayList groupCollection)
          Method setGroup Sets the value of 'group' by copying the given ArrayList.
 void setGroup(Group[] groupArray)
          Method setGroup
 void setGroup(int index, Group vGroup)
          Method setGroup
 void setGroupCollection(java.util.ArrayList groupCollection)
          Method setGroupCollection Sets the value of 'group' 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

ThresholdingConfig

public ThresholdingConfig()
Method Detail

addGroup

public void addGroup(Group vGroup)
              throws java.lang.IndexOutOfBoundsException
Method addGroup

Parameters:
vGroup -
Throws:
java.lang.IndexOutOfBoundsException

addGroup

public void addGroup(int index,
                     Group vGroup)
              throws java.lang.IndexOutOfBoundsException
Method addGroup

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

clearGroup

public void clearGroup()
Method clearGroup


enumerateGroup

public java.util.Enumeration enumerateGroup()
Method enumerateGroup

Returns:
Enumeration

getGroup

public Group getGroup(int index)
               throws java.lang.IndexOutOfBoundsException
Method getGroup

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

getGroup

public Group[] getGroup()
Method getGroup

Returns:
Group

getGroupCollection

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

Returns:
ArrayList

getGroupCount

public int getGroupCount()
Method getGroupCount

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

removeGroup

public boolean removeGroup(Group vGroup)
Method removeGroup

Parameters:
vGroup -
Returns:
boolean

setGroup

public void setGroup(int index,
                     Group vGroup)
              throws java.lang.IndexOutOfBoundsException
Method setGroup

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

setGroup

public void setGroup(Group[] groupArray)
Method setGroup

Parameters:
groupArray -

setGroup

public void setGroup(java.util.ArrayList groupCollection)
Method setGroup Sets the value of 'group' by copying the given ArrayList.

Parameters:
groupCollection - the Vector to copy.

setGroupCollection

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

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