org.ldaptive.provider.jndi
Class AttributesFactory

java.lang.Object
  extended by org.ldaptive.provider.jndi.AttributesFactory

public final class AttributesFactory
extends Object

Provides convenience methods for creating jndi attributes and attribute objects.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Field Summary
static boolean DEFAULT_IGNORE_CASE
          Default ignore case value, value of this constant is true.
 
Method Summary
static Attribute createAttribute(String name)
          Creates a new attribute.
static Attribute createAttribute(String name, Object value)
          Creates a new attribute.
static Attribute createAttribute(String name, Object[] values)
          Creates a new attribute.
static Attributes createAttributes(String name)
          Creates a new attributes.
static Attributes createAttributes(String name, boolean ignoreCase)
          Creates a new attributes.
static Attributes createAttributes(String name, Object value)
          Creates a new attributes.
static Attributes createAttributes(String name, Object[] values)
          Creates a new attributes.
static Attributes createAttributes(String name, Object[] values, boolean ignoreCase)
          Creates a new attributes.
static Attributes createAttributes(String name, Object value, boolean ignoreCase)
          Creates a new attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_IGNORE_CASE

public static final boolean DEFAULT_IGNORE_CASE
Default ignore case value, value of this constant is true.

See Also:
Constant Field Values
Method Detail

createAttributes

public static Attributes createAttributes(String name)
Creates a new attributes. Attributes will be case-insensitive.

Parameters:
name - of the attribute
Returns:
attributes

createAttributes

public static Attributes createAttributes(String name,
                                          boolean ignoreCase)
Creates a new attributes.

Parameters:
name - of the attribute
ignoreCase - whether to ignore the case of attribute values
Returns:
attributes

createAttributes

public static Attributes createAttributes(String name,
                                          Object value)
Creates a new attributes. Attributes will be case-insensitive.

Parameters:
name - of the attribute
value - of the attribute
Returns:
attributes

createAttributes

public static Attributes createAttributes(String name,
                                          Object value,
                                          boolean ignoreCase)
Creates a new attributes.

Parameters:
name - of the attribute
value - of the attribute
ignoreCase - whether to ignore the case of attribute values
Returns:
attributes

createAttributes

public static Attributes createAttributes(String name,
                                          Object[] values)
Creates a new attributes. Attributes will be case-insensitive.

Parameters:
name - of the attribute
values - of the attribute
Returns:
attributes

createAttributes

public static Attributes createAttributes(String name,
                                          Object[] values,
                                          boolean ignoreCase)
Creates a new attributes.

Parameters:
name - of the attribute
values - of the attribute
ignoreCase - whether to ignore the case of attribute values
Returns:
attributes

createAttribute

public static Attribute createAttribute(String name)
Creates a new attribute.

Parameters:
name - of the attribute
Returns:
attribute

createAttribute

public static Attribute createAttribute(String name,
                                        Object value)
Creates a new attribute.

Parameters:
name - of the attribute
value - of the attribute
Returns:
attribute

createAttribute

public static Attribute createAttribute(String name,
                                        Object[] values)
Creates a new attribute.

Parameters:
name - of the attribute
values - of the attribute
Returns:
attribute


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.