netscape.ldap.util

Class DSMLWriter

Implemented Interfaces:
Serializable

public class DSMLWriter
extends LDAPWriter

Class for outputting LDAP entries to a stream as DSML.
Version:
1.0

Field Summary

Fields inherited from class netscape.ldap.util.LDAPWriter

m_pw

Constructor Summary

DSMLWriter(PrintWriter pw)
Constructs a DSMLWriter object to output entries to a stream as DSML.

Method Summary

protected void
printAttribute(LDAPAttribute attr)
Print an attribute of an entry
protected void
printAttributeSchema(LDAPSchema schema)
Prints the attribute schema from a schema object schema schema elements
protected void
printEntryEnd(String dn)
Print epilogue to entry
protected void
printEntryStart(String dn)
Print prologue to entry
protected void
printEscapedValue(String prolog, String value, String epilog)
Print the element start, the value with escaping of special characters, and the element end
protected void
printObjectClassSchema(LDAPSchema schema)
Prints the object class schema from a schema object schema schema elements
void
printSchema(LDAPEntry entry)
Prints the schema from an entry containing subschema entry entry containing schema definitions
protected void
printString(String value)

Methods inherited from class netscape.ldap.util.LDAPWriter

getPrintableValue, printAttribute, printEntry, printEntryEnd, printEntryStart, printSchema

Constructor Details

DSMLWriter

public DSMLWriter(PrintWriter pw)
Constructs a DSMLWriter object to output entries to a stream as DSML.
Parameters:
pw - output stream

Method Details

printAttribute

protected void printAttribute(LDAPAttribute attr)
Print an attribute of an entry
Overrides:
printAttribute in interface LDAPWriter
Parameters:
attr - the attribute to format to the output stream

printAttributeSchema

protected void printAttributeSchema(LDAPSchema schema)
Prints the attribute schema from a schema object schema schema elements

printEntryEnd

protected void printEntryEnd(String dn)
Print epilogue to entry
Overrides:
printEntryEnd in interface LDAPWriter
Parameters:
dn - the DN of the entry

printEntryStart

protected void printEntryStart(String dn)
Print prologue to entry
Overrides:
printEntryStart in interface LDAPWriter
Parameters:
dn - the DN of the entry

printEscapedValue

protected void printEscapedValue(String prolog,
                                 String value,
                                 String epilog)
Print the element start, the value with escaping of special characters, and the element end
Parameters:
prolog - element start
value - value to be escaped
epilog - element end

printObjectClassSchema

protected void printObjectClassSchema(LDAPSchema schema)
Prints the object class schema from a schema object schema schema elements

printSchema

public void printSchema(LDAPEntry entry)
Prints the schema from an entry containing subschema entry entry containing schema definitions
Overrides:
printSchema in interface LDAPWriter

printString

protected void printString(String value)