Class PageSequenceNameGenerator
- java.lang.Object
-
- org.pentaho.reporting.libraries.repository.PageSequenceNameGenerator
-
- All Implemented Interfaces:
NameGenerator
public class PageSequenceNameGenerator extends Object implements NameGenerator
-
-
Constructor Summary
Constructors Constructor Description PageSequenceNameGenerator(ContentLocation location)
PageSequenceNameGenerator(ContentLocation location, String defaultNameHint)
PageSequenceNameGenerator(ContentLocation location, String defaultNameHint, String defaultSuffix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateName(String nameHint, String mimeType)
Generates a new, unique name for storing resources in the output repository.
-
-
-
Constructor Detail
-
PageSequenceNameGenerator
public PageSequenceNameGenerator(ContentLocation location)
-
PageSequenceNameGenerator
public PageSequenceNameGenerator(ContentLocation location, String defaultNameHint)
-
PageSequenceNameGenerator
public PageSequenceNameGenerator(ContentLocation location, String defaultNameHint, String defaultSuffix)
-
-
Method Detail
-
generateName
public String generateName(String nameHint, String mimeType) throws ContentIOException
Generates a new, unique name for storing resources in the output repository. Assuming that proper synchronization has been applied, the generated name will be unique within that repository.- Specified by:
generateName
in interfaceNameGenerator
- Parameters:
nameHint
- a user defined name for that resource.mimeType
- the mime type of the resource to be stored in the repository.- Returns:
- the generated, fully qualified name.
- Throws:
ContentIOException
- if the name could not be generated for any reason.
-
-