Class LDIFRecord

java.lang.Object
netscape.ldap.util.LDIFRecord
All Implemented Interfaces:
Serializable

public class LDIFRecord extends Object implements Serializable
An object of this class represents an LDIF record in an LDIF file (or in LDIF data). A record can contain a list of attributes (which describes an entry) or a list of modifications (which decribes the changes that need to be made to an entry). Each record also has a distinguished name.

You can get an LDIFRecord object from LDIF data by calling the nextRecord method of the LDIF object holding the data.

If you are constructing a new LDIFRecord object, you can specify the content of the record in one of the following ways:

  • To create a record that specifies an entry, use an object of the LDIFAttributeContent class.
  • To create a record that specifies a modification to be made, use an object of one of the following classes:
    • Use LDIFAddContent to add a new entry.
    • Use LDIFModifyContent to modify an entry.
    • Use LDIFDeleteContent to delete an entry.

Version:
1.0
See Also: