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 Details

  • Constructor Details

    • CmsNumberFactory

      public CmsNumberFactory(int digits)
      Create a new number factory.

      Parameters:
      digits - the number of digits to use
  • Method Details

    • create

      public Object create()
      Create the number based on the number of digits set.

      Specified by:
      create in interface org.apache.commons.collections.Factory
      See Also:
      • Factory.create()
    • setNumber

      public void setNumber(int number)
      Sets the number to create to the given value.

      Parameters:
      number - the number to set