API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming.directory. SearchResult View Source
Author(s)
Rosanna Lee
Scott Seligman
Since
1.3
Version
1.10 05/11/17
Serial
Hierarchy
 Object
      NameClassPair
          Binding
              SearchResult
Implements
Subclasses
Description
public class SearchResult
  This class represents an item in the NamingEnumeration returned as a result of the DirContext.search() methods.
Constructors
public SearchResult (String name, Object obj, Attributes attrs)
  Constructs a search result using the result's name, its bound object, and its attributes.
public SearchResult (String name, Object obj, Attributes attrs, boolean isRelative)
  Constructs a search result using the result's name, its bound object, and its attributes, and whether the name is relative.
public SearchResult (String name, String className, Object obj, Attributes attrs)
  Constructs a search result using the result's name, its class name, its bound object, and its attributes.
public SearchResult (String name, String className, Object obj, Attributes attrs, boolean isRelative)
  Constructs a search result using the result's name, its class name, its bound object, its attributes, and whether the name is relative.
Methods
Hide/Show inherited methods
public Attributes getAttributes ()
  Retrieves the attributes in this search result.
public String getClassName () [Inherited From Binding]
  Retrieves the class name of the object bound to the name of this binding.
public String getName () [Inherited From NameClassPair]
  Retrieves the name of this binding.
public String getNameInNamespace () [Inherited From NameClassPair]
  Retrieves the full name of this binding.
public Object getObject () [Inherited From Binding]
  Retrieves the object bound to the name of this binding.
public boolean isRelative () [Inherited From NameClassPair]
  Determines whether the name of this binding is relative to the target context (which is named by the first parameter of the list() method).
public void setAttributes (Attributes attrs)
  Sets the attributes of this search result to attrs.
public void setClassName (String name) [Inherited From NameClassPair]
  Sets the class name of this binding.
public void setName (String name) [Inherited From NameClassPair]
  Sets the name of this binding.
public void setNameInNamespace (String fullName) [Inherited From NameClassPair]
  Sets the full name of this binding.
public void setObject (Object obj) [Inherited From Binding]
  Sets the object associated with this binding.
public void setRelative (boolean r) [Inherited From NameClassPair]
  Sets whether the name of this binding is relative to the target context (which is named by the first parameter of the list() method).
public String toString () [Overrides Binding]
  Generates the string representation of this SearchResult.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar