| javax.naming.Binding javax.naming.directory.SearchResult
SearchResult | public class SearchResult extends Binding (Code) | | SearchResult returned from a search on a directory context and
is provided by a NamingEnumeration .
This class is not thread-safe.
|
Constructor Summary | |
public | SearchResult(String s, Object o, Attributes attributes) Creates a new instance of SearchResult with name
s , bound object o and an
attributes
Parameters: s - the name of this result. | public | SearchResult(String s, Object o, Attributes attributes, boolean flag) Creates a new instance of SearchResult with name
s , bound object o , an
attributes and a boolean flag
Parameters: s - the name of this result. | public | SearchResult(String s, String s1, Object o, Attributes attributes) Creates a new instance of SearchResult with name
s , class name s1 bound object
o and an attributes
Parameters: s - the name of this result. | public | SearchResult(String s, String s1, Object o, Attributes attributes, boolean flag) Creates a new instance of SearchResult with name
s , class name s1 bound object
o , an attributes and a boolean
flag
Parameters: s - the name of this result. |
Method Summary | |
public Attributes | getAttributes() Gets attributes of this search result
an attributes. | public void | setAttributes(Attributes attributes) Sets attributes of this search result
Parameters: attributes - an attributes. | public String | toString() Return a concatenation of the toString() value for the
binding, and the toString() values for the attributes,
joined by colons. |
SearchResult | public SearchResult(String s, Object o, Attributes attributes)(Code) | | Creates a new instance of SearchResult with name
s , bound object o and an
attributes
Parameters: s - the name of this result. s should be relativeto the target context for the search that produces thisresult. Parameters: o - bound object of this result. The class of o isthe value that will be returned byBinding.getClassName() for this search result,except where setClassName() is used to set adifferent value. If o is null,getClassName() will return null. Parameters: attributes - The attributes should not be null. If there areno attributes for this search result, this parameter should bean empty collection. |
SearchResult | public SearchResult(String s, Object o, Attributes attributes, boolean flag)(Code) | | Creates a new instance of SearchResult with name
s , bound object o , an
attributes and a boolean flag
Parameters: s - the name of this result. A true value of flag means s is relative to the target context ofthe search that produces this result. A false value offlag means that s is a URLstring. Parameters: o - bound object of this result. The class of o isthe value that will be returned byBinding.getClassName() for this search result,except where setClassName() is used to set adifferent value. If o is null,getClassName() will return null. Parameters: attributes - The attributes should not be null. If there areno attributes for this search result, this parameter should bean empty collection. Parameters: flag - A true value of flag means s isrelative to the target context of the search that producesthis result. A false value of flag means thats is a URL string. |
SearchResult | public SearchResult(String s, String s1, Object o, Attributes attributes)(Code) | | Creates a new instance of SearchResult with name
s , class name s1 bound object
o and an attributes
Parameters: s - the name of this result. s should be relativeto the target context for the search that produces thisresult. Parameters: s1 - If s1 is not null, it specifies the name of theclass of the bound object o . Passing a nullvalue for s1 will not stopBinding.getClassName() returning the name ofthe class of o . Parameters: o - bound object of this result. The class of o isthe value that will be returned byBinding.getClassName() for this search result,except where setClassName() is used to set adifferent value. If o is null,getClassName() will return null. Parameters: attributes - The attributes should not be null. If there areno attributes for this search result, this parameter should bean empty collection. |
SearchResult | public SearchResult(String s, String s1, Object o, Attributes attributes, boolean flag)(Code) | | Creates a new instance of SearchResult with name
s , class name s1 bound object
o , an attributes and a boolean
flag
Parameters: s - the name of this result. A true value of flag means s is relative to the target context ofthe search that produces this result. A false value offlag means that s is a URLstring. Parameters: s1 - If s1 is not null, it specifies the name of theclass of the bound object o . Passing a nullvalue for s1 will not stopBinding.getClassName() returning the name ofthe class of o . Parameters: o - bound object of this result. The class of o isthe value that will be returned byBinding.getClassName() for this search result,except where setClassName() is used to set adifferent value. If o is null,getClassName() will return null. Parameters: attributes - The attributes should not be null. If there areno attributes for this search result, this parameter should bean empty collection. Parameters: flag - A true value of flag means s isrelative to the target context of the search that producesthis result. A false value of flag means thats is a URL string. |
getAttributes | public Attributes getAttributes()(Code) | | Gets attributes of this search result
an attributes. It should not be null. |
setAttributes | public void setAttributes(Attributes attributes)(Code) | | Sets attributes of this search result
Parameters: attributes - an attributes. It should not be null. |
toString | public String toString()(Code) | | Return a concatenation of the toString() value for the
binding, and the toString() values for the attributes,
joined by colons.
string representation of this search result |
|
|