Java Doc for SearchResult.java in  » 6.0-JDK-Core » naming » javax » naming » directory » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » naming » javax.naming.directory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.naming.Binding
   javax.naming.directory.SearchResult

SearchResult
public class SearchResult extends Binding (Code)
This class represents an item in the NamingEnumeration returned as a result of the DirContext.search() methods.

A SearchResult instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single SearchResult instance should lock the object.
author:
   Rosanna Lee
author:
   Scott Seligman
version:
   1.16 07/05/05
See Also:   DirContext.search
since:
   1.3




Constructor Summary
public  SearchResult(String name, Object obj, Attributes attrs)
     Constructs a search result using the result's name, its bound object, and its attributes.

getClassName() will return the class name of obj (or null if obj is null) unless the class name has been explicitly set using setClassName().

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.

getClassName() will return the class name of obj (or null if obj is null) unless the class name has been explicitly set using setClassName()
Parameters:
  name - The non-null name of the search item.
Parameters:
  obj - The object bound to name.

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.
Parameters:
  name - The non-null name of the search item.
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.
Parameters:
  name - The non-null name of the search item.
Parameters:
  className - The possibly null class name of the object bound to name.

Method Summary
public  AttributesgetAttributes()
     Retrieves the attributes in this search result. The non-null attributes in this search result.
public  voidsetAttributes(Attributes attrs)
     Sets the attributes of this search result to attrs.
Parameters:
  attrs - The non-null attributes to use.
public  StringtoString()
     Generates the string representation of this SearchResult. The string representation consists of the string representation of the binding and the string representation of this search result's attributes, separated by ':'. The contents of this string is useful for debugging and is not meant to be interpreted programmatically. The string representation of this SearchResult.


Constructor Detail
SearchResult
public SearchResult(String name, Object obj, Attributes attrs)(Code)
Constructs a search result using the result's name, its bound object, and its attributes.

getClassName() will return the class name of obj (or null if obj is null) unless the class name has been explicitly set using setClassName().
Parameters:
  name - The non-null name of the search item. It is relativeto the target context of the search (which is named by the first parameter of the search() method)
Parameters:
  obj - The object bound to name. Can be null.
Parameters:
  attrs - The attributes that were requested to be returned with this search item. Cannot be null.
See Also:   javax.naming.NameClassPair.setClassName
See Also:   javax.naming.NameClassPair.getClassName




SearchResult
public SearchResult(String name, Object obj, Attributes attrs, boolean isRelative)(Code)
Constructs a search result using the result's name, its bound object, and its attributes, and whether the name is relative.

getClassName() will return the class name of obj (or null if obj is null) unless the class name has been explicitly set using setClassName()
Parameters:
  name - The non-null name of the search item.
Parameters:
  obj - The object bound to name. Can be null.
Parameters:
  attrs - The attributes that were requested to be returned with this search item. Cannot be null.
Parameters:
  isRelative - true if name is relativeto the target context of the search (which is named bythe first parameter of the search() method);false if name is a URL string.
See Also:   javax.naming.NameClassPair.setClassName
See Also:   javax.naming.NameClassPair.getClassName




SearchResult
public SearchResult(String name, String className, Object obj, Attributes attrs)(Code)
Constructs a search result using the result's name, its class name, its bound object, and its attributes.
Parameters:
  name - The non-null name of the search item. It is relativeto the target context of the search (which is named by the first parameter of the search() method)
Parameters:
  className - The possibly null class name of the object bound to name. If null, the class name of obj isreturned by getClassName(). If obj is also null,getClassName() will return null.
Parameters:
  obj - The object bound to name. Can be null.
Parameters:
  attrs - The attributes that were requested to be returned with this search item. Cannot be null.
See Also:   javax.naming.NameClassPair.setClassName
See Also:   javax.naming.NameClassPair.getClassName



SearchResult
public SearchResult(String name, String className, Object obj, Attributes attrs, boolean isRelative)(Code)
Constructs a search result using the result's name, its class name, its bound object, its attributes, and whether the name is relative.
Parameters:
  name - The non-null name of the search item.
Parameters:
  className - The possibly null class name of the object bound to name. If null, the class name of obj isreturned by getClassName(). If obj is also null,getClassName() will return null.
Parameters:
  obj - The object bound to name. Can be null.
Parameters:
  attrs - The attributes that were requested to be returned with this search item. Cannot be null.
Parameters:
  isRelative - true if name is relativeto the target context of the search (which is named bythe first parameter of the search() method);false if name is a URL string.
See Also:   javax.naming.NameClassPair.setClassName
See Also:   javax.naming.NameClassPair.getClassName




Method Detail
getAttributes
public Attributes getAttributes()(Code)
Retrieves the attributes in this search result. The non-null attributes in this search result. Can be empty.
See Also:   SearchResult.setAttributes



setAttributes
public void setAttributes(Attributes attrs)(Code)
Sets the attributes of this search result to attrs.
Parameters:
  attrs - The non-null attributes to use. Can be empty.
See Also:   SearchResult.getAttributes



toString
public String toString()(Code)
Generates the string representation of this SearchResult. The string representation consists of the string representation of the binding and the string representation of this search result's attributes, separated by ':'. The contents of this string is useful for debugging and is not meant to be interpreted programmatically. The string representation of this SearchResult. Cannot be null.



Methods inherited from javax.naming.Binding
public String getClassName()(Code)(Java Doc)
public Object getObject()(Code)(Java Doc)
public void setObject(Object obj)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.