jdk/src/java.naming/share/classes/javax/naming/directory/SearchResult.java
changeset 32029 a5538163e144
parent 25859 3317bb8137f4
equal deleted inserted replaced
32028:c5afcee4ff51 32029:a5538163e144
    51 
    51 
    52     /**
    52     /**
    53       * Constructs a search result using the result's name, its bound object, and
    53       * Constructs a search result using the result's name, its bound object, and
    54       * its attributes.
    54       * its attributes.
    55       *<p>
    55       *<p>
    56       * <tt>getClassName()</tt> will return the class name of <tt>obj</tt>
    56       * {@code getClassName()} will return the class name of {@code obj}
    57       * (or null if <tt>obj</tt> is null) unless the class name has been
    57       * (or null if {@code obj} is null) unless the class name has been
    58       * explicitly set using <tt>setClassName()</tt>.
    58       * explicitly set using {@code setClassName()}.
    59       *
    59       *
    60       * @param name The non-null name of the search item. It is relative
    60       * @param name The non-null name of the search item. It is relative
    61       *             to the <em>target context</em> of the search (which is
    61       *             to the <em>target context</em> of the search (which is
    62       * named by the first parameter of the <code>search()</code> method)
    62       * named by the first parameter of the <code>search()</code> method)
    63       *
    63       *
    74 
    74 
    75     /**
    75     /**
    76       * Constructs a search result using the result's name, its bound object, and
    76       * Constructs a search result using the result's name, its bound object, and
    77       * its attributes, and whether the name is relative.
    77       * its attributes, and whether the name is relative.
    78       *<p>
    78       *<p>
    79       * <tt>getClassName()</tt> will return the class name of <tt>obj</tt>
    79       * {@code getClassName()} will return the class name of {@code obj}
    80       * (or null if <tt>obj</tt> is null) unless the class name has been
    80       * (or null if {@code obj} is null) unless the class name has been
    81       * explicitly set using <tt>setClassName()</tt>
    81       * explicitly set using {@code setClassName()}
    82       *
    82       *
    83       * @param name The non-null name of the search item.
    83       * @param name The non-null name of the search item.
    84       * @param obj  The object bound to name. Can be null.
    84       * @param obj  The object bound to name. Can be null.
    85       * @param attrs The attributes that were requested to be returned with
    85       * @param attrs The attributes that were requested to be returned with
    86       * this search item. Cannot be null.
    86       * this search item. Cannot be null.
   104       * @param name The non-null name of the search item. It is relative
   104       * @param name The non-null name of the search item. It is relative
   105       *             to the <em>target context</em> of the search (which is
   105       *             to the <em>target context</em> of the search (which is
   106       * named by the first parameter of the <code>search()</code> method)
   106       * named by the first parameter of the <code>search()</code> method)
   107       *
   107       *
   108       * @param  className       The possibly null class name of the object
   108       * @param  className       The possibly null class name of the object
   109       *         bound to <tt>name</tt>. If null, the class name of <tt>obj</tt> is
   109       *         bound to {@code name}. If null, the class name of {@code obj} is
   110       *         returned by <tt>getClassName()</tt>. If <tt>obj</tt> is also null,
   110       *         returned by {@code getClassName()}. If {@code obj} is also null,
   111       *         <tt>getClassName()</tt> will return null.
   111       *         {@code getClassName()} will return null.
   112       * @param obj  The object bound to name. Can be null.
   112       * @param obj  The object bound to name. Can be null.
   113       * @param attrs The attributes that were requested to be returned with
   113       * @param attrs The attributes that were requested to be returned with
   114       * this search item. Cannot be null.
   114       * this search item. Cannot be null.
   115       * @see javax.naming.NameClassPair#setClassName
   115       * @see javax.naming.NameClassPair#setClassName
   116       * @see javax.naming.NameClassPair#getClassName
   116       * @see javax.naming.NameClassPair#getClassName
   125       * Constructs a search result using the result's name, its class name,
   125       * Constructs a search result using the result's name, its class name,
   126       * its bound object, its attributes, and whether the name is relative.
   126       * its bound object, its attributes, and whether the name is relative.
   127       *
   127       *
   128       * @param name The non-null name of the search item.
   128       * @param name The non-null name of the search item.
   129       * @param  className       The possibly null class name of the object
   129       * @param  className       The possibly null class name of the object
   130       *         bound to <tt>name</tt>. If null, the class name of <tt>obj</tt> is
   130       *         bound to {@code name}. If null, the class name of {@code obj} is
   131       *         returned by <tt>getClassName()</tt>. If <tt>obj</tt> is also null,
   131       *         returned by {@code getClassName()}. If {@code obj} is also null,
   132       *         <tt>getClassName()</tt> will return null.
   132       *         {@code getClassName()} will return null.
   133       * @param obj  The object bound to name. Can be null.
   133       * @param obj  The object bound to name. Can be null.
   134       * @param attrs The attributes that were requested to be returned with
   134       * @param attrs The attributes that were requested to be returned with
   135       * this search item. Cannot be null.
   135       * this search item. Cannot be null.
   136       * @param isRelative true if <code>name</code> is relative
   136       * @param isRelative true if <code>name</code> is relative
   137       *         to the target context of the search (which is named by
   137       *         to the target context of the search (which is named by