Klasse CharReplacer
java.lang.Object
org.apache.torque.generator.processor.string.CharReplacer
- Alle implementierten Schnittstellen:
StringProcessor
- Bekannte direkte Unterklassen:
ConstantNameCreator
Replaces characters by a String.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns a String containing all the characters which should be replaced.Returns the String which are inserted instead of the replaced characters.Replaces all characters intoProcess
which occur intoReplace
withtoReplaceWith
and returns the new Stringvoid
setToReplace
(String toReplace) Sets the characters which should be replaced.void
setToReplaceWith
(String toReplaceWith) Sets the String which are inserted instead of the replaced characters.toString()
-
Felddetails
-
JAVA_CLASSNAME_SPECIAL_CHARS
Characters which are not allowed in java class names- Siehe auch:
-
JAVA_CLASSNAME_REPLACEMENT
The String which is usually used as replacement for not allowed characters in java class names.- Siehe auch:
-
-
Konstruktordetails
-
CharReplacer
public CharReplacer()
-
-
Methodendetails
-
getToReplace
Returns a String containing all the characters which should be replaced.- Gibt zurück:
- the Characters which should be replaced, not null.
-
setToReplace
Sets the characters which should be replaced.- Parameter:
toReplace
- a String containing all the Characters which should be replaced, not null.
-
getToReplaceWith
Returns the String which are inserted instead of the replaced characters.- Gibt zurück:
- the replacement, not null.
-
setToReplaceWith
Sets the String which are inserted instead of the replaced characters.- Parameter:
toReplaceWith
- the replacement, not null.
-
process
Replaces all characters intoProcess
which occur intoReplace
withtoReplaceWith
and returns the new String- Angegeben von:
process
in SchnittstelleStringProcessor
- Parameter:
toProcess
- the String in which replacement should occur, not null.- Gibt zurück:
- the processed String, not null.
-
toString
-