|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.pagesequence.PageSequence
public class PageSequence
Use this container to list the page in the order they are to be accessed for monitoring or (soon) datacollection.
| Constructor Summary | |
|---|---|
PageSequence()
|
|
| Method Summary | |
|---|---|
void |
addPage(int index,
Page vPage)
|
void |
addPage(Page vPage)
|
Enumeration<Page> |
enumeratePage()
Method enumeratePage. |
Page[] |
getPage()
Method getPage.Returns the contents of the collection in an Array. |
Page |
getPage(int index)
Method getPage. |
List<Page> |
getPageCollection()
Method getPageCollection.Returns a reference to '_pageList'. |
int |
getPageCount()
Method getPageCount. |
boolean |
isValid()
Method isValid. |
Iterator<Page> |
iteratePage()
Method iteratePage. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllPage()
|
boolean |
removePage(Page vPage)
Method removePage. |
Page |
removePageAt(int index)
Method removePageAt. |
void |
setPage(int index,
Page vPage)
|
void |
setPage(List<Page> vPageList)
Sets the value of '_pageList' by copying the given Vector. |
void |
setPage(Page[] vPageArray)
|
void |
setPageCollection(List<Page> pageList)
Deprecated. |
static PageSequence |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageSequence()
| Method Detail |
|---|
public void addPage(Page vPage)
throws IndexOutOfBoundsException
vPage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addPage(int index,
Page vPage)
throws IndexOutOfBoundsException
index - vPage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Page> enumeratePage()
public Page getPage(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Page[] getPage()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Page> getPageCollection()
public int getPageCount()
public boolean isValid()
public Iterator<Page> iteratePage()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllPage()
public boolean removePage(Page vPage)
vPage -
public Page removePageAt(int index)
index -
public void setPage(int index,
Page vPage)
throws IndexOutOfBoundsException
index - vPage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setPage(Page[] vPageArray)
vPageArray - public void setPage(List<Page> vPageList)
vPageList - the Vector to copy.public void setPageCollection(List<Page> pageList)
pageList - the Vector to set.
public static PageSequence unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||