Class DescriptionReplacer

  • All Implemented Interfaces:
    Replacer

    public class DescriptionReplacer
    extends java.lang.Object
    implements Replacer
    Replacer returning the description of Described objects.
    Version:
    1.0
    Author:
    Andreas
    • 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 description.
      • Methods inherited from class java.lang.Object

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

      • mode

        protected boolean mode
    • Constructor Detail

      • DescriptionReplacer

        public DescriptionReplacer()
        Creates a new DescriptionReplacer object.
      • DescriptionReplacer

        public DescriptionReplacer​(boolean mode)
        Creates new DescriptionReplacer
        Parameters:
        mode - getReplacement(Object) returns Replacer.EMPTY for objects that are not descendents of Described if this is true, otherwise null.