de.scheisseichfindemalkeinen.settings.options
Class RegexReplaceRegExp

java.lang.Object
  extended by de.scheisseichfindemalkeinen.settings.options.RegexReplaceRegExp

public class RegexReplaceRegExp
extends java.lang.Object

Search and Replace by Regexp


Constructor Summary
RegexReplaceRegExp()
          Constructor
RegexReplaceRegExp(org.jdom.Element e)
          Constructor
 
Method Summary
 java.lang.String doReplace(java.lang.String input)
          Replace-Method
 int getRegexFlags()
          Returns the regexFlags
 java.lang.String getReplace()
          Returns the Replace-String
 java.lang.String getSearch()
          Returns the Search-String
 boolean getStatusOK()
          Returns if the status of the object is ok
 org.jdom.Element getXmlElement()
          Returns the Element for creating the XML-File
 void setRegexFlags(int regexFlags)
          Sets the regexFlags If the a PatternSyntaxException occurs no flags are set!
 void setReplace(java.lang.String replace)
          Sets the Replace-String
 void setSearch(java.lang.String search)
          Sets the Search-String and try to compile the Pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexReplaceRegExp

public RegexReplaceRegExp()
Constructor


RegexReplaceRegExp

public RegexReplaceRegExp(org.jdom.Element e)
Constructor

Parameters:
e - Element
Method Detail

getStatusOK

public boolean getStatusOK()
Returns if the status of the object is ok

Returns:
True if ok

doReplace

public java.lang.String doReplace(java.lang.String input)
Replace-Method

Parameters:
input - Input
Returns:
Replaced String

getXmlElement

public org.jdom.Element getXmlElement()
Returns the Element for creating the XML-File

Returns:
Element

getSearch

public java.lang.String getSearch()
Returns the Search-String

Returns:
Search-String

setSearch

public void setSearch(java.lang.String search)
               throws java.util.regex.PatternSyntaxException
Sets the Search-String and try to compile the Pattern

Parameters:
search - Search-String
Throws:
java.util.regex.PatternSyntaxException

getReplace

public java.lang.String getReplace()
Returns the Replace-String

Returns:
Replace-String

setReplace

public void setReplace(java.lang.String replace)
Sets the Replace-String

Parameters:
replace - Replace-String

getRegexFlags

public int getRegexFlags()
Returns the regexFlags

Returns:
regexFlags

setRegexFlags

public void setRegexFlags(int regexFlags)
Sets the regexFlags If the a PatternSyntaxException occurs no flags are set!

Parameters:
regexFlags - regexFlags