org.opennms.netmgt.config.pagesequence
Class PageSequence

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

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

Use this container to list the page in the order they are to be accessed for monitoring or (soon) datacollection.

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

Constructor Summary
PageSequence()
           
 
Method Summary
 void addPage(int index, Page vPage)
          Method addPage
 void addPage(Page vPage)
          Method addPage
 void clearPage()
          Method clearPage
 java.util.Enumeration enumeratePage()
          Method enumeratePage
 Page[] getPage()
          Method getPage
 Page getPage(int index)
          Method getPage
 java.util.ArrayList getPageCollection()
          Method getPageCollection Returns a reference to 'page'.
 int getPageCount()
          Method getPageCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removePage(Page vPage)
          Method removePage
 void setPage(java.util.ArrayList pageCollection)
          Method setPage Sets the value of 'page' by copying the given ArrayList.
 void setPage(int index, Page vPage)
          Method setPage
 void setPage(Page[] pageArray)
          Method setPage
 void setPageCollection(java.util.ArrayList pageCollection)
          Method setPageCollection Sets the value of 'page' 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

PageSequence

public PageSequence()
Method Detail

addPage

public void addPage(Page vPage)
             throws java.lang.IndexOutOfBoundsException
Method addPage

Parameters:
vPage -
Throws:
java.lang.IndexOutOfBoundsException

addPage

public void addPage(int index,
                    Page vPage)
             throws java.lang.IndexOutOfBoundsException
Method addPage

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

clearPage

public void clearPage()
Method clearPage


enumeratePage

public java.util.Enumeration enumeratePage()
Method enumeratePage

Returns:
Enumeration

getPage

public Page getPage(int index)
             throws java.lang.IndexOutOfBoundsException
Method getPage

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

getPage

public Page[] getPage()
Method getPage

Returns:
Page

getPageCollection

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

Returns:
ArrayList

getPageCount

public int getPageCount()
Method getPageCount

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

removePage

public boolean removePage(Page vPage)
Method removePage

Parameters:
vPage -
Returns:
boolean

setPage

public void setPage(int index,
                    Page vPage)
             throws java.lang.IndexOutOfBoundsException
Method setPage

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

setPage

public void setPage(Page[] pageArray)
Method setPage

Parameters:
pageArray -

setPage

public void setPage(java.util.ArrayList pageCollection)
Method setPage Sets the value of 'page' by copying the given ArrayList.

Parameters:
pageCollection - the Vector to copy.

setPageCollection

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

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