Taylohtio/AlertManager/SPSolutions.SharePoint.Aler.../SPSolutions.SharePoint/SPSolutions.SharePoint.Aler.../TokenizerDecorator.cs

33 lines
728 B
C#

using System;
using System.Collections;
namespace SPSolutions.SharePoint.Alerts.Tokenization
{
public class TokenizerDecorator : Tokenizer
{
protected Tokenizer m_baseTokenizer;
public void SetTokenizer(Tokenizer component)
{
this.m_baseTokenizer = component;
}
public override void PopulateTokenValues()
{
if (this.m_baseTokenizer != null)
{
this.m_baseTokenizer.PopulateTokenValues();
}
}
public override Hashtable AddTokens(Hashtable tokens)
{
if (this.m_baseTokenizer != null)
{
this.m_baseTokenizer.AddTokens(tokens);
}
foreach (DictionaryEntry dictionaryEntry in base.Tokens)
{
tokens[dictionaryEntry.Key] = dictionaryEntry.Value;
}
return tokens;
}
}
}