org.opennms.report.availability
Class CatSections

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

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

Class CatSections.

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

Constructor Summary
CatSections()
           
 
Method Summary
 void addSection(int index, Section vSection)
          Method addSection
 void addSection(Section vSection)
          Method addSection
 void clearSection()
          Method clearSection
 java.util.Enumeration enumerateSection()
          Method enumerateSection
 Section[] getSection()
          Method getSection
 Section getSection(int index)
          Method getSection
 java.util.ArrayList getSectionCollection()
          Method getSectionCollection Returns a reference to 'section'.
 int getSectionCount()
          Method getSectionCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeSection(Section vSection)
          Method removeSection
 void setSection(java.util.ArrayList sectionCollection)
          Method setSection Sets the value of 'section' by copying the given ArrayList.
 void setSection(int index, Section vSection)
          Method setSection
 void setSection(Section[] sectionArray)
          Method setSection
 void setSectionCollection(java.util.ArrayList sectionCollection)
          Method setSectionCollection Sets the value of 'section' 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

CatSections

public CatSections()
Method Detail

addSection

public void addSection(Section vSection)
                throws java.lang.IndexOutOfBoundsException
Method addSection

Parameters:
vSection -
Throws:
java.lang.IndexOutOfBoundsException

addSection

public void addSection(int index,
                       Section vSection)
                throws java.lang.IndexOutOfBoundsException
Method addSection

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

clearSection

public void clearSection()
Method clearSection


enumerateSection

public java.util.Enumeration enumerateSection()
Method enumerateSection

Returns:
Enumeration

getSection

public Section getSection(int index)
                   throws java.lang.IndexOutOfBoundsException
Method getSection

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

getSection

public Section[] getSection()
Method getSection

Returns:
Section

getSectionCollection

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

Returns:
ArrayList

getSectionCount

public int getSectionCount()
Method getSectionCount

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

removeSection

public boolean removeSection(Section vSection)
Method removeSection

Parameters:
vSection -
Returns:
boolean

setSection

public void setSection(int index,
                       Section vSection)
                throws java.lang.IndexOutOfBoundsException
Method setSection

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

setSection

public void setSection(Section[] sectionArray)
Method setSection

Parameters:
sectionArray -

setSection

public void setSection(java.util.ArrayList sectionCollection)
Method setSection Sets the value of 'section' by copying the given ArrayList.

Parameters:
sectionCollection - the Vector to copy.

setSectionCollection

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

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