public class Summary extends Object implements Serializable
Constructor and Description |
---|
Summary() |
Modifier and Type | Method and Description |
---|---|
void |
addResource(int index,
Resource vResource) |
void |
addResource(Resource vResource) |
Enumeration<Resource> |
enumerateResource()
Method enumerateResource.
|
Resource[] |
getResource()
Method getResource.Returns the contents of the collection in
an Array.
|
Resource |
getResource(int index)
Method getResource.
|
List<Resource> |
getResourceCollection()
Method getResourceCollection.Returns a reference to
'_resourceList'.
|
int |
getResourceCount()
Method getResourceCount.
|
boolean |
isValid()
Method isValid.
|
Iterator<Resource> |
iterateResource()
Method iterateResource.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllResource() |
boolean |
removeResource(Resource vResource)
Method removeResource.
|
Resource |
removeResourceAt(int index)
Method removeResourceAt.
|
void |
setResource(int index,
Resource vResource) |
void |
setResource(List<Resource> vResourceList)
Sets the value of '_resourceList' by copying the given
Vector.
|
void |
setResource(Resource[] vResourceArray) |
void |
setResourceCollection(List<Resource> resourceList)
Deprecated.
|
static Summary |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addResource(Resource vResource) throws IndexOutOfBoundsException
vResource
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addResource(int index, Resource vResource) throws IndexOutOfBoundsException
index
- vResource
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Resource> enumerateResource()
public Resource getResource(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Resource[] getResource()
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<Resource> getResourceCollection()
public int getResourceCount()
public boolean isValid()
public Iterator<Resource> iterateResource()
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 removeAllResource()
public boolean removeResource(Resource vResource)
vResource
- public Resource removeResourceAt(int index)
index
- public void setResource(int index, Resource vResource) throws IndexOutOfBoundsException
index
- vResource
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setResource(Resource[] vResourceArray)
vResourceArray
- public void setResource(List<Resource> vResourceList)
vResourceList
- the Vector to copy.public void setResourceCollection(List<Resource> resourceList)
resourceList
- the Vector to set.public static Summary 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.