1 package org.apache.velocity.runtime; 2 3 /* 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 */ 21 22 /** 23 * Class gathering configured replacement characters for a specific parser class. 24 * @since 2.2 25 */ 26 27 public class ParserConfiguration 28 { 29 /** 30 * Configured replacement character for '$' 31 */ 32 private char dollar = '$'; 33 34 /** 35 * Configured replacement character for '#' 36 */ 37 private char hash = '#'; 38 39 /** 40 * Configured replacement character for '@' 41 */ 42 private char at = '@'; 43 44 /** 45 * Configured replacement character for '*' 46 */ 47 private char asterisk = '*'; 48 49 /** 50 * Getter for '$' configured replacement character 51 * @return configured replacement character for '$' 52 */ getDollarChar()53 public char getDollarChar() 54 { 55 return dollar; 56 } 57 58 /** 59 * Setter for '$' configured replacement character 60 */ setDollarChar(char dollar)61 void setDollarChar(char dollar) 62 { 63 this.dollar = dollar; 64 } 65 66 /** 67 * Getter for '#' configured replacement character 68 * @return configured replacement character for '#' 69 */ getHashChar()70 public char getHashChar() 71 { 72 return hash; 73 } 74 75 /** 76 * Setter for '#' configured replacement character 77 */ setHashChar(char hash)78 void setHashChar(char hash) 79 { 80 this.hash = hash; 81 } 82 83 /** 84 * Getter for '@' configured replacement character 85 * @return configured replacement character for '@' 86 */ getAtChar()87 public char getAtChar() 88 { 89 return at; 90 } 91 92 /** 93 * Setter for '@' configured replacement character 94 */ setAtChar(char at)95 void setAtChar(char at) 96 { 97 this.at = at; 98 } 99 100 /** 101 * Getter for '*' configured replacement character 102 * @return configured replacement character for '*' 103 */ getAsteriskChar()104 public char getAsteriskChar() 105 { 106 return asterisk; 107 } 108 109 /** 110 * Setter for '*' configured replacement character 111 */ setAsteriskChar(char asterisk)112 void setAsteriskChar(char asterisk) 113 { 114 this.asterisk = asterisk; 115 } 116 } 117