Class SimpleStringReplacer

  • All Implemented Interfaces:
    Replacer

    public class SimpleStringReplacer
    extends java.lang.Object
    implements Replacer
    Returns a certain string.
    Version:
    1.0
    Author:
    Andreas
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleStringReplacer​(java.lang.String string)
      Creates new SimpleStringReplacer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns a description for the user of what this replacer does.
      java.lang.Object getReplacement​(java.lang.Object o)
      Returns the string defined in the constructor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • string

        protected java.lang.String string
    • Constructor Detail

      • SimpleStringReplacer

        public SimpleStringReplacer​(java.lang.String string)
        Creates new SimpleStringReplacer
    • Method Detail

      • getReplacement

        public java.lang.Object getReplacement​(java.lang.Object o)
        Returns the string defined in the constructor.
        Specified by:
        getReplacement in interface Replacer