public interface TagProcessorFactory
XMLWorker
.
Modifier and Type | Method and Description |
---|---|
void |
addProcessor(TagProcessor processor, String... tags)
Add a tag processor and the tags it maps to.
|
TagProcessor |
getProcessor(String tag, String nameSpace)
Looks up a TagProcessor for the given tag.
|
void |
removeProcessor(String tag)
Removes a TagProcessor for a specific tag.
|
TagProcessor getProcessor(String tag, String nameSpace) throws NoTagProcessorException
tag
- the tag to find a processor for.
nameSpace
- the namespace
TagProcessor
mapped to this tag.
NoTagProcessorException
- implementers should thrown this if there is no mapping found.
void addProcessor(TagProcessor processor, String... tags)
processor
- the TagProcessor.
tags
- tags this processor maps to.
void removeProcessor(String tag)
tag
- the tag to remove the processor for.
Copyright © 1998–2017. All rights reserved.