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