jetbrains.buildServer.notification
Class Template

java.lang.Object
  extended by jetbrains.buildServer.notification.Template

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.

public class Template
extends java.lang.Object

Contains template with parameters. Template parameter is a word containing letters and numbers enclosed in curly braces.


Constructor Summary
Template(java.lang.String template)
          Deprecated.  
 
Method Summary
 java.util.Set<java.lang.String> findPatterns()
          Deprecated. Returns all patterns used in the template.
 java.lang.String parse(java.util.Map<java.lang.String,java.lang.String> substitution)
          Deprecated. Replaces parameters in template with help of parameter values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Template

public Template(@NotNull
                java.lang.String template)
Deprecated. 
Method Detail

parse

public java.lang.String parse(@NotNull
                              java.util.Map<java.lang.String,java.lang.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 java.util.Set<java.lang.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.