1 7 8 package javax.naming.directory; 9 10 import javax.naming.Binding ; 11 12 27 28 public class SearchResult extends Binding { 29 33 private Attributes attrs; 34 35 53 public SearchResult(String name, Object obj, Attributes attrs) { 54 super(name, obj); 55 this.attrs = attrs; 56 } 57 58 77 public SearchResult(String name, Object obj, Attributes attrs, 78 boolean isRelative) { 79 super(name, obj, isRelative); 80 this.attrs = attrs; 81 } 82 83 101 public SearchResult(String name, String className, 102 Object obj, Attributes attrs) { 103 super(name, className, obj); 104 this.attrs = attrs; 105 } 106 107 126 public SearchResult(String name, String className, Object obj, 127 Attributes attrs, boolean isRelative) { 128 super(name, className, obj, isRelative); 129 this.attrs = attrs; 130 } 131 132 138 public Attributes getAttributes() { 139 return attrs; 140 } 141 142 143 148 public void setAttributes(Attributes attrs) { 149 this.attrs = attrs; 150 } 152 153 154 164 public String toString() { 165 return super.toString() + ":" + getAttributes(); 166 } 167 168 171 private static final long serialVersionUID = -9158063327699723172L; 172 } 173 | Popular Tags |