org.opennms.report.availability
Class Category

java.lang.Object
  extended by org.opennms.report.availability.Category
All Implemented Interfaces:
java.io.Serializable

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

Class Category.

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

Constructor Summary
Category()
           
 
Method Summary
 void addCatSections(CatSections vCatSections)
          Method addCatSections
 void addCatSections(int index, CatSections vCatSections)
          Method addCatSections
 void clearCatSections()
          Method clearCatSections
 void deleteCatIndex()
          Method deleteCatIndex
 void deleteIpaddrCount()
          Method deleteIpaddrCount
 void deleteNodeCount()
          Method deleteNodeCount
 void deleteNormal()
          Method deleteNormal
 void deleteServiceCount()
          Method deleteServiceCount
 void deleteWarning()
          Method deleteWarning
 java.util.Enumeration enumerateCatSections()
          Method enumerateCatSections
 java.lang.String getCatComments()
          Returns the value of field 'catComments'.
 int getCatIndex()
          Returns the value of field 'catIndex'.
 java.lang.String getCatName()
          Returns the value of field 'catName'.
 CatSections[] getCatSections()
          Method getCatSections
 CatSections getCatSections(int index)
          Method getCatSections
 java.util.ArrayList getCatSectionsCollection()
          Method getCatSectionsCollection Returns a reference to 'catSections'.
 int getCatSectionsCount()
          Method getCatSectionsCount
 int getIpaddrCount()
          Returns the value of field 'ipaddrCount'.
 int getNodeCount()
          Returns the value of field 'nodeCount'.
 double getNormal()
          Returns the value of field 'normal'.
 int getServiceCount()
          Returns the value of field 'serviceCount'.
 double getWarning()
          Returns the value of field 'warning'.
 boolean hasCatIndex()
          Method hasCatIndex
 boolean hasIpaddrCount()
          Method hasIpaddrCount
 boolean hasNodeCount()
          Method hasNodeCount
 boolean hasNormal()
          Method hasNormal
 boolean hasServiceCount()
          Method hasServiceCount
 boolean hasWarning()
          Method hasWarning
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeCatSections(CatSections vCatSections)
          Method removeCatSections
 void setCatComments(java.lang.String catComments)
          Sets the value of field 'catComments'.
 void setCatIndex(int catIndex)
          Sets the value of field 'catIndex'.
 void setCatName(java.lang.String catName)
          Sets the value of field 'catName'.
 void setCatSections(java.util.ArrayList catSectionsCollection)
          Method setCatSections Sets the value of 'catSections' by copying the given ArrayList.
 void setCatSections(CatSections[] catSectionsArray)
          Method setCatSections
 void setCatSections(int index, CatSections vCatSections)
          Method setCatSections
 void setCatSectionsCollection(java.util.ArrayList catSectionsCollection)
          Method setCatSectionsCollection Sets the value of 'catSections' by setting it to the given ArrayList.
 void setIpaddrCount(int ipaddrCount)
          Sets the value of field 'ipaddrCount'.
 void setNodeCount(int nodeCount)
          Sets the value of field 'nodeCount'.
 void setNormal(double normal)
          Sets the value of field 'normal'.
 void setServiceCount(int serviceCount)
          Sets the value of field 'serviceCount'.
 void setWarning(double warning)
          Sets the value of field 'warning'.
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

Category

public Category()
Method Detail

addCatSections

public void addCatSections(CatSections vCatSections)
                    throws java.lang.IndexOutOfBoundsException
Method addCatSections

Parameters:
vCatSections -
Throws:
java.lang.IndexOutOfBoundsException

addCatSections

public void addCatSections(int index,
                           CatSections vCatSections)
                    throws java.lang.IndexOutOfBoundsException
Method addCatSections

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

clearCatSections

public void clearCatSections()
Method clearCatSections


deleteCatIndex

public void deleteCatIndex()
Method deleteCatIndex


deleteIpaddrCount

public void deleteIpaddrCount()
Method deleteIpaddrCount


deleteNodeCount

public void deleteNodeCount()
Method deleteNodeCount


deleteNormal

public void deleteNormal()
Method deleteNormal


deleteServiceCount

public void deleteServiceCount()
Method deleteServiceCount


deleteWarning

public void deleteWarning()
Method deleteWarning


enumerateCatSections

public java.util.Enumeration enumerateCatSections()
Method enumerateCatSections

Returns:
Enumeration

getCatComments

public java.lang.String getCatComments()
Returns the value of field 'catComments'.

Returns:
String

getCatIndex

public int getCatIndex()
Returns the value of field 'catIndex'.

Returns:
int

getCatName

public java.lang.String getCatName()
Returns the value of field 'catName'.

Returns:
String

getCatSections

public CatSections getCatSections(int index)
                           throws java.lang.IndexOutOfBoundsException
Method getCatSections

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

getCatSections

public CatSections[] getCatSections()
Method getCatSections

Returns:
CatSections

getCatSectionsCollection

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

Returns:
ArrayList

getCatSectionsCount

public int getCatSectionsCount()
Method getCatSectionsCount

Returns:
int

getIpaddrCount

public int getIpaddrCount()
Returns the value of field 'ipaddrCount'.

Returns:
int

getNodeCount

public int getNodeCount()
Returns the value of field 'nodeCount'.

Returns:
int

getNormal

public double getNormal()
Returns the value of field 'normal'.

Returns:
double

getServiceCount

public int getServiceCount()
Returns the value of field 'serviceCount'.

Returns:
int

getWarning

public double getWarning()
Returns the value of field 'warning'.

Returns:
double

hasCatIndex

public boolean hasCatIndex()
Method hasCatIndex

Returns:
boolean

hasIpaddrCount

public boolean hasIpaddrCount()
Method hasIpaddrCount

Returns:
boolean

hasNodeCount

public boolean hasNodeCount()
Method hasNodeCount

Returns:
boolean

hasNormal

public boolean hasNormal()
Method hasNormal

Returns:
boolean

hasServiceCount

public boolean hasServiceCount()
Method hasServiceCount

Returns:
boolean

hasWarning

public boolean hasWarning()
Method hasWarning

Returns:
boolean

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

removeCatSections

public boolean removeCatSections(CatSections vCatSections)
Method removeCatSections

Parameters:
vCatSections -
Returns:
boolean

setCatComments

public void setCatComments(java.lang.String catComments)
Sets the value of field 'catComments'.

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

setCatIndex

public void setCatIndex(int catIndex)
Sets the value of field 'catIndex'.

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

setCatName

public void setCatName(java.lang.String catName)
Sets the value of field 'catName'.

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

setCatSections

public void setCatSections(int index,
                           CatSections vCatSections)
                    throws java.lang.IndexOutOfBoundsException
Method setCatSections

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

setCatSections

public void setCatSections(CatSections[] catSectionsArray)
Method setCatSections

Parameters:
catSectionsArray -

setCatSections

public void setCatSections(java.util.ArrayList catSectionsCollection)
Method setCatSections Sets the value of 'catSections' by copying the given ArrayList.

Parameters:
catSectionsCollection - the Vector to copy.

setCatSectionsCollection

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

Parameters:
catSectionsCollection - the ArrayList to copy.

setIpaddrCount

public void setIpaddrCount(int ipaddrCount)
Sets the value of field 'ipaddrCount'.

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

setNodeCount

public void setNodeCount(int nodeCount)
Sets the value of field 'nodeCount'.

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

setNormal

public void setNormal(double normal)
Sets the value of field 'normal'.

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

setServiceCount

public void setServiceCount(int serviceCount)
Sets the value of field 'serviceCount'.

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

setWarning

public void setWarning(double warning)
Sets the value of field 'warning'.

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

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.