com.google.appengine.api.conversion
Class Document

java.lang.Object
  extended by com.google.appengine.api.conversion.Document

public final class Document
extends java.lang.Object

A document is a collection of assets. A document must contain at least one asset, typically the document contents. Additional assets are those needed for the conversion, for example images in HTML.


Constructor Summary
Document(Asset firstAsset)
          Used to construct a document.
Document(java.util.List<Asset> assets)
          Used to construct a document.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.List<Asset> getAssets()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Document

public Document(Asset firstAsset)
Used to construct a document.

Parameters:
firstAsset - The first asset to add.

Document

public Document(java.util.List<Asset> assets)
Used to construct a document.

Parameters:
assets - A list of assets to add.
Throws:
java.lang.IllegalArgumentException - if the assets list is empty or if the size of all assets is over limit.
Method Detail

getAssets

public java.util.List<Asset> getAssets()
Returns:
All assets associated with the document.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object