maiolum
Interface EditionFactory

All Known Implementing Classes:
PXEditionFactory

public interface EditionFactory

Author:
Robert Novotny

Method Summary
 Edition[] getAvailableEditions()
          Provides list of available Editions.
 Edition getDefaultEdition()
           
 Edition[] getEditions(java.util.Locale locale)
          Returns all available Editions which have given Locale.
 Edition newEdition(java.lang.String id)
          Creates new Edition with given ID and other data retrieved from appropriate resource.
 

Method Detail

getAvailableEditions

public Edition[] getAvailableEditions()
Provides list of available Editions. This list of available editions is read from configuration file specified by setURI() method.

Returns:

newEdition

public Edition newEdition(java.lang.String id)
Creates new Edition with given ID and other data retrieved from appropriate resource.

Parameters:
id -
Returns:
null, if no edition with given ID exists.

getEditions

public Edition[] getEditions(java.util.Locale locale)
Returns all available Editions which have given Locale.

Parameters:
locale - specifies required Locale for editions
Returns:
all available Editions which have given Locale.

getDefaultEdition

public Edition getDefaultEdition()