com.ibm.btt.config.impl
Class MacroTagProvider
java.lang.Object
com.ibm.btt.config.impl.MacroTagProvider
- All Implemented Interfaces:
- TagProvider
public class MacroTagProvider
- extends java.lang.Object
- implements TagProvider
Tag provider which has Macro behavior
Method Summary |
Tag |
getTag(java.lang.String id)
find a Tag identified by the id. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
tagProvider
protected TagProvider tagProvider
MacroTagProvider
public MacroTagProvider(TagProvider tagProvider)
- MacroTagProvider constructor
- Parameters:
tagProvider
- wrapped tag provider
getTag
public Tag getTag(java.lang.String id)
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:
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.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
(c) Copyright IBM Corporation 1998, 2010