|
Release Planner v1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Declares a protocol for looking up XML tag id's and names, and for allocating and returning loaders.
Method Summary | |
XMLLoader |
getLoader(int tagId)
Fetches an instance of a loader class (possibly recycled) for a given tag id. |
int |
idOf(java.lang.String tagName)
Returns the integer id of a tag given by its string name. |
java.lang.String |
nameOf(int tagId)
Returns the string name of a tag given by its integer id. |
void |
returnLoader(int tagId,
XMLLoader loader)
Inidicates that the client is done with this loader and it may be recycled. |
Method Detail |
public java.lang.String nameOf(int tagId)
tagId
- the integer id of the tag we are looking up
public int idOf(java.lang.String tagName) throws XMLTagNotFoundException
tagName
- the string name of the tag whose id we are looking up
XMLTagNotFoundException
- when the name corresponds to no tagpublic XMLLoader getLoader(int tagId) throws XMLTagNoLoaderException
tagId
- the integer id of the tag whose loader we are instantiating
XMLTagNoLoaderException
- when the loader class cannot be instantiated.public void returnLoader(int tagId, XMLLoader loader)
tagId
- the id of the tag withi which this loader is associated.loader
- the loader object to be recycled
|
Release Planner v1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |