Interface ITagProcessorManager
- Namespace
- TMPEffects.TextProcessing
- Assembly
- TMPEffects.dll
Interface for manager of TagProcessor.
public interface ITagProcessorManager : IEnumerable<TagProcessor>, IEnumerable
- Inherited Members
Properties
TagProcessors
Mapping of prefix to list of TagProcessor.
ReadOnlyDictionary<char, ReadOnlyCollection<TagProcessor>> TagProcessors { get; }
Property Value
Methods
AddProcessor(char, TagProcessor, int)
Add a processor.
void AddProcessor(char prefix, TagProcessor processor, int priority = 0)
Parameters
prefix
charPrefix of tags processed by
processor
.processor
TagProcessorThe processor.
priority
intPriority of this processor. Only one processors can process any given tag, so the order that processors are invoked in matters.
Less than zero => last processed
zero => first processed (highest priority)
Greater than zero => priority-th processed
Greater than current amount of processors => last processed
RemoveProcessor(char, TagProcessor)
Remove a processor.
bool RemoveProcessor(char prefix, TagProcessor processor)
Parameters
prefix
charPrefix of tags processed by
processor
.processor
TagProcessorThe processor.
Returns
- bool
true if the processors was removed; otherwise false.