Class DnAttributeEntryHandler

    • Field Detail

      • HASH_CODE_SEED

        private static final int HASH_CODE_SEED
        hash code seed.
        See Also:
        Constant Field Values
      • dnAttributeName

        private String dnAttributeName
        Attribute name for the entry dn.
      • addIfExists

        private boolean addIfExists
        Whether to add the entry dn if an attribute of the same name exists.
    • Constructor Detail

      • DnAttributeEntryHandler

        public DnAttributeEntryHandler()
        Default constructor.
      • DnAttributeEntryHandler

        public DnAttributeEntryHandler​(String attrName,
                                       boolean add)
        Creates a new DN attribute entry handler.
        Parameters:
        attrName - to add the DN to
        add - whether to add the DN if the attribute exists
    • Method Detail

      • getDnAttributeName

        public String getDnAttributeName()
        Returns the DN attribute name.
        Returns:
        DN attribute name
      • setDnAttributeName

        public void setDnAttributeName​(String name)
        Sets the DN attribute name.
        Parameters:
        name - of the DN attribute
      • isAddIfExists

        public boolean isAddIfExists()
        Returns whether to add the entryDN if an attribute of the same name exists.
        Returns:
        whether to add the entryDN if an attribute of the same name exists
      • setAddIfExists

        public void setAddIfExists​(boolean b)
        Sets whether to add the entryDN if an attribute of the same name exists.
        Parameters:
        b - whether to add the entryDN if an attribute of the same name exists