com.ibm.btt.config
Interface TagProvider
- All Known Implementing Classes:
- LazyLoadingTagProvider, MacroTagProvider, RefTagProvider, RegexTagProvider, SimpleXMLTagProvider, TagProviderChain, XMLInputStreamTagProvider
public interface TagProvider
Provider class for access tag.
Method Summary |
Tag |
getTag(java.lang.String id)
find a Tag identified by the id. |
getTag
Tag getTag(java.lang.String id)
throws TagNotFoundException,
TagProviderException
- find a Tag identified by the id.
the behavior of this method depends on the implementaion.
You can choose to use SimpleXMLTagProvider, as its defines all the tag in
one file,
or, you can implement your own TagProvider, according to your
requirments.
You should throw a TagNotFondException when the tag for id is not defined rather than return a null value.
- Parameters:
id
- id of the tag.
- Returns:
- corresponding tag.
- Throws:
TagNotFoundException
- cannot find the tag because of no definition for the id.
TagProviderException
- Some error exist in TagProvider or its definition file.
(c) Copyright IBM Corporation 1998, 2011