com.ibm.btt.config.impl
Class XMLInputStreamTagProvider
java.lang.Object
com.ibm.btt.config.impl.XMLInputStreamTagProvider
- All Implemented Interfaces:
- TagProvider
public class XMLInputStreamTagProvider
- extends java.lang.Object
- implements TagProvider
It is suggested to use SimpleXMLTagProvider instead of XMLInputStreamTagProvider.
Because SimpleXMLTagProvider can support import tag.
Field Summary |
protected java.util.Map<java.lang.String,Tag> |
tags
|
Method Summary |
Tag |
getTag(java.lang.String key)
find a Tag identified by the id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tags
protected java.util.Map<java.lang.String,Tag> tags
XMLInputStreamTagProvider
public XMLInputStreamTagProvider(java.io.InputStream is)
throws TagProviderException
- XMLInputStreamTagProvider constructor
- Parameters:
is
- xml input stream
- Throws:
TagProviderException
getTag
public Tag getTag(java.lang.String key)
throws TagNotFoundException,
TagProviderException
- Description copied from interface:
TagProvider
- 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.
- Specified by:
getTag
in interface TagProvider
- Parameters:
key
- 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