Class FileNamePattern

  • All Implemented Interfaces:
    ContextAware

    @Deprecated(since="2022-01-27")
    public class FileNamePattern
    extends ContextAwareBase
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    After parsing file name patterns, given a number or a date, instances of this class can be used to compute a file name according to the file name pattern and the current date or integer.
    • Constructor Detail

      • FileNamePattern

        public FileNamePattern​(java.lang.String patternArg,
                               Context contextArg)
        Deprecated.
    • Method Detail

      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • getPrimaryDateTokenConverter

        public DateTokenConverter<java.lang.Object> getPrimaryDateTokenConverter()
        Deprecated.
      • hasIntegerTokenCOnverter

        public boolean hasIntegerTokenCOnverter()
        Deprecated.
      • convertMultipleArguments

        public java.lang.String convertMultipleArguments​(java.lang.Object... objectList)
        Deprecated.
      • convert

        public java.lang.String convert​(java.lang.Object o)
        Deprecated.
      • convertInt

        public java.lang.String convertInt​(int i)
        Deprecated.
      • setPattern

        public void setPattern​(java.lang.String pattern)
        Deprecated.
      • getPattern

        public java.lang.String getPattern()
        Deprecated.
      • toRegexForFixedDate

        public java.lang.String toRegexForFixedDate​(java.util.Date date)
        Deprecated.
        Given date, convert this instance to a regular expression. Used to compute sub-regex when the pattern has both %d and %i, and the date is known.
      • toRegex

        public java.lang.String toRegex()
        Deprecated.
        Given date, convert this instance to a regular expression