|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jeters.util.AssistedComponent
net.sf.jeters.components.RegExReplacer
net.sf.jeters.components.RegExReplacer_User
public class RegExReplacer_User
an replacer class for JETERS that applies a regex expression the user directly enters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.jeters.components.RegExReplacer |
---|
RegExReplacer.CustomReplacement, RegExReplacer.DescriptionEntry, RegExReplacer.DescriptionList, RegExReplacer.RegExReplacement, RegExReplacer.Replacement, RegExReplacer.ReplacementElement, RegExReplacer.ReplacementGroup, RegExReplacer.Splitter |
Field Summary | |
---|---|
protected java.lang.Boolean |
conf_askForRegexEveryTime
whether the user will be asked again for a regex even if a replacement already exists. |
protected java.lang.Boolean |
conf_confirmChangesByDefault
whether change-confirmation-requests will be sent to the user interface by default. |
protected java.lang.String |
conf_defaultSummary
the default summary for user-defined edits. |
protected java.lang.Boolean |
conf_splitToLines
whether the text will be split at newlines |
Fields inherited from class net.sf.jeters.components.RegExReplacer |
---|
conf_debug, conf_minRatingDescription, conf_minRatingSummary, conf_minTotalRatingDescription, conf_minTotalRatingSummary, conf_summaryEntryLimit, conf_summaryEntryLimitBrackets, confirmationDescriptionList, replacements, splitter, summaryDescriptionList |
Constructor Summary | |
---|---|
RegExReplacer_User()
|
Method Summary | |
---|---|
net.sf.jeters.componentInterface.editables.MediaWikiText[] |
edit(net.sf.jeters.componentInterface.editables.EditableText text,
UIComponent uiForRequests)
applies the regular expressions to a text. |
Configuration |
getConfiguration()
this method is called to retrieve the current configuration for this component. |
void |
setConfiguration(Configuration configuration)
sets the configuration for this object. |
Methods inherited from class net.sf.jeters.components.RegExReplacer |
---|
applyReplacementGroup, applyReplacementList, applySingleReplacement |
Methods inherited from class net.sf.jeters.util.AssistedComponent |
---|
setLanguageResourceBundle, str, str |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String conf_defaultSummary
protected java.lang.Boolean conf_confirmChangesByDefault
protected java.lang.Boolean conf_askForRegexEveryTime
protected java.lang.Boolean conf_splitToLines
Constructor Detail |
---|
public RegExReplacer_User()
Method Detail |
---|
public net.sf.jeters.componentInterface.editables.MediaWikiText[] edit(net.sf.jeters.componentInterface.editables.EditableText text, UIComponent uiForRequests)
RegExReplacer
edit
in interface ReplacerComponent<net.sf.jeters.componentInterface.editables.EditableText,net.sf.jeters.componentInterface.editables.MediaWikiText>
edit
in class RegExReplacer
text
- the input text that is supposed to be editeduiForRequests
- UI-component for communication with the user.
public void setConfiguration(Configuration configuration)
Configurable
setConfiguration
in interface Configurable
setConfiguration
in class AssistedComponent
configuration
- configuration to be used by the component; not nullpublic Configuration getConfiguration()
Configurable
setConfiguration
, a default configuration for this
component is expected to be returned (which is used, among other things,
for creating the initial config file).
getConfiguration
in interface Configurable
getConfiguration
in class AssistedComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |