|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.norther.tammi.root.db.util.ClassDescriptorHandler
org.norther.tammi.root.ojb.util.OJBDescriptorHandler
public class OJBDescriptorHandler
An OJB descriptor handler.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.norther.tammi.root.db.util.ClassDescriptorHandler |
|---|
ClassDescriptorHandler.ClassTag, ClassDescriptorHandler.ElementTag, ClassDescriptorHandler.FieldTag |
| Field Summary | |
|---|---|
static RepositoryTags |
OJB_TAGS
All known XML tags are kept in this table. |
| Constructor Summary | |
|---|---|
OJBDescriptorHandler(LoaderMBean loader,
VariableRegistry registry)
Constructs a new handler. |
|
| Method Summary | |
|---|---|
void |
endElement(String uri,
String name,
String qName)
|
protected Class |
getBaseClass(String qName,
Attributes attrs)
Gets the base class. |
protected String |
getClassName(String qName,
Attributes attrs)
Gets the class name. |
protected String |
getFieldName(String qName,
Attributes attrs)
Gets the field name. |
protected String |
getMetaName(String qName,
Attributes attrs)
Gets the meta name. |
protected String |
getMetaValue(String qName,
Attributes attrs)
Gets the meta value. |
protected boolean |
isClassElement(String qName)
Checks whether a qualified element defines a class. |
protected boolean |
isFieldElement(String qName)
Checks whether a qualified element defines a field. |
protected boolean |
isMetaElement(String qName)
Checks whether a qualified element defines meta data. |
void |
startElement(String uri,
String name,
String qName,
Attributes attrs)
Handles a new class descriptor and registers a missing class as a dynamic Variable to VariableRegistry. |
| Methods inherited from class org.norther.tammi.root.db.util.ClassDescriptorHandler |
|---|
endDocument, getCurrentTag, getLoaderMBean, getVariableClassNames, getVariableRegistry, startDocument |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final RepositoryTags OJB_TAGS
| Constructor Detail |
|---|
public OJBDescriptorHandler(LoaderMBean loader,
VariableRegistry registry)
loader - the MBean loader.registry - the variable registry.| Method Detail |
|---|
public void startElement(String uri,
String name,
String qName,
Attributes attrs)
ClassDescriptorHandler
startElement in interface ContentHandlerstartElement in class ClassDescriptorHandleruri - URI to the XML file.name - the name of the element.qName - the qualified name of the element.attrs - attributes of the element.
public void endElement(String uri,
String name,
String qName)
endElement in interface ContentHandlerendElement in class ClassDescriptorHandlerprotected boolean isClassElement(String qName)
ClassDescriptorHandler
isClassElement in class ClassDescriptorHandlerqName - the qualified name.
protected boolean isFieldElement(String qName)
ClassDescriptorHandler
isFieldElement in class ClassDescriptorHandlerqName - the qualified name.
protected boolean isMetaElement(String qName)
ClassDescriptorHandler
isMetaElement in class ClassDescriptorHandlerqName - the qualified name.
protected Class getBaseClass(String qName,
Attributes attrs)
ClassDescriptorHandler
getBaseClass in class ClassDescriptorHandlerqName - the qualified name.attrs - the attributes.
protected String getClassName(String qName,
Attributes attrs)
ClassDescriptorHandler
getClassName in class ClassDescriptorHandlerqName - the qualified name.attrs - the attributes.
protected String getFieldName(String qName,
Attributes attrs)
ClassDescriptorHandler
getFieldName in class ClassDescriptorHandlerqName - the qualified name.attrs - the attributes.
protected String getMetaName(String qName,
Attributes attrs)
ClassDescriptorHandler
getMetaName in class ClassDescriptorHandlerqName - the qualified name.attrs - the attributes.
protected String getMetaValue(String qName,
Attributes attrs)
ClassDescriptorHandler
getMetaValue in class ClassDescriptorHandlerqName - the qualified name.attrs - the attributes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||