public class CmsDefaultFileNameGenerator.CmsNumberFactory extends java.lang.Object implements org.apache.commons.collections.Factory
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_number
The actual number.
|
protected PrintfFormat |
m_numberFormat
Format for file create parameter.
|
| Constructor and Description |
|---|
CmsNumberFactory(int digits)
Create a new number factory.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
create()
Create the number based on the number of digits set.
|
void |
setNumber(int number)
Sets the number to create to the given value.
|
protected int m_number
protected PrintfFormat m_numberFormat
public CmsNumberFactory(int digits)
digits - the number of digits to usepublic java.lang.Object create()
create in interface org.apache.commons.collections.FactoryFactory.create()public void setNumber(int number)
number - the number to set