Package org.opencms.loader
Class CmsDefaultFileNameGenerator.CmsNumberFactory
java.lang.Object
org.opencms.loader.CmsDefaultFileNameGenerator.CmsNumberFactory
- All Implemented Interfaces:
org.apache.commons.collections.Factory
- Enclosing class:
- CmsDefaultFileNameGenerator
public class CmsDefaultFileNameGenerator.CmsNumberFactory
extends Object
implements org.apache.commons.collections.Factory
Factory to use for resolving the %(number) macro.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
The actual number.protected PrintfFormat
Format for file create parameter. -
Constructor Summary
-
Method Summary
-
Field Details
-
m_number
The actual number. -
m_numberFormat
Format for file create parameter.
-
-
Constructor Details
-
CmsNumberFactory
Create a new number factory.- Parameters:
digits
- the number of digits to use
-
-
Method Details
-
create
Create the number based on the number of digits set.- Specified by:
create
in interfaceorg.apache.commons.collections.Factory
- See Also:
-
Factory.create()
-
setNumber
Sets the number to create to the given value.- Parameters:
number
- the number to set
-