1 26 27 package org.objectweb.util.browser.core.naming; 28 29 import org.objectweb.util.browser.api.Entry; 30 import org.objectweb.util.browser.api.Context; 31 32 39 public class InitialEntry 40 implements Entry 41 { 42 43 44 protected String name_; 45 46 47 protected Object value_; 48 49 50 protected int level_; 51 52 57 public InitialEntry(String name, Object value){ 58 this(name, value, 0); 59 } 60 61 67 public InitialEntry(String name, Object value, int level){ 68 name_ = name; 69 value_ = value; 70 level_ = level; 71 } 72 73 77 public void setName(String name){ 78 name_ = name; 79 } 80 81 public Object getName(){ 82 return name_; 83 } 84 85 public Object getValue(){ 86 return value_; 87 } 88 89 public Context getContext(){ 90 return null; 91 } 92 93 public int getLevel(){ 94 return level_; 95 } 96 } | Popular Tags |