LDAP Classes
Implements Java LDAP

com.novell.ldap.util
Class ValueXMLhandler

java.lang.Object
  extended bycom.novell.ldap.util.LDAPXMLHandler
      extended bycom.novell.ldap.util.ValueXMLhandler

public class ValueXMLhandler
extends LDAPXMLHandler

This class provides the implementation of the LDAPXMLHandler for the tag of DSML.

See Also:
LDAPXMLHandler

Constructor Summary
ValueXMLhandler(LDAPXMLHandler parent)
          This constructor creates the ValueXMLHandler with the tagname as 'value'.
ValueXMLhandler(java.lang.String tagname, LDAPXMLHandler parent)
          This constructor makes no assumption about the tagname and allows the user to specify the same.
 
Method Summary
protected  void endElement()
          This method is used to signal the end of Element.
protected  void handleAttributes(org.xml.sax.Attributes attributes)
          This method is used to handle the Attributes associated with this Element.
static java.lang.String newLine(int indentTabs)
          This mehod supports for adding indentation to the XML document written during XML serialization.
static void parseInput(java.lang.String whole, java.lang.StringBuffer buffer)
          This mehod separates whitespaces in non-text nodes during XML de-serialization.
 
Methods inherited from class com.novell.ldap.util.LDAPXMLHandler
addValue, getName, getObject, getParent, getValue, initHandler, setchildelement, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueXMLhandler

public ValueXMLhandler(LDAPXMLHandler parent)
This constructor creates the ValueXMLHandler with the tagname as 'value'.

Parameters:
parent - Parent LDAPXMLHandler.

ValueXMLhandler

public ValueXMLhandler(java.lang.String tagname,
                       LDAPXMLHandler parent)
This constructor makes no assumption about the tagname and allows the user to specify the same. Used specifically by LDAPControl

Parameters:
parent - Parent LDAPXMLHandler.
tagname - String name of the XML element to process.
Method Detail

endElement

protected void endElement()
Description copied from class: LDAPXMLHandler
This method is used to signal the end of Element. It is expected that most of the implementation of this class would overide is method. and create the Objects from the deserialize data obtained so far.

Overrides:
endElement in class LDAPXMLHandler

handleAttributes

protected void handleAttributes(org.xml.sax.Attributes attributes)
                         throws org.xml.sax.SAXException
Description copied from class: LDAPXMLHandler
This method is used to handle the Attributes associated with this Element. It is expected that most of the implementation of this class would overide is method and do the required processing of the elements.

Overrides:
handleAttributes in class LDAPXMLHandler
Parameters:
attributes - Attributes found with this element.
Throws:
org.xml.sax.SAXException - When the specific mandatory element is not found, so as to stop the processing.

parseInput

public static void parseInput(java.lang.String whole,
                              java.lang.StringBuffer buffer)
This mehod separates whitespaces in non-text nodes during XML de-serialization. The whitespaces are added in non-text nodes because of XML doc written during Serialization needs to be stored with proper indentation.

Parameters:
whole - The XML String with whitespaces in non-text nodes read from stream during de-serialization
buffer - StringBuffer which holds the resulting string after removal of unwanted whitespaces in non-text nodes

newLine

public static java.lang.String newLine(int indentTabs)
This mehod supports for adding indentation to the XML document written during XML serialization.

Parameters:
indentTabs - The integer specifying the number of indentation tabs

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000