1 25 26 package org.objectweb.jonathan.apis.kernel; 27 28 import java.util.Enumeration ; 29 import java.io.Serializable ; 30 31 34 public interface Context extends Component { 35 36 46 Element addElement(Name name, Class type, Object value) 47 throws JonathanException; 48 49 63 Element addElement(Name name, Class type, int value) throws JonathanException; 64 65 75 Element addElement(Name name, Component component) 76 throws JonathanException; 77 78 86 88 89 111 Element addElement(String name,Class type,Object value,char separator) 112 throws JonathanException; 113 114 135 Element addElement(String name,Component component,char separator) 136 throws JonathanException; 137 138 139 161 Element addElement(String name,Class type,int value,char separator) 162 throws JonathanException ; 163 164 165 public Context addOrGetContext(String _name,char _separator) throws JonathanException; 166 167 public Context addOrGetContext(Name _name) throws JonathanException; 168 169 188 Element getElement(String name,char separator); 189 190 209 Component getComponent(String name,char separator); 210 211 230 Object getValue(String name,char separator); 231 232 245 int getIntValue(Name name); 246 247 248 267 int getIntValue(String name,char separator); 268 269 273 Enumeration getElements(); 274 275 281 void release(); 282 283 284 287 void acquire(); 288 289 290 293 void reset(); 294 295 296 301 Context setScope(Context scope); 302 303 307 Context getScope(); 308 309 313 Object NO_VALUE = new NO_VALUE(); 314 315 final class NO_VALUE implements Serializable { 316 317 private NO_VALUE(){} 318 319 public String toString() { 320 return "NO VALUE"; 321 } 322 } 323 } 324 | Popular Tags |