Package edu.vt.middleware.ldap
Class AttributesFactory
- java.lang.Object
-
- edu.vt.middleware.ldap.AttributesFactory
-
public final class AttributesFactory extends java.lang.Object
AttributesFactory
provides convenience methods for creatingAttributes
andAttribute
.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.naming.directory.Attribute
createAttribute(java.lang.String name)
Creates a newAttribute
with the supplied name.static javax.naming.directory.Attribute
createAttribute(java.lang.String name, java.lang.Object value)
Creates a newAttribute
with the supplied name and value.static javax.naming.directory.Attribute
createAttribute(java.lang.String name, java.lang.Object[] values)
Creates a newAttribute
with the supplied name and values.static javax.naming.directory.Attributes
createAttributes(java.lang.String name)
Creates a newAttributes
with the supplied name.static javax.naming.directory.Attributes
createAttributes(java.lang.String name, boolean ignoreCase)
Creates a newAttributes
with the supplied name.static javax.naming.directory.Attributes
createAttributes(java.lang.String name, java.lang.Object value)
Creates a newAttributes
with the supplied name and value.static javax.naming.directory.Attributes
createAttributes(java.lang.String name, java.lang.Object[] values)
Creates a newAttributes
with the supplied name and values.static javax.naming.directory.Attributes
createAttributes(java.lang.String name, java.lang.Object[] values, boolean ignoreCase)
Creates a newAttributes
with the supplied name and values.static javax.naming.directory.Attributes
createAttributes(java.lang.String name, java.lang.Object value, boolean ignoreCase)
Creates a newAttributes
with the supplied name and value.
-
-
-
Method Detail
-
createAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name)
Creates a newAttributes
with the supplied name. Attributes will be case-insensitive.- Parameters:
name
- of the attribute- Returns:
Attributes
-
createAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, boolean ignoreCase)
Creates a newAttributes
with the supplied name.- Parameters:
name
- of the attributeignoreCase
- whether to ignore the case of attribute values- Returns:
Attributes
-
createAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, java.lang.Object value)
Creates a newAttributes
with the supplied name and value. Attributes will be case-insensitive.- Parameters:
name
- of the attributevalue
- of the attribute- Returns:
Attributes
-
createAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, java.lang.Object value, boolean ignoreCase)
Creates a newAttributes
with the supplied name and value.- Parameters:
name
- of the attributevalue
- of the attributeignoreCase
- whether to ignore the case of attribute values- Returns:
Attributes
-
createAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, java.lang.Object[] values)
Creates a newAttributes
with the supplied name and values. Attributes will be case-insensitive.- Parameters:
name
- of the attributevalues
- of the attribute- Returns:
Attributes
-
createAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, java.lang.Object[] values, boolean ignoreCase)
Creates a newAttributes
with the supplied name and values.- Parameters:
name
- of the attributevalues
- of the attributeignoreCase
- whether to ignore the case of attribute values- Returns:
Attributes
-
createAttribute
public static javax.naming.directory.Attribute createAttribute(java.lang.String name)
Creates a newAttribute
with the supplied name.- Parameters:
name
- of the attribute- Returns:
Attribute
-
createAttribute
public static javax.naming.directory.Attribute createAttribute(java.lang.String name, java.lang.Object value)
Creates a newAttribute
with the supplied name and value.- Parameters:
name
- of the attributevalue
- of the attribute- Returns:
Attribute
-
createAttribute
public static javax.naming.directory.Attribute createAttribute(java.lang.String name, java.lang.Object[] values)
Creates a newAttribute
with the supplied name and values.- Parameters:
name
- of the attributevalues
- of the attribute- Returns:
Attribute
-
-