public abstract class BaseXMLTagInterpreterFactory extends java.lang.Object implements XMLTagInterpreterFactory
Constructor and Description |
---|
BaseXMLTagInterpreterFactory() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
getClassNameRegistry()
Returns the internal mapping of tag names to their corresponding
interpreter classes.
|
protected java.util.Map<java.lang.String,java.lang.Class<XMLTagInterpreter>> |
getClassRegistry()
Returns the internal mapping of tag names to their corresponding
interpreter class names.
|
protected java.lang.Class<XMLTagInterpreter> |
getInterpreterClassFor(java.lang.String tagName)
Returns a tag interpreter class associated with the given tag name.
|
XMLTagInterpreter |
getInterpreterFor(java.lang.String tagName)
Returns an instance of the tag interpreter class associated that
is associated to the specified tag name.
|
protected void |
registerTagInterpreter(java.lang.String tagName,
java.lang.String className)
Register a tag interpreter class name for a particular tag name.
|
protected void |
setClassNameRegistry(java.util.Map<java.lang.String,java.lang.String> aValue)
Sets the internal mapping of tag names to their corresponding
interpreter classes.
|
protected void |
setClassRegistry(java.util.Map<java.lang.String,java.lang.Class<XMLTagInterpreter>> aMap)
Sets the internal mapping of tag names to their corresponding
interpreter class names.
|
public XMLTagInterpreter getInterpreterFor(java.lang.String tagName) throws org.xml.sax.SAXException
getInterpreterFor
in interface XMLTagInterpreterFactory
tagName
- The name of the tag, the interpreter is looked up for.org.xml.sax.SAXException
protected void registerTagInterpreter(java.lang.String tagName, java.lang.String className)
tagName
- The name of the tag, the interpreter class is responsible for.className
- The full class name (with package !) for the interpreter class.protected java.lang.Class<XMLTagInterpreter> getInterpreterClassFor(java.lang.String tagName) throws org.xml.sax.SAXException
tagName
- The name of the tag, the interpreter is searched for.org.xml.sax.SAXException
protected java.util.Map<java.lang.String,java.lang.String> getClassNameRegistry()
protected void setClassNameRegistry(java.util.Map<java.lang.String,java.lang.String> aValue)
protected java.util.Map<java.lang.String,java.lang.Class<XMLTagInterpreter>> getClassRegistry()
protected void setClassRegistry(java.util.Map<java.lang.String,java.lang.Class<XMLTagInterpreter>> aMap)