org.opennms.netmgt.config.categories
Class Catinfo

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

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

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

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

Constructor Summary
Catinfo()
           
 
Method Summary
 void addCategorygroup(Categorygroup vCategorygroup)
          Method addCategorygroup
 void addCategorygroup(int index, Categorygroup vCategorygroup)
          Method addCategorygroup
 void clearCategorygroup()
          Method clearCategorygroup
 java.util.Enumeration enumerateCategorygroup()
          Method enumerateCategorygroup
 Categorygroup[] getCategorygroup()
          Method getCategorygroup
 Categorygroup getCategorygroup(int index)
          Method getCategorygroup
 java.util.ArrayList getCategorygroupCollection()
          Method getCategorygroupCollection Returns a reference to 'categorygroup'.
 int getCategorygroupCount()
          Method getCategorygroupCount
 Header getHeader()
          Returns the value of field 'header'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeCategorygroup(Categorygroup vCategorygroup)
          Method removeCategorygroup
 void setCategorygroup(java.util.ArrayList categorygroupCollection)
          Method setCategorygroup Sets the value of 'categorygroup' by copying the given ArrayList.
 void setCategorygroup(Categorygroup[] categorygroupArray)
          Method setCategorygroup
 void setCategorygroup(int index, Categorygroup vCategorygroup)
          Method setCategorygroup
 void setCategorygroupCollection(java.util.ArrayList categorygroupCollection)
          Method setCategorygroupCollection Sets the value of 'categorygroup' by setting it to the given ArrayList.
 void setHeader(Header header)
          Sets the value of field 'header'.
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

Catinfo

public Catinfo()
Method Detail

addCategorygroup

public void addCategorygroup(Categorygroup vCategorygroup)
                      throws java.lang.IndexOutOfBoundsException
Method addCategorygroup

Parameters:
vCategorygroup -
Throws:
java.lang.IndexOutOfBoundsException

addCategorygroup

public void addCategorygroup(int index,
                             Categorygroup vCategorygroup)
                      throws java.lang.IndexOutOfBoundsException
Method addCategorygroup

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

clearCategorygroup

public void clearCategorygroup()
Method clearCategorygroup


enumerateCategorygroup

public java.util.Enumeration enumerateCategorygroup()
Method enumerateCategorygroup

Returns:
Enumeration

getCategorygroup

public Categorygroup getCategorygroup(int index)
                               throws java.lang.IndexOutOfBoundsException
Method getCategorygroup

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

getCategorygroup

public Categorygroup[] getCategorygroup()
Method getCategorygroup

Returns:
Categorygroup

getCategorygroupCollection

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

Returns:
ArrayList

getCategorygroupCount

public int getCategorygroupCount()
Method getCategorygroupCount

Returns:
int

getHeader

public Header getHeader()
Returns the value of field 'header'. The field 'header' has the following description: Header for this file.

Returns:
Header

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

removeCategorygroup

public boolean removeCategorygroup(Categorygroup vCategorygroup)
Method removeCategorygroup

Parameters:
vCategorygroup -
Returns:
boolean

setCategorygroup

public void setCategorygroup(int index,
                             Categorygroup vCategorygroup)
                      throws java.lang.IndexOutOfBoundsException
Method setCategorygroup

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

setCategorygroup

public void setCategorygroup(Categorygroup[] categorygroupArray)
Method setCategorygroup

Parameters:
categorygroupArray -

setCategorygroup

public void setCategorygroup(java.util.ArrayList categorygroupCollection)
Method setCategorygroup Sets the value of 'categorygroup' by copying the given ArrayList.

Parameters:
categorygroupCollection - the Vector to copy.

setCategorygroupCollection

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

Parameters:
categorygroupCollection - the ArrayList to copy.

setHeader

public void setHeader(Header header)
Sets the value of field 'header'. The field 'header' has the following description: Header for this file.

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

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.