|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.sax.HandlerEntry
Each instance of this class is responsible for handling a single XML namesapce, or element type, All packet and extension types are represented by SubHandlers, and each subhandler per connection has an HandlerEntry.
Constructor Summary | |
HandlerEntry(java.lang.String propPrefix,
java.lang.String xmlns,
java.lang.String element)
Creates a new HandlerEntry instance. |
Method Summary | |
java.lang.String |
getBuilder()
get the name of the class which is used to build instances of the product |
java.lang.String |
getDescription()
get the textual description of what this element or namespace is used for |
java.lang.String |
getElement()
gets the element associated with this entry, if any |
java.lang.String |
getHandler()
get the name of the handler which is used to process XML and create instances of the product |
SubHandler |
getHandlerClass()
get an instance of the handler for this entry - if none exists so far, one will be instantiated. |
java.lang.String |
getPrefix()
get the Prefix associated with this entry in the .properties file |
java.lang.String |
getProduct()
get the name of the class which is the product of the builder and handler, if only one class is the result |
java.lang.String |
getXMLNS()
gets the XML namespace of associated with this entry, if any |
int |
hashCode()
returns a hash value for entry into a HashTable |
SubHandler |
newInstance()
creates a new instance of the handler for this entry, independant of the internal one-item cache. |
void |
setBuilder(java.lang.String b)
set the name of the class which is used to build instances of the product |
void |
setDescription(java.lang.String desc)
set the textual description of what this element or namespace is used for |
void |
setHandler(java.lang.String handler)
set the name of the handler which is used to process XML and create instances of the product |
void |
setProduct(java.lang.String product)
set the name of the class which is the product of the builder and handler, if only one class is the result |
java.lang.String |
toString()
used to output a debug of the data in the Entry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HandlerEntry(java.lang.String propPrefix, java.lang.String xmlns, java.lang.String element)
HandlerEntry
instance.
propPrefix
- a String
with the prefix in the
.properties filexmlns
- a String
with the XML namespace of the
element, if any.element
- a String
with the element name, if anyMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
String
with some data on this Entrypublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getXMLNS()
String
value, or null if no namespacepublic java.lang.String getElement()
String
value, or null if no elementpublic java.lang.String getPrefix()
String
valuepublic java.lang.String getBuilder()
String
value, or null if none neededpublic void setBuilder(java.lang.String b)
b
- a String
value, or null if none neededpublic java.lang.String getHandler()
String
valuepublic void setHandler(java.lang.String handler)
handler
- a String
valuepublic java.lang.String getProduct()
String
value, or null if more than one
possiblepublic void setProduct(java.lang.String product)
product
- a String
value, or null if more than one
possiblepublic java.lang.String getDescription()
String
descriptionpublic void setDescription(java.lang.String desc)
desc
- a String
descriptionpublic SubHandler getHandlerClass() throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
SubHandler
value
java.lang.ClassNotFoundException
- if the class does not exist
java.lang.InstantiationException
- if there is a problem creating
the class
java.lang.IllegalAccessException
- if there is an access problem
with the class (such as it not being declared public)public SubHandler newInstance() throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
SubHandler
java.lang.ClassNotFoundException
- if the class does not exist
java.lang.InstantiationException
- if there is a problem creating
the class
java.lang.IllegalAccessException
- if there is an access problem
with the class (such as it not being declared public)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |