Class BBCode

java.lang.Object
org.deltava.util.bbcode.BBCode

public class BBCode extends Object
Represents each bbcode.
Version:
$Id: BBCode.java,v 1.11 2006/08/23 02:13:55 rafaelsteil Exp $
Author:
Rafael Steil
  • Constructor Details

    • BBCode

      public BBCode()
    • BBCode

      public BBCode(String tagName, String regex, String replace)
      BBCode class constructor
      Parameters:
      tagName - The tag name we are going to match
      regex - Regular expression relacted to the tag
      replace - The replacement string
  • Method Details

    • getRegex

      public String getRegex()
      Gets the regex
      Returns:
      String witht the regex
    • getReplace

      public String getReplace()
      Gets the replacement string
      Returns:
      string with the replacement data
    • getTagName

      public String getTagName()
      Getst the tag name
      Returns:
      The tag name
    • removeQuotes

      public boolean removeQuotes()
    • setRegex

      public void setRegex(String regex)
      Sets the regular expression associated to the tag
      Parameters:
      regex - Regular expression string
    • setReplace

      public void setReplace(String replace)
      Sets the replacement string, to be aplyied when matching the code
      Parameters:
      replace - The replacement string data
    • setTagName

      public void setTagName(String tagName)
      Setst the tag name
      Parameters:
      tagName - The tag name
    • enableAlwaysProcess

      public void enableAlwaysProcess()
    • alwaysProcess

      public boolean alwaysProcess()
    • enableRemoveQuotes

      public void enableRemoveQuotes()