Class Template


  • public class Template
    extends Object
    Deprecated.
    since 5.1. Isn't used in TeamCity notification component or by any known plugin. Most probably will be removed in future versions of TeamCity.
    Contains template with parameters. Template parameter is a word containing letters and numbers enclosed in curly braces.
    • Constructor Detail

      • Template

        public Template​(@NotNull
                        String template)
        Deprecated.
    • Method Detail

      • parse

        public String parse​(@NotNull
                            Map<String,​String> substitution)
        Deprecated.
        Replaces parameters in template with help of parameter values.
        Parameters:
        substitution - map of parameter values, key is a template parameter (with curly braces), value is this parameter value
        Returns:
        template with parameters replaced by their values
      • findPatterns

        public Set<String> findPatterns()
        Deprecated.
        Returns all patterns used in the template. A text is considered pattern if it matches the following regular expression: {[0-9A-Z_]+}.
        Returns:
        pattern usages collection.