com.flexive.shared.content
Class FxContentContainer

java.lang.Object
  extended by com.flexive.shared.content.FxContentContainer
All Implemented Interfaces:
java.io.Serializable

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

FxContentContainer is a container for every existing version of a FxContent. It is similar to FxCachedContentContainer which is used internally and which only contains previsously requested versions.

Version:
$Rev: 462 $
Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
FxCachedContentContainer, Serialized Form

Constructor Summary
FxContentContainer(FxContentVersionInfo versionInfo, java.util.List<FxContent> content)
          Ctor
 
Method Summary
 FxContent getVersion(int version)
          Get a requested version of the content
 FxContentVersionInfo getVersionInfo()
          Get version specific information
 java.util.Iterator<FxContent> getVersions()
          Get an Iterator for all versions (in order)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FxContentContainer

public FxContentContainer(FxContentVersionInfo versionInfo,
                          java.util.List<FxContent> content)
Ctor

Parameters:
versionInfo - version info
content - list of contents, ordered by version
Method Detail

getVersionInfo

public FxContentVersionInfo getVersionInfo()
Get version specific information

Returns:
version specific information

getVersions

public java.util.Iterator<FxContent> getVersions()
Get an Iterator for all versions (in order)

Returns:
iterator for all versions (in order)

getVersion

public FxContent getVersion(int version)
                     throws FxNotFoundException
Get a requested version of the content

Parameters:
version - requested version
Returns:
FxContent
Throws:
FxNotFoundException - if the version does not exist