public class CatSections extends Object implements Serializable
Constructor and Description |
---|
CatSections() |
Modifier and Type | Method and Description |
---|---|
void |
addSection(int index,
Section vSection) |
void |
addSection(Section vSection) |
Enumeration<Section> |
enumerateSection()
Method enumerateSection.
|
Section[] |
getSection()
Method getSection.Returns the contents of the collection in
an Array.
|
Section |
getSection(int index)
Method getSection.
|
List<Section> |
getSectionCollection()
Method getSectionCollection.Returns a reference to
'_sectionList'.
|
int |
getSectionCount()
Method getSectionCount.
|
boolean |
isValid()
Method isValid.
|
Iterator<Section> |
iterateSection()
Method iterateSection.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllSection() |
boolean |
removeSection(Section vSection)
Method removeSection.
|
Section |
removeSectionAt(int index)
Method removeSectionAt.
|
void |
setSection(int index,
Section vSection) |
void |
setSection(List<Section> vSectionList)
Sets the value of '_sectionList' by copying the given
Vector.
|
void |
setSection(Section[] vSectionArray) |
void |
setSectionCollection(List<Section> sectionList)
Deprecated.
|
static CatSections |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addSection(Section vSection) throws IndexOutOfBoundsException
vSection
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSection(int index, Section vSection) throws IndexOutOfBoundsException
index
- vSection
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Section> enumerateSection()
public Section getSection(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Section[] getSection()
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<Section> getSectionCollection()
public int getSectionCount()
public boolean isValid()
public Iterator<Section> iterateSection()
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 removeAllSection()
public boolean removeSection(Section vSection)
vSection
- public Section removeSectionAt(int index)
index
- public void setSection(int index, Section vSection) throws IndexOutOfBoundsException
index
- vSection
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSection(Section[] vSectionArray)
vSectionArray
- public void setSection(List<Section> vSectionList)
vSectionList
- the Vector to copy.public void setSectionCollection(List<Section> sectionList)
sectionList
- the Vector to set.public static CatSections 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 © 2017. All rights reserved.