|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.metadata.RepositoryTags
this class maintains a table mapping the xml-tags used in the
repository.dtd to their corresponding ids used within OJB.
This table is used in
1. the RepositoryXmlHandler to identify tags on parsing the
repository.xml in a large switch statement.
2. in the RepositoryPersistor to get the proper tag for a
given XmlCapable id during assembling the repository.xml
for output.
Important note: This class is the only place where XML tags from the
repository.dtd are maintained.
All usages of these tags within OJB must use this table to ease
changes of the DTD.
Field Summary |
Method Summary | |
java.lang.String |
getAttribute(int elementId,
java.lang.String value)
returns the opening but non-closing xml-tag associated with the repository element with id elementId . |
java.lang.String |
getClosingTagById(int elementId)
returns the closing xml-tag associated with the repository element with id elementId . |
java.lang.String |
getCompleteTagById(int elementId,
java.lang.String characters)
returns the opening xml-tag associated with the repository element with id elementId . |
int |
getIdByTag(java.lang.String tag)
returns the repository element id associated with the xml-tag literal tag . |
static RepositoryTags |
getInstance()
returns the singleton instance. |
java.lang.String |
getOpeningTagById(int elementId)
returns the opening xml-tag associated with the repository element with id elementId . |
java.lang.String |
getOpeningTagById(int elementId,
java.lang.String attributes)
returns the opening xml-tag associated with the repository element with id elementId . |
java.lang.String |
getOpeningTagNonClosingById(int elementId)
returns the opening but non-closing xml-tag associated with the repository element with id elementId . |
java.lang.String |
getTagById(int elementId)
returns the xml-tag literal associated with the repository element with id elementId . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static RepositoryTags getInstance()
public java.lang.String getTagById(int elementId)
elementId
.
public java.lang.String getOpeningTagById(int elementId)
elementId
.
public java.lang.String getOpeningTagNonClosingById(int elementId)
elementId
.
public java.lang.String getOpeningTagById(int elementId, java.lang.String attributes)
elementId
.
public java.lang.String getAttribute(int elementId, java.lang.String value)
elementId
.
public java.lang.String getClosingTagById(int elementId)
elementId
.
public int getIdByTag(java.lang.String tag)
tag
.
java.lang.NullPointerException
- if no value was found for tagpublic java.lang.String getCompleteTagById(int elementId, java.lang.String characters)
elementId
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |