picsou.data
Class AssetPool

java.lang.Object
  extended by picsou.data.AssetPool
All Implemented Interfaces:
java.io.Serializable

public class AssetPool
extends java.lang.Object
implements java.io.Serializable

Class AssetPool.

See Also:
Serialized Form

Constructor Summary
AssetPool()
           
 
Method Summary
 void addAsset(Asset vAsset)
           
 void addAsset(int index, Asset vAsset)
           
 java.util.Enumeration<Asset> enumerateAsset()
          Method enumerateAsset.
 Asset[] getAsset()
          Method getAsset.Returns the contents of the collection in an Array.
 Asset getAsset(int index)
          Method getAsset.
 int getAssetCount()
          Method getAssetCount.
 Performance getPerformance()
          Returns the value of field 'performance'.
 boolean isValid()
          Method isValid.
 java.util.Iterator<Asset> iterateAsset()
          Method iterateAsset.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllAsset()
           
 boolean removeAsset(Asset vAsset)
          Method removeAsset.
 Asset removeAssetAt(int index)
          Method removeAssetAt.
 void setAsset(Asset[] vAssetArray)
           
 void setAsset(int index, Asset vAsset)
           
 void setPerformance(Performance performance)
          Sets the value of field 'performance'.
static AssetPool unmarshal(java.io.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

AssetPool

public AssetPool()
Method Detail

addAsset

public void addAsset(Asset vAsset)
              throws java.lang.IndexOutOfBoundsException
Parameters:
vAsset -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addAsset

public void addAsset(int index,
                     Asset vAsset)
              throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAsset -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

enumerateAsset

public java.util.Enumeration<Asset> enumerateAsset()
Method enumerateAsset.

Returns:
an Enumeration over all possible elements of this collection

getAsset

public Asset getAsset(int index)
               throws java.lang.IndexOutOfBoundsException
Method getAsset.

Parameters:
index -
Returns:
the value of the picsou.data.Asset at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getAsset

public Asset[] getAsset()
Method getAsset.Returns the contents of the collection in an Array.

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.

Returns:
this collection as an Array

getAssetCount

public int getAssetCount()
Method getAssetCount.

Returns:
the size of this collection

getPerformance

public Performance getPerformance()
Returns the value of field 'performance'.

Returns:
the value of field 'Performance'.

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

iterateAsset

public java.util.Iterator<Asset> iterateAsset()
Method iterateAsset.

Returns:
an Iterator over all possible elements in this collection

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
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

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
java.io.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 marshaling

removeAllAsset

public void removeAllAsset()

removeAsset

public boolean removeAsset(Asset vAsset)
Method removeAsset.

Parameters:
vAsset -
Returns:
true if the object was removed from the collection.

removeAssetAt

public Asset removeAssetAt(int index)
Method removeAssetAt.

Parameters:
index -
Returns:
the element removed from the collection

setAsset

public void setAsset(int index,
                     Asset vAsset)
              throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAsset -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setAsset

public void setAsset(Asset[] vAssetArray)
Parameters:
vAssetArray -

setPerformance

public void setPerformance(Performance performance)
Sets the value of field 'performance'.

Parameters:
performance - the value of field 'performance'.

unmarshal

public static AssetPool unmarshal(java.io.Reader reader)
                           throws org.exolab.castor.xml.MarshalException,
                                  org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled picsou.data.AssetPool
Throws:
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

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema