Class LinkedHashMapEntry

    • Constructor Detail

      • LinkedHashMapEntry

        public LinkedHashMapEntry()
        Creates an entry with an empty (root) distinguished name and no attributes.
      • LinkedHashMapEntry

        public LinkedHashMapEntry​(Dn name)
        Creates an empty entry using the provided distinguished name and no attributes.
        Parameters:
        name - The distinguished name of this entry.
        Throws:
        NullPointerException - If name was null.
      • LinkedHashMapEntry

        public LinkedHashMapEntry​(String name)
        Creates an empty entry using the provided distinguished name decoded using the default schema.
        Parameters:
        name - The distinguished name of this entry.
        Throws:
        LocalizedIllegalArgumentException - If name could not be decoded using the default schema.
        NullPointerException - If name was null.
      • LinkedHashMapEntry

        public LinkedHashMapEntry​(String... ldifLines)
        Creates a new entry using the provided lines of LDIF decoded using the default schema.
        Parameters:
        ldifLines - Lines of LDIF containing the an LDIF add change record or an LDIF entry record.
        Throws:
        LocalizedIllegalArgumentException - If ldifLines was empty, or contained invalid LDIF, or could not be decoded using the default schema.
        NullPointerException - If ldifLines was null .
    • Method Detail

      • shallowCopyOfEntry

        public static LinkedHashMapEntry shallowCopyOfEntry​(Entry entry)
        Creates an entry having the same distinguished name, attributes, and object classes of the provided entry. This constructor performs a shallow copy of entry and will not copy the attributes contained in entry.

        A deep copy constructor is provided by deepCopyOfEntry(Entry)

        Parameters:
        entry - The entry to be copied.
        Returns:
        A shallow copy of entry.
        Throws:
        NullPointerException - If entry was null.
        See Also:
        deepCopyOfEntry(Entry)