public class Readers extends Object implements Serializable
Constructor and Description |
---|
Readers() |
Modifier and Type | Method and Description |
---|---|
void |
addReader(int index,
Reader vReader) |
void |
addReader(Reader vReader) |
Enumeration<Reader> |
enumerateReader()
Method enumerateReader.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Reader[] |
getReader()
Method getReader.Returns the contents of the collection in
an Array.
|
Reader |
getReader(int index)
Method getReader.
|
List<Reader> |
getReaderCollection()
Method getReaderCollection.Returns a reference to
'_readerList'.
|
int |
getReaderCount()
Method getReaderCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Reader> |
iterateReader()
Method iterateReader.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllReader() |
boolean |
removeReader(Reader vReader)
Method removeReader.
|
Reader |
removeReaderAt(int index)
Method removeReaderAt.
|
void |
setReader(int index,
Reader vReader) |
void |
setReader(List<Reader> vReaderList)
Sets the value of '_readerList' by copying the given Vector.
|
void |
setReader(Reader[] vReaderArray) |
void |
setReaderCollection(List<Reader> readerList)
Deprecated.
|
static Readers |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addReader(Reader vReader) throws IndexOutOfBoundsException
vReader
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addReader(int index, Reader vReader) throws IndexOutOfBoundsException
index
- vReader
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Reader> enumerateReader()
public boolean equals(Object obj)
public Reader getReader(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Reader[] getReader()
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<Reader> getReaderCollection()
public int getReaderCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Reader> iterateReader()
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 removeAllReader()
public boolean removeReader(Reader vReader)
vReader
- public Reader removeReaderAt(int index)
index
- public void setReader(int index, Reader vReader) throws IndexOutOfBoundsException
index
- vReader
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setReader(Reader[] vReaderArray)
vReaderArray
- public void setReader(List<Reader> vReaderList)
vReaderList
- the Vector to copy.public void setReaderCollection(List<Reader> readerList)
readerList
- the Vector to set.public static Readers 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.