Class PropertySubstitutions

  • All Implemented Interfaces:
    TextSubstitutions

    public class PropertySubstitutions
    extends java.lang.Object
    implements TextSubstitutions
    Provides substitution of @name@ tokens by named values from a property set.
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertySubstitutions​(java.util.Properties properties0)
      Create a substitution set.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(java.lang.String target)
      Apply substitutions.
      • Methods inherited from class java.lang.Object

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

      • PropertySubstitutions

        public PropertySubstitutions​(java.util.Properties properties0)
        Create a substitution set.
        Parameters:
        properties0 - the set of (name,value) pairs for substitution.
    • Method Detail

      • apply

        public final java.lang.String apply​(java.lang.String target)
        Apply substitutions.
        Specified by:
        apply in interface TextSubstitutions
        Parameters:
        target - original string
        Returns:
        original after applying substitutions.