View Javadoc
1   package net.logAnalyzer.converters;
2   
3   /***
4    * This class implements a literal converter used to parse literals in a Log4J
5    * pattern.
6    * 
7    * @author Karim REFEYTON
8    * @version 0.1
9    */
10  public class LiteralConverter extends StringConverter {
11      /***
12       * Used as key for literal converter definition.
13       */
14      public static final String LITERAL_NAME = "LITERAL";
15  
16      /***
17       * Constructs a literal converter with the specified literal value.
18       * 
19       * @see LAConverter#LAConverter(ConverterDefinition, String)
20       */
21      public LiteralConverter(ConverterDefinition definition, String literal) {
22          super(definition, literal);
23      }
24  
25      /***
26       * Always returns the {@link #LITERAL_NAME}.
27       * 
28       * @return {@link #LITERAL_NAME}.
29       * @see net.logAnalyzer.converters.LAConverter#getLiteral()
30       */
31      public final String getName() {
32          return LITERAL_NAME;
33      }
34  }