Package org.apache.torque.generator.processor.string

# Klasse CharReplacer

java.lang.Object
org.apache.torque.generator.processor.string.CharReplacer

Alle implementierten Schnittstellen:
  `StringProcessor`

Bekannte direkte Unterklassen:
  `ConstantNameCreator`

public class CharReplacer extends Object implements StringProcessor
Replaces characters by a String.

- ## Feldübersicht

  Felder
  Modifizierer und Typ
  Feld
  Beschreibung
  `static final String`
  `JAVA_CLASSNAME_REPLACEMENT`
  The String which is usually used as replacement for not allowed characters in java class names.
  `static final String`
  `JAVA_CLASSNAME_SPECIAL_CHARS`
  Characters which are not allowed in java class names

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `CharReplacer()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `String`
  `getToReplace()`
  Returns a String containing all the characters which should be replaced.
  `String`
  `getToReplaceWith()`
  Returns the String which are inserted instead of the replaced characters.
  `String`
  `process(String toProcess)`
  Replaces all characters in `toProcess` which occur in `toReplace` with `toReplaceWith` and returns the new String
  `void`
  `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.
  `String`
  `toString()`

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Felddetails

  - ### JAVA_CLASSNAME_SPECIAL_CHARS

    public static final String JAVA_CLASSNAME_SPECIAL_CHARS
    Characters which are not allowed in java class names
    Siehe auch:
      - Konstantenfeldwerte

  - ### JAVA_CLASSNAME_REPLACEMENT

    public static final String JAVA_CLASSNAME_REPLACEMENT
    The String which is usually used as replacement for not allowed characters in java class names.
    Siehe auch:
      - Konstantenfeldwerte

- ## Konstruktordetails

  - ### CharReplacer

    public CharReplacer()

- ## Methodendetails

  - ### getToReplace

    public String getToReplace()
    Returns a String containing all the characters which should be replaced.
    Gibt zurück:
      the Characters which should be replaced, not null.

  - ### setToReplace

    public void setToReplace(String toReplace)
    Sets the characters which should be replaced.
    Parameter:
      `toReplace` - a String containing all the Characters which should be replaced, not null.

  - ### getToReplaceWith

    public String getToReplaceWith()
    Returns the String which are inserted instead of the replaced characters.
    Gibt zurück:
      the replacement, not null.

  - ### setToReplaceWith

    public void setToReplaceWith(String toReplaceWith)
    Sets the String which are inserted instead of the replaced characters.
    Parameter:
      `toReplaceWith` - the replacement, not null.

  - ### process

    public String process(String toProcess)
    Replaces all characters in `toProcess` which occur in `toReplace` with `toReplaceWith` and returns the new String
    Angegeben von:
      `process` in Schnittstelle `StringProcessor`
    Parameter:
      `toProcess` - the String in which replacement should occur, not null.
    Gibt zurück:
      the processed String, not null.

  - ### toString

    public String toString()
    Setzt außer Kraft:
      `toString` in Klasse `Object`