edu.vt.middleware.ldap
Class AttributesFactory

java.lang.Object
  extended by edu.vt.middleware.ldap.AttributesFactory

public final class AttributesFactory
extends Object

AttributesFactory provides convenience methods for creating Attributes and Attribute.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

Method Summary
static Attribute createAttribute(String name)
          Creates a new Attribute with the supplied name.
static Attribute createAttribute(String name, Object value)
          Creates a new Attribute with the supplied name and value.
static Attribute createAttribute(String name, Object[] values)
          Creates a new Attribute with the supplied name and values.
static Attributes createAttributes(String name)
          Creates a new Attributes with the supplied name.
static Attributes createAttributes(String name, boolean ignoreCase)
          Creates a new Attributes with the supplied name.
static Attributes createAttributes(String name, Object value)
          Creates a new Attributes with the supplied name and value.
static Attributes createAttributes(String name, Object[] values)
          Creates a new Attributes with the supplied name and values.
static Attributes createAttributes(String name, Object[] values, boolean ignoreCase)
          Creates a new Attributes with the supplied name and values.
static Attributes createAttributes(String name, Object value, boolean ignoreCase)
          Creates a new Attributes with the supplied name and value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createAttributes

public static Attributes createAttributes(String name)
Creates a new Attributes with the supplied name. 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 with the supplied name.

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 with the supplied name and value. 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 with the supplied name and value.

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 with the supplied name and values. 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 with the supplied name and values.

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 with the supplied name.

Parameters:
name - of the attribute
Returns:
Attribute

createAttribute

public static Attribute createAttribute(String name,
                                        Object value)
Creates a new Attribute with the supplied name and value.

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

createAttribute

public static Attribute createAttribute(String name,
                                        Object[] values)
Creates a new Attribute with the supplied name and values.

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


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