|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.util.LDAPXMLHandler
public class LDAPXMLHandler
This class is used to handle the deserialization events emitted by SAXEventMultiplexer. It is a variation of SAXEvents Handler, simplied for accessing specific required events only.
SAXEventMultiplexer
Field Summary | |
---|---|
private static int |
CHILDELEMENT
|
private java.lang.String |
elementName
|
private static int |
END
|
private static int |
INIT
|
private java.util.HashMap |
m_handler_map
|
private LDAPXMLHandler |
parenthandler
|
private java.lang.Object |
resultantObject
|
private static int |
START
|
private int |
state
|
private java.lang.String |
value
|
Constructor Summary | |
---|---|
LDAPXMLHandler(java.lang.String ElementName,
LDAPXMLHandler parent)
Default Constructor with element name for this Handler and parent LDAPXMLHandler to be processed. |
Method Summary | |
---|---|
protected void |
addValue(java.lang.String tag,
java.lang.Object value)
This method defines the generic adapter to be used by child elements to return the values of the processed Child Elements. |
protected void |
endElement()
This method is used to signal the end of Element. |
protected java.lang.String |
getName()
This method returns the Name of the Element to be handled by this LDAPXMLHandler. |
java.lang.Object |
getObject()
This method returns the deserialize Object generated by this class. |
protected LDAPXMLHandler |
getParent()
Returns the Parent LDAPXMLHandler. |
protected java.lang.String |
getValue()
This method returns the Value stored in this element. |
protected void |
handleAttributes(org.xml.sax.Attributes attributes)
This method is used to handle the Attributes associated with this Element. |
protected void |
initHandler()
This method is used to initialize the Handler. |
(package private) LDAPXMLHandler |
nextHandler(java.lang.String childelementName)
This method is used to access the child element's LDAPXMLHandler. |
protected void |
setchildelement(LDAPXMLHandler handler)
Sets the Handler for the Child LDAPXMLHandler, it expects only one handler for each code base. |
protected void |
setObject(java.lang.Object data)
This method is used to set the Deserialized Object and it also calls the parent LDAPXMLHandler (if not null), returning the value using addValue() |
(package private) void |
startElement()
This method is called when a new element controlled by this handler is found. |
(package private) void |
value(java.lang.StringBuffer buf)
This is used to handle the processing of the characters for the specific xml tags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String elementName
private java.lang.String value
private LDAPXMLHandler parenthandler
private java.util.HashMap m_handler_map
private int state
private static final int INIT
private static final int START
private static final int CHILDELEMENT
private static final int END
private java.lang.Object resultantObject
Constructor Detail |
---|
public LDAPXMLHandler(java.lang.String ElementName, LDAPXMLHandler parent)
ElementName
- String name of the XML element to process.parent
- LDAPXMLHandler , which is the parent of this Element.Method Detail |
---|
protected LDAPXMLHandler getParent()
LDAPXMLHandler nextHandler(java.lang.String childelementName)
childelementName
- The element name for the xml element.
final void startElement()
endElement()
final void value(java.lang.StringBuffer buf)
buf
- StringBuffer containing all the chars contained in this tag.protected final java.lang.String getName()
protected final java.lang.String getValue()
protected final void setchildelement(LDAPXMLHandler handler)
handler
- This handler for specific child element.protected void addValue(java.lang.String tag, java.lang.Object value)
tag
- String XML tag.value
- Object deserialized value for the specific tag.protected void initHandler()
protected void endElement()
protected void handleAttributes(org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
attributes
- Attributes found with this element.
org.xml.sax.SAXException
- When the specific mandatory element is not found, so
as to stop the processing.public final java.lang.Object getObject()
protected final void setObject(java.lang.Object data)
data
- Object data.addValue(String, Object)
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |