com.amazonaws.a2s.model
Class Collection

java.lang.Object
  extended by com.amazonaws.a2s.model.Collection

public class Collection
extends java.lang.Object

Java class for Collection complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Collection">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="CollectionSummary" type="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}CollectionSummary" minOccurs="0"/>
         <element name="CollectionParent" type="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}CollectionParent" minOccurs="0"/>
         <element name="CollectionItem" type="{http://webservices.amazon.com/AWSECommerceService/2007-10-29}CollectionItem" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
Generated by AWS Code Generator

Thu Jan 10 05:27:59 PST 2008


Field Summary
protected  java.util.List<CollectionItem> collectionItem
           
protected  CollectionParent collectionParent
           
protected  CollectionSummary collectionSummary
           
 
Constructor Summary
Collection()
           
 
Method Summary
 java.util.List<CollectionItem> getCollectionItem()
          Gets the value of the collectionItem property.
 CollectionParent getCollectionParent()
          Gets the value of the collectionParent property.
 CollectionSummary getCollectionSummary()
          Gets the value of the collectionSummary property.
 boolean isSetCollectionItem()
           
 boolean isSetCollectionParent()
           
 boolean isSetCollectionSummary()
           
 void setCollectionItem(java.util.List<CollectionItem> collectionItem)
          Sets the value of the collectionItem property.
 void setCollectionParent(CollectionParent value)
          Sets the value of the collectionParent property.
 void setCollectionSummary(CollectionSummary value)
          Sets the value of the collectionSummary property.
protected  java.lang.String toXMLFragment()
          XML fragment representation of this object
 void unsetCollectionItem()
           
 Collection withCollectionItem(CollectionItem... values)
          Sets the value of the CollectionItem property.
 Collection withCollectionParent(CollectionParent value)
          Sets the value of the CollectionParent property.
 Collection withCollectionSummary(CollectionSummary value)
          Sets the value of the CollectionSummary property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collectionSummary

protected CollectionSummary collectionSummary

collectionParent

protected CollectionParent collectionParent

collectionItem

protected java.util.List<CollectionItem> collectionItem
Constructor Detail

Collection

public Collection()
Method Detail

getCollectionSummary

public CollectionSummary getCollectionSummary()
Gets the value of the collectionSummary property.

Returns:
possible object is CollectionSummary

setCollectionSummary

public void setCollectionSummary(CollectionSummary value)
Sets the value of the collectionSummary property.

Parameters:
value - allowed object is CollectionSummary

isSetCollectionSummary

public boolean isSetCollectionSummary()

getCollectionParent

public CollectionParent getCollectionParent()
Gets the value of the collectionParent property.

Returns:
possible object is CollectionParent

setCollectionParent

public void setCollectionParent(CollectionParent value)
Sets the value of the collectionParent property.

Parameters:
value - allowed object is CollectionParent

isSetCollectionParent

public boolean isSetCollectionParent()

getCollectionItem

public java.util.List<CollectionItem> getCollectionItem()
Gets the value of the collectionItem property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the collectionItem property.

For example, to add a new item, do as follows:

    getCollectionItem().add(newItem);
 

Objects of the following type(s) are allowed in the list CollectionItem


isSetCollectionItem

public boolean isSetCollectionItem()

unsetCollectionItem

public void unsetCollectionItem()

withCollectionSummary

public Collection withCollectionSummary(CollectionSummary value)
Sets the value of the CollectionSummary property.

Parameters:
value -
Returns:
this instance

withCollectionParent

public Collection withCollectionParent(CollectionParent value)
Sets the value of the CollectionParent property.

Parameters:
value -
Returns:
this instance

withCollectionItem

public Collection withCollectionItem(CollectionItem... values)
Sets the value of the CollectionItem property.

Parameters:
values -
Returns:
this instance

setCollectionItem

public void setCollectionItem(java.util.List<CollectionItem> collectionItem)
Sets the value of the collectionItem property.

Parameters:
collectionItem - allowed object is CollectionItem

toXMLFragment

protected java.lang.String toXMLFragment()
XML fragment representation of this object

Returns:
XML fragment for this object. Name for outer tag expected to be set by calling method. This fragment returns inner properties representation only