Package com.itextpdf.tool.xml.html
Interface TagProcessorFactory
- All Known Implementing Classes:
DefaultTagProcessorFactory
public interface TagProcessorFactory
A TagProcessorFactory creates TagProcessors used by the
XMLWorker
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProcessor
(TagProcessor processor, String... tags) Add a tag processor and the tags it maps to.getProcessor
(String tag, String nameSpace) Looks up a TagProcessor for the given tag.void
removeProcessor
(String tag) Removes a TagProcessor for a specific tag.
-
Method Details
-
getProcessor
Looks up a TagProcessor for the given tag.- Parameters:
tag
- the tag to find a processor for.nameSpace
- the namespace- Returns:
- the
TagProcessor
mapped to this tag. - Throws:
NoTagProcessorException
- implementers should thrown this if there is no mapping found.
-
addProcessor
Add a tag processor and the tags it maps to.- Parameters:
processor
- the TagProcessor.tags
- tags this processor maps to.
-
removeProcessor
Removes a TagProcessor for a specific tag.- Parameters:
tag
- the tag to remove the processor for.
-