org.deltava.util.bbcode
Class BBCode

java.lang.Object
  extended by 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 Summary
BBCode()
           
BBCode(String tagName, String regex, String replace)
          BBCode class constructor
 
Method Summary
 boolean alwaysProcess()
           
 void enableAlwaysProcess()
           
 void enableRemoveQuotes()
           
 String getRegex()
          Gets the regex
 String getReplace()
          Gets the replacement string
 String getTagName()
          Getst the tag name
 boolean removeQuotes()
           
 void setRegex(String regex)
          Sets the regular expression associated to the tag
 void setReplace(String replace)
          Sets the replacement string, to be aplyied when matching the code
 void setTagName(String tagName)
          Setst the tag name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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()


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.