Package com.itextpdf.tool.xml.html
Interface TagProcessorFactory
-
- All Known Implementing Classes:
DefaultTagProcessorFactory
public interface TagProcessorFactoryA TagProcessorFactory creates TagProcessors used by theXMLWorker.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddProcessor(TagProcessor processor, java.lang.String... tags)Add a tag processor and the tags it maps to.TagProcessorgetProcessor(java.lang.String tag, java.lang.String nameSpace)Looks up a TagProcessor for the given tag.voidremoveProcessor(java.lang.String tag)Removes a TagProcessor for a specific tag.
-
-
-
Method Detail
-
getProcessor
TagProcessor getProcessor(java.lang.String tag, java.lang.String nameSpace) throws NoTagProcessorException
Looks up a TagProcessor for the given tag.- Parameters:
tag- the tag to find a processor for.nameSpace- the namespace- Returns:
- the
TagProcessormapped to this tag. - Throws:
NoTagProcessorException- implementers should thrown this if there is no mapping found.
-
addProcessor
void addProcessor(TagProcessor processor, java.lang.String... tags)
Add a tag processor and the tags it maps to.- Parameters:
processor- the TagProcessor.tags- tags this processor maps to.
-
removeProcessor
void removeProcessor(java.lang.String tag)
Removes a TagProcessor for a specific tag.- Parameters:
tag- the tag to remove the processor for.
-
-