|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.config.impl.SimpleXMLTagProvider
public class SimpleXMLTagProvider
Simple XML tag provider
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,Tag> |
tags
|
Constructor Summary | |
---|---|
SimpleXMLTagProvider()
The constructor |
|
SimpleXMLTagProvider(java.lang.String fullPath)
a SimpleXMLTagProvider always read the tag from a specified xml file. |
Method Summary | |
---|---|
void |
cleanup(KeyedCollection config)
Cleanup current component |
Tag |
getTag(java.lang.String key)
find a Tag identified by the id. |
java.util.Collection<Tag> |
getTags()
|
void |
initialize(KeyedCollection config)
Initialize current component |
void |
initialize(java.lang.String file)
Initialize xml tag provider by file |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,Tag> tags
Constructor Detail |
---|
public SimpleXMLTagProvider()
public SimpleXMLTagProvider(java.lang.String fullPath)
fullPath
- path to the xml file.rootTagName
- the tag name of the root xml tag in the xml file.
ConfigException
Method Detail |
---|
public void initialize(java.lang.String file) throws TagProviderException
file
- desired file path
TagProviderException
public Tag getTag(java.lang.String key) throws TagNotFoundException, TagProviderException
TagProvider
getTag
in interface TagProvider
key
- id of the tag.
TagNotFoundException
- cannot find the tag because of no definition for the id.
TagProviderException
- Some error exist in TagProvider or its definition file.public java.util.Collection<Tag> getTags()
public void cleanup(KeyedCollection config) throws BTTCleanUpException
Initializer
cleanup
in interface Initializer
config
- the current cached XML
cleans the current cached configuration
BTTCleanUpException
public void initialize(KeyedCollection config) throws BTTInitException
Initializer
initialize
in interface Initializer
BTTInitException
public java.lang.String toString()
toString
in class java.lang.Object
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |