Package edu.vt.middleware.ldap
Class AttributesFactory
- java.lang.Object
-
- edu.vt.middleware.ldap.AttributesFactory
-
public final class AttributesFactory extends java.lang.ObjectAttributesFactoryprovides convenience methods for creatingAttributesandAttribute.- 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.AttributecreateAttribute(java.lang.String name)Creates a newAttributewith the supplied name.static javax.naming.directory.AttributecreateAttribute(java.lang.String name, java.lang.Object value)Creates a newAttributewith the supplied name and value.static javax.naming.directory.AttributecreateAttribute(java.lang.String name, java.lang.Object[] values)Creates a newAttributewith the supplied name and values.static javax.naming.directory.AttributescreateAttributes(java.lang.String name)Creates a newAttributeswith the supplied name.static javax.naming.directory.AttributescreateAttributes(java.lang.String name, boolean ignoreCase)Creates a newAttributeswith the supplied name.static javax.naming.directory.AttributescreateAttributes(java.lang.String name, java.lang.Object value)Creates a newAttributeswith the supplied name and value.static javax.naming.directory.AttributescreateAttributes(java.lang.String name, java.lang.Object[] values)Creates a newAttributeswith the supplied name and values.static javax.naming.directory.AttributescreateAttributes(java.lang.String name, java.lang.Object[] values, boolean ignoreCase)Creates a newAttributeswith the supplied name and values.static javax.naming.directory.AttributescreateAttributes(java.lang.String name, java.lang.Object value, boolean ignoreCase)Creates a newAttributeswith the supplied name and value.
-
-
-
Method Detail
-
createAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name)
Creates a newAttributeswith 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 newAttributeswith 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 newAttributeswith 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 newAttributeswith 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 newAttributeswith 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 newAttributeswith 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 newAttributewith 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 newAttributewith 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 newAttributewith the supplied name and values.- Parameters:
name- of the attributevalues- of the attribute- Returns:
Attribute
-
-