1 43 package net.jforum.util.bbcode; 44 45 import java.io.Serializable ; 46 47 53 public class BBCode implements Serializable 54 { 55 private String tagName = ""; 56 private String regex; 57 private String replace; 58 private boolean removQuotes; 59 private boolean alwaysProcess; 60 61 public BBCode() {} 62 63 69 public BBCode(String tagName, String regex, String replace) 70 { 71 this.tagName = tagName; 72 this.regex = regex; 73 this.replace = replace; 74 } 75 76 80 public String getRegex() 81 { 82 return this.regex; 83 } 84 85 89 public String getReplace() 90 { 91 return this.replace; 92 } 93 94 98 public String getTagName() 99 { 100 return this.tagName; 101 } 102 103 public boolean removeQuotes() 104 { 105 return this.removQuotes; 106 } 107 108 112 public void setRegex(String regex) 113 { 114 this.regex = regex; 115 } 116 117 121 public void setReplace(String replace) 122 { 123 this.replace = replace; 124 } 125 126 130 public void setTagName(String tagName) 131 { 132 this.tagName = tagName; 133 } 134 135 public void enableAlwaysProcess() 136 { 137 this.alwaysProcess = true; 138 } 139 140 public boolean alwaysProcess() 141 { 142 return this.alwaysProcess; 143 } 144 145 public void enableRemoveQuotes() 146 { 147 this.removQuotes = true; 148 } 149 } 150 | Popular Tags |