OSDN Git Service

956c32cd502c6b02c25f85e3a9a40ff2e7de5d10
[pf3gnuchains/gcc-fork.git] / libjava / javax / naming / directory / SearchResult.java
1 /* Copyright (C) 2001  Free Software Foundation
2
3    This file is part of libgcj.
4
5 This software is copyrighted work licensed under the terms of the
6 Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
7 details.  */
8  
9 package javax.naming.directory;
10 import javax.naming.*;
11 import java.io.Serializable;
12  
13 /**
14  * @author Warren Levy <warrenl@redhat.com>
15  * @date June 13, 2001
16  */
17
18 public class SearchResult extends Binding
19 {
20   // Serialized fields.
21   private Attributes attrs;
22
23   public SearchResult(String name, Object obj, Attributes attrs)
24   {
25     super(name, obj);
26     this.attrs = attrs;
27   }
28
29   public SearchResult(String name, Object obj, Attributes attrs,
30                       boolean isRelative)
31   {
32     super(name, obj, isRelative);
33     this.attrs = attrs;
34   }
35
36   public SearchResult(String name, String className, Object obj,
37                       Attributes attrs)
38   {
39     super(name, className, obj);
40     this.attrs = attrs;
41   }
42
43   public SearchResult(String name, String className, Object obj,
44                       Attributes attrs, boolean isRelative)
45   {
46     super(name, className, obj, isRelative);
47     this.attrs = attrs;
48   }
49
50   public Attributes getAttributes()
51   {
52     return attrs;
53   }
54
55   public void setAttributes(Attributes attrs)
56   {
57     this.attrs = attrs;
58   }
59
60   public String toString()
61   {
62     return super.toString() + ":" + attrs.toString();
63   }
64 }