org.opennms.report.availability
Class Categories

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

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

Class Categories.

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

Constructor Summary
Categories()
           
 
Method Summary
 void addCategory(Category vCategory)
          Method addCategory
 void addCategory(int index, Category vCategory)
          Method addCategory
 void clearCategory()
          Method clearCategory
 java.util.Enumeration enumerateCategory()
          Method enumerateCategory
 Category[] getCategory()
          Method getCategory
 Category getCategory(int index)
          Method getCategory
 java.util.ArrayList getCategoryCollection()
          Method getCategoryCollection Returns a reference to 'category'.
 int getCategoryCount()
          Method getCategoryCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeCategory(Category vCategory)
          Method removeCategory
 void setCategory(java.util.ArrayList categoryCollection)
          Method setCategory Sets the value of 'category' by copying the given ArrayList.
 void setCategory(Category[] categoryArray)
          Method setCategory
 void setCategory(int index, Category vCategory)
          Method setCategory
 void setCategoryCollection(java.util.ArrayList categoryCollection)
          Method setCategoryCollection Sets the value of 'category' 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

Categories

public Categories()
Method Detail

addCategory

public void addCategory(Category vCategory)
                 throws java.lang.IndexOutOfBoundsException
Method addCategory

Parameters:
vCategory -
Throws:
java.lang.IndexOutOfBoundsException

addCategory

public void addCategory(int index,
                        Category vCategory)
                 throws java.lang.IndexOutOfBoundsException
Method addCategory

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

clearCategory

public void clearCategory()
Method clearCategory


enumerateCategory

public java.util.Enumeration enumerateCategory()
Method enumerateCategory

Returns:
Enumeration

getCategory

public Category getCategory(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getCategory

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

getCategory

public Category[] getCategory()
Method getCategory

Returns:
Category

getCategoryCollection

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

Returns:
ArrayList

getCategoryCount

public int getCategoryCount()
Method getCategoryCount

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

removeCategory

public boolean removeCategory(Category vCategory)
Method removeCategory

Parameters:
vCategory -
Returns:
boolean

setCategory

public void setCategory(int index,
                        Category vCategory)
                 throws java.lang.IndexOutOfBoundsException
Method setCategory

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

setCategory

public void setCategory(Category[] categoryArray)
Method setCategory

Parameters:
categoryArray -

setCategory

public void setCategory(java.util.ArrayList categoryCollection)
Method setCategory Sets the value of 'category' by copying the given ArrayList.

Parameters:
categoryCollection - the Vector to copy.

setCategoryCollection

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

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