public class PageSequence extends Object implements Serializable
Constructor and Description |
---|
PageSequence() |
Modifier and Type | Method and Description |
---|---|
void |
addPage(int index,
Page vPage) |
void |
addPage(Page vPage) |
Enumeration<Page> |
enumeratePage()
Method enumeratePage.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
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.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
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() |
public void addPage(Page vPage) throws IndexOutOfBoundsException
vPage
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic 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 boolean equals(Object obj)
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 int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.