1 package org.openmdx.base.cci; 14 15 public class ContextCapableImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements ContextCapable { 18 19 public ContextCapableImpl( 20 org.openmdx.base.accessor.generic.cci.Object_1_0 object, 21 javax.jmi.reflect.RefClass refClass 22 ) { 23 super(object, refClass); 24 } 25 26 protected void setContext( 30 java.util.List newValue 31 ) { 32 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 33 } 34 35 protected void setContext( 36 org.openmdx.base.cci.Context[] newValue 37 ) { 38 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 39 } 40 41 public org.openmdx.base.cci.Context getContext( 45 String id 46 ) { 47 return (org.openmdx.base.cci.Context)refGetValue( 48 "org:openmdx:base:ContextCapable:context", 49 id 50 ); 51 } 52 53 public java.util.Collection getContext( 57 ) { 58 return (java.util.Collection )refGetValue( 59 "org:openmdx:base:ContextCapable:context" 60 ); 61 } 62 63 protected void addContext ( 67 String id, 68 org.openmdx.base.cci.Context newValue 69 ) { 70 refAddValue( 71 "org:openmdx:base:ContextCapable:context", 72 id, 73 newValue 74 ); 75 } 76 77 protected void addContext ( 81 org.openmdx.base.cci.Context newValue 82 ) { 83 refAddValue( 84 "org:openmdx:base:ContextCapable:context", 85 newValue 86 ); 87 } 88 89 protected void removeContext ( 93 String id 94 ) { 95 refRemoveValue( 96 "org:openmdx:base:ContextCapable:context", 97 id 98 ); 99 } 100 101 } 105 | Popular Tags |