1 package org.opencrx.kernel.document1.cci; 14 15 public class MediaImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements Media { 18 19 public MediaImpl( 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 30 public java.io.InputStream getContent( 31 ) { 32 return (java.io.InputStream )this.refGetValue("org:opencrx:kernel:document1:Media:content"); 33 } 34 35 public long getContent( 36 java.io.OutputStream stream, 37 long position 38 ) { 39 return this.refGetValue("org:opencrx:kernel:document1:Media:content", stream, position); 40 } 41 42 46 public void setContent( 47 java.io.InputStream newValue 48 ) { 49 this.refSetValue("org:opencrx:kernel:document1:Media:content", newValue); 50 } 51 52 public void setContent( 53 java.io.InputStream newValue, 54 long length 55 ) { 56 this.refSetValue("org:opencrx:kernel:document1:Media:content", newValue, length); 57 } 58 59 public Long getContentLength ( 63 ) { 64 return (Long )this.refGetValue("contentLength", 0); 65 } 66 protected void setContentLength( 70 Long newValue 71 ) { 72 refSetValue("org:opencrx:kernel:document1:Media:contentLength", 0, newValue); 73 } 74 75 public String getContentMimeType ( 79 ) { 80 return (String )this.refGetValue("contentMimeType", 0); 81 } 82 public void setContentMimeType( 86 String newValue 87 ) { 88 refSetValue("org:opencrx:kernel:document1:Media:contentMimeType", 0, newValue); 89 } 90 91 public String getContentName ( 95 ) { 96 return (String )this.refGetValue("contentName", 0); 97 } 98 public void setContentName( 102 String newValue 103 ) { 104 refSetValue("org:opencrx:kernel:document1:Media:contentName", 0, newValue); 105 } 106 107 public String getDescription ( 111 ) { 112 return (String )this.refGetValue("description", 0); 113 } 114 public void setDescription( 118 String newValue 119 ) { 120 refSetValue("org:opencrx:kernel:document1:Media:description", 0, newValue); 121 } 122 123 public java.util.Date getCreatedAt( 127 ) { 128 return getCreatedAt(0); 129 } 130 131 protected java.util.Date getCreatedAt( 132 int index 133 ) { 134 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:createdAt", index); 135 } 136 137 protected void setCreatedAt( 141 java.util.Date newValue 142 ) { 143 setCreatedAt(0, newValue); 144 } 145 146 protected void setCreatedAt( 147 int index, 148 java.util.Date newValue 149 ) { 150 refSetValue("org:openmdx:base:BasicObject:createdAt", index, newValue); 151 } 152 public java.util.Set getCreatedBy ( 156 ) { 157 return (java.util.Set )this.refGetValue("createdBy"); 158 } 159 protected void setCreatedBy( 163 java.util.Set newValue 164 ) { 165 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 166 } 167 168 protected void setCreatedBy( 169 String [] newValue 170 ) { 171 refSetValue("org:openmdx:base:BasicObject:createdBy", newValue); 172 } 173 174 public java.util.Date getModifiedAt( 178 ) { 179 return getModifiedAt(0); 180 } 181 182 protected java.util.Date getModifiedAt( 183 int index 184 ) { 185 return (java.util.Date )this.refGetValue("org:openmdx:base:BasicObject:modifiedAt", index); 186 } 187 188 protected void setModifiedAt( 192 java.util.Date newValue 193 ) { 194 setModifiedAt(0, newValue); 195 } 196 197 protected void setModifiedAt( 198 int index, 199 java.util.Date newValue 200 ) { 201 refSetValue("org:openmdx:base:BasicObject:modifiedAt", index, newValue); 202 } 203 public java.util.Set getModifiedBy ( 207 ) { 208 return (java.util.Set )this.refGetValue("modifiedBy"); 209 } 210 protected void setModifiedBy( 214 java.util.Set newValue 215 ) { 216 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 217 } 218 219 protected void setModifiedBy( 220 String [] newValue 221 ) { 222 refSetValue("org:openmdx:base:BasicObject:modifiedBy", newValue); 223 } 224 225 protected void setContext( 229 java.util.List newValue 230 ) { 231 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 232 } 233 234 protected void setContext( 235 org.openmdx.base.cci.Context[] newValue 236 ) { 237 refSetValue("org:openmdx:base:ContextCapable:context", newValue); 238 } 239 240 public org.openmdx.base.cci.Context getContext( 244 String id 245 ) { 246 return (org.openmdx.base.cci.Context)refGetValue( 247 "org:openmdx:base:ContextCapable:context", 248 id 249 ); 250 } 251 252 public java.util.Collection getContext( 256 ) { 257 return (java.util.Collection )refGetValue( 258 "org:openmdx:base:ContextCapable:context" 259 ); 260 } 261 262 protected void addContext ( 266 String id, 267 org.openmdx.base.cci.Context newValue 268 ) { 269 refAddValue( 270 "org:openmdx:base:ContextCapable:context", 271 id, 272 newValue 273 ); 274 } 275 276 protected void addContext ( 280 org.openmdx.base.cci.Context newValue 281 ) { 282 refAddValue( 283 "org:openmdx:base:ContextCapable:context", 284 newValue 285 ); 286 } 287 288 protected void removeContext ( 292 String id 293 ) { 294 refRemoveValue( 295 "org:openmdx:base:ContextCapable:context", 296 id 297 ); 298 } 299 300 public String getIdentity( 304 ) { 305 return getIdentity(0); 306 } 307 308 protected String getIdentity( 309 int index 310 ) { 311 return (String )this.refGetValue("org:openmdx:base:ExtentCapable:identity", index); 312 } 313 314 protected void setIdentity( 318 String newValue 319 ) { 320 setIdentity(0, newValue); 321 } 322 323 protected void setIdentity( 324 int index, 325 String newValue 326 ) { 327 refSetValue("org:openmdx:base:ExtentCapable:identity", index, newValue); 328 } 329 protected void setView( 333 java.util.List newValue 334 ) { 335 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 336 } 337 338 protected void setView( 339 org.openmdx.compatibility.view1.cci.View[] newValue 340 ) { 341 refSetValue("org:openmdx:compatibility:view1:ViewCapable:view", newValue); 342 } 343 344 public org.openmdx.compatibility.view1.cci.View getView( 348 String namespace 349 ) { 350 return (org.openmdx.compatibility.view1.cci.View)refGetValue( 351 "org:openmdx:compatibility:view1:ViewCapable:view", 352 namespace 353 ); 354 } 355 356 public java.util.Collection getView( 360 ) { 361 return (java.util.Collection )refGetValue( 362 "org:openmdx:compatibility:view1:ViewCapable:view" 363 ); 364 } 365 366 public java.util.List getView( 367 org.openmdx.compatibility.view1.cci.ViewFilter filter 368 ) { 369 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 370 "org:openmdx:compatibility:view1:ViewCapable:view" 371 )).toList(filter); 372 } 373 374 protected void addView ( 378 String namespace, 379 org.openmdx.compatibility.view1.cci.View newValue 380 ) { 381 refAddValue( 382 "org:openmdx:compatibility:view1:ViewCapable:view", 383 namespace, 384 newValue 385 ); 386 } 387 388 protected void addView ( 392 org.openmdx.compatibility.view1.cci.View newValue 393 ) { 394 refAddValue( 395 "org:openmdx:compatibility:view1:ViewCapable:view", 396 newValue 397 ); 398 } 399 400 protected void removeView ( 404 String namespace 405 ) { 406 refRemoveValue( 407 "org:openmdx:compatibility:view1:ViewCapable:view", 408 namespace 409 ); 410 } 411 412 } 416 | Popular Tags |