edu.vt.middleware.ldap
public final class AttributesFactory extends java.lang.Object
AttributesFactory
provides convenience methods for creating
Attributes
and Attribute
.Modifier and Type | Method and Description |
---|---|
static javax.naming.directory.Attribute |
createAttribute(java.lang.String name)
Creates a new
Attribute with the supplied name. |
static javax.naming.directory.Attribute |
createAttribute(java.lang.String name,
java.lang.Object value)
Creates a new
Attribute with the supplied name and value. |
static javax.naming.directory.Attribute |
createAttribute(java.lang.String name,
java.lang.Object[] values)
Creates a new
Attribute with the supplied name and values. |
static javax.naming.directory.Attributes |
createAttributes(java.lang.String name)
Creates a new
Attributes with the supplied name. |
static javax.naming.directory.Attributes |
createAttributes(java.lang.String name,
boolean ignoreCase)
Creates a new
Attributes with the supplied name. |
static javax.naming.directory.Attributes |
createAttributes(java.lang.String name,
java.lang.Object value)
Creates a new
Attributes with the supplied name and value. |
static javax.naming.directory.Attributes |
createAttributes(java.lang.String name,
java.lang.Object[] values)
Creates a new
Attributes with the supplied name and values. |
static javax.naming.directory.Attributes |
createAttributes(java.lang.String name,
java.lang.Object[] values,
boolean ignoreCase)
Creates a new
Attributes with the supplied name and values. |
static javax.naming.directory.Attributes |
createAttributes(java.lang.String name,
java.lang.Object value,
boolean ignoreCase)
Creates a new
Attributes with the supplied name and value. |
public static javax.naming.directory.Attributes createAttributes(java.lang.String name)
Attributes
with the supplied name. Attributes
will be case-insensitive.name
- of the attributeAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, boolean ignoreCase)
Attributes
with the supplied name.name
- of the attributeignoreCase
- whether to ignore the case of attribute valuesAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, java.lang.Object value)
Attributes
with the supplied name and value.
Attributes will be case-insensitive.name
- of the attributevalue
- of the attributeAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, java.lang.Object value, boolean ignoreCase)
Attributes
with the supplied name and value.name
- of the attributevalue
- of the attributeignoreCase
- whether to ignore the case of attribute valuesAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, java.lang.Object[] values)
Attributes
with the supplied name and values.
Attributes will be case-insensitive.name
- of the attributevalues
- of the attributeAttributes
public static javax.naming.directory.Attributes createAttributes(java.lang.String name, java.lang.Object[] values, boolean ignoreCase)
Attributes
with the supplied name and values.name
- of the attributevalues
- of the attributeignoreCase
- whether to ignore the case of attribute valuesAttributes
public static javax.naming.directory.Attribute createAttribute(java.lang.String name)
Attribute
with the supplied name.name
- of the attributeAttribute
public static javax.naming.directory.Attribute createAttribute(java.lang.String name, java.lang.Object value)
Attribute
with the supplied name and value.name
- of the attributevalue
- of the attributeAttribute
public static javax.naming.directory.Attribute createAttribute(java.lang.String name, java.lang.Object[] values)
Attribute
with the supplied name and values.name
- of the attributevalues
- of the attributeAttribute
Copyright © 2014. All Rights Reserved.