1 26 27 package org.objectweb.util.browser.core.naming; 28 29 30 import org.objectweb.util.browser.api.Context; 31 import org.objectweb.util.browser.core.api.ExtendedEntry; 32 import org.objectweb.util.browser.core.api.Name; 33 34 35 36 37 38 44 public class DefaultEntry 45 extends AbstractEntry 46 implements ExtendedEntry { 47 48 54 55 private Object value_; 56 57 58 private Name name_; 59 60 61 private Context context_; 62 63 64 private Object wrappedObject_; 65 66 72 87 public DefaultEntry(Object value, Name name, Context context) { 88 value_ = value; 90 name_ = name; 91 context_ = context; 92 wrappedObject_ = value; 93 } 94 95 105 public DefaultEntry(Object value, Name name) { 106 this(value,name,null); 107 } 108 109 115 121 127 136 public Object getValue() { 137 return value_; 140 } 141 142 151 public Object getName() { 152 return name_.getOWId(); 153 } 154 155 167 public Context getContext() { 168 return context_; 169 } 170 171 176 public void setOWValue(Object value) { 177 value_ = value; 178 } 179 180 185 public Object getWrappedObject() { 186 return wrappedObject_; 187 } 188 189 192 public void setWrappedObject(Object wrapped) { 193 wrappedObject_ = wrapped; 194 } 195 196 } 197 | Popular Tags |