org.ploin.pmf.impl
Class MailReplacer

java.lang.Object
  extended by org.ploin.pmf.impl.MailReplacer
All Implemented Interfaces:
java.io.Serializable, IMailReplacer

public class MailReplacer
extends java.lang.Object
implements java.io.Serializable, IMailReplacer

Description: Implementation of the IMailReplacer interface. This class offers a method to replace all string-snippets which are
matching the keys of the replaceMap.

                                    ........
                                 .WHHUUVOOOOU&,
     dMMMMMMMMMMMa,   .MMMMF   .MHW0Oz+!``````?G.   .MMMM% .MMMMMMMMMMMN,
    .MMMMMMMMMMMMMMr  JMMMM   JHHXwOz;:^..```  `O,  JMMM#  dMMMMMMMMMMMMN
    JMMM#     ,MMMMF  MMMMF  .MHVXwOz++.^.````  +n .MMMM$ .MMMMt    dMMM#
   .MMMMt     .MMMMt .MMMM!  JMHWWXwOz++....  `.+X JMMMM  JMMMM    .MMMM%
   JMMM#     .MMMM@  dMMM#   ,MHHWWXwOzz+++....?df MMMMF .MMMMF    JMMM#
  .MMMMNNNNNMMMMMD   MMMMMNNm 4MHHWWXXwOOzzz1+1wX'.MMMM! .MMMM`   .MMMM$
  .MMMMMMMMMMMM"`    .YMMMMMF  TMHHHWWWXXXwwwwXK! MMMMF  MMMMF    JMMMM
  MMMMF                          TMMHHHHHWWWHY^
 .MMMM'                             `7""""^`
 dMMM#
 

$HeadURL: https://ploinscm.de/svn/ploinMailFactory/trunk/src/main/java/org/ploin/pmf/impl/MailReplacer.java $
$LastChangedBy: r.reiz $
$Revision: 52 $
$Date: 2009-11-20 23:51:26 +0100 (Fri, 20 Nov 2009) $

See Also:
Serialized Form

Constructor Summary
MailReplacer()
           
 
Method Summary
 java.lang.String replace(java.lang.String mail, java.util.Map<java.lang.String,java.lang.String> replaceMap)
          This method replaces all string-snippets which are matching the keys of the replaceMap with the values of the replaceMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailReplacer

public MailReplacer()
Method Detail

replace

public java.lang.String replace(java.lang.String mail,
                                java.util.Map<java.lang.String,java.lang.String> replaceMap)
Description copied from interface: IMailReplacer
This method replaces all string-snippets which are matching the keys of the replaceMap with the values of the replaceMap.

Specified by:
replace in interface IMailReplacer
Parameters:
mail - - the email-template
replaceMap - - the given map by the user
Returns:
a new email-text


Copyright © 2009 PLOIN GmbH. All Rights Reserved.