org.opennms.netmgt.config.statsd
Class Package

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

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

Package encapsulating nodes eligible to have this report run on them.

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

Constructor Summary
Package()
           
 
Method Summary
 void addPackageReport(int index, PackageReport vPackageReport)
          Method addPackageReport
 void addPackageReport(PackageReport vPackageReport)
          Method addPackageReport
 void clearPackageReport()
          Method clearPackageReport
 java.util.Enumeration enumeratePackageReport()
          Method enumeratePackageReport
 Filter getFilter()
          Returns the value of field 'filter'.
 java.lang.String getName()
          Returns the value of field 'name'.
 PackageReport[] getPackageReport()
          Method getPackageReport
 PackageReport getPackageReport(int index)
          Method getPackageReport
 java.util.ArrayList getPackageReportCollection()
          Method getPackageReportCollection Returns a reference to 'packageReport'.
 int getPackageReportCount()
          Method getPackageReportCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removePackageReport(PackageReport vPackageReport)
          Method removePackageReport
 void setFilter(Filter filter)
          Sets the value of field 'filter'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setPackageReport(java.util.ArrayList packageReportCollection)
          Method setPackageReport Sets the value of 'packageReport' by copying the given ArrayList.
 void setPackageReport(int index, PackageReport vPackageReport)
          Method setPackageReport
 void setPackageReport(PackageReport[] packageReportArray)
          Method setPackageReport
 void setPackageReportCollection(java.util.ArrayList packageReportCollection)
          Method setPackageReportCollection Sets the value of 'packageReport' 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

Package

public Package()
Method Detail

addPackageReport

public void addPackageReport(PackageReport vPackageReport)
                      throws java.lang.IndexOutOfBoundsException
Method addPackageReport

Parameters:
vPackageReport -
Throws:
java.lang.IndexOutOfBoundsException

addPackageReport

public void addPackageReport(int index,
                             PackageReport vPackageReport)
                      throws java.lang.IndexOutOfBoundsException
Method addPackageReport

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

clearPackageReport

public void clearPackageReport()
Method clearPackageReport


enumeratePackageReport

public java.util.Enumeration enumeratePackageReport()
Method enumeratePackageReport

Returns:
Enumeration

getFilter

public Filter getFilter()
Returns the value of field 'filter'. The field 'filter' has the following description: A rule which adresses belonging to this package must pass. This package is applied only to addresses that pass this filter.

Returns:
Filter

getName

public java.lang.String getName()
Returns the value of field 'name'. The field 'name' has the following description: The name or identifier for this package

Returns:
String

getPackageReport

public PackageReport getPackageReport(int index)
                               throws java.lang.IndexOutOfBoundsException
Method getPackageReport

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

getPackageReport

public PackageReport[] getPackageReport()
Method getPackageReport

Returns:
PackageReport

getPackageReportCollection

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

Returns:
ArrayList

getPackageReportCount

public int getPackageReportCount()
Method getPackageReportCount

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

removePackageReport

public boolean removePackageReport(PackageReport vPackageReport)
Method removePackageReport

Parameters:
vPackageReport -
Returns:
boolean

setFilter

public void setFilter(Filter filter)
Sets the value of field 'filter'. The field 'filter' has the following description: A rule which adresses belonging to this package must pass. This package is applied only to addresses that pass this filter.

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

setName

public void setName(java.lang.String name)
Sets the value of field 'name'. The field 'name' has the following description: The name or identifier for this package

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

setPackageReport

public void setPackageReport(int index,
                             PackageReport vPackageReport)
                      throws java.lang.IndexOutOfBoundsException
Method setPackageReport

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

setPackageReport

public void setPackageReport(PackageReport[] packageReportArray)
Method setPackageReport

Parameters:
packageReportArray -

setPackageReport

public void setPackageReport(java.util.ArrayList packageReportCollection)
Method setPackageReport Sets the value of 'packageReport' by copying the given ArrayList.

Parameters:
packageReportCollection - the Vector to copy.

setPackageReportCollection

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

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