Class AttributesFactory


  • public final class AttributesFactory
    extends java.lang.Object
    AttributesFactory provides convenience methods for creating Attributes and Attribute.
    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 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createAttributes

        public static javax.naming.directory.Attributes createAttributes​(java.lang.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 javax.naming.directory.Attributes createAttributes​(java.lang.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 javax.naming.directory.Attributes createAttributes​(java.lang.String name,
                                                                         java.lang.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 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.
        Parameters:
        name - of the attribute
        value - of the attribute
        ignoreCase - 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 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 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.
        Parameters:
        name - of the attribute
        values - of the attribute
        ignoreCase - whether to ignore the case of attribute values
        Returns:
        Attributes
      • createAttribute

        public static javax.naming.directory.Attribute createAttribute​(java.lang.String name)
        Creates a new Attribute 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 new Attribute with the supplied name and value.
        Parameters:
        name - of the attribute
        value - of the attribute
        Returns:
        Attribute
      • createAttribute

        public static javax.naming.directory.Attribute createAttribute​(java.lang.String name,
                                                                       java.lang.Object[] values)
        Creates a new Attribute with the supplied name and values.
        Parameters:
        name - of the attribute
        values - of the attribute
        Returns:
        Attribute