001 package railo.runtime.type.cfc; 002 003 import java.util.Iterator; 004 import java.util.Map; 005 import java.util.Set; 006 007 import railo.commons.lang.types.RefBoolean; 008 import railo.runtime.ComponentPro; 009 import railo.runtime.ComponentScope; 010 import railo.runtime.Page; 011 import railo.runtime.PageContext; 012 import railo.runtime.PageSource; 013 import railo.runtime.component.Property; 014 import railo.runtime.dump.DumpData; 015 import railo.runtime.dump.DumpProperties; 016 import railo.runtime.exp.PageException; 017 import railo.runtime.type.Struct; 018 import railo.runtime.type.dt.DateTime; 019 020 public abstract class ComponentProProxy implements ComponentPro { 021 022 public abstract ComponentPro getComponentPro(); 023 024 025 /** 026 * @see railo.runtime.Component#getJavaAccessClass(railo.commons.lang.types.RefBoolean) 027 */ 028 public Class getJavaAccessClass(RefBoolean isNew) throws PageException { 029 return getComponentPro().getJavaAccessClass(isNew); 030 } 031 032 /** 033 * @see railo.runtime.Component#getDisplayName() 034 */ 035 public String getDisplayName() { 036 return getComponentPro().getDisplayName(); 037 } 038 039 /** 040 * @see railo.runtime.Component#getExtends() 041 */ 042 public String getExtends() { 043 return getComponentPro().getExtends(); 044 } 045 046 /** 047 * @see railo.runtime.Component#getHint() 048 */ 049 public String getHint() { 050 return getComponentPro().getHint(); 051 } 052 053 /** 054 * @see railo.runtime.Component#getName() 055 */ 056 public String getName() { 057 return getComponentPro().getName(); 058 } 059 060 /** 061 * @see railo.runtime.Component#getCallName() 062 */ 063 public String getCallName() { 064 return getComponentPro().getCallName(); 065 } 066 067 /** 068 * @see railo.runtime.Component#getAbsName() 069 */ 070 public String getAbsName() { 071 return getComponentPro().getAbsName(); 072 } 073 074 /** 075 * @see railo.runtime.Component#getOutput() 076 */ 077 public boolean getOutput() { 078 return getComponentPro().getOutput(); 079 } 080 081 /** 082 * @see railo.runtime.Component#instanceOf(java.lang.String) 083 */ 084 public boolean instanceOf(String type) { 085 return getComponentPro().instanceOf(type); 086 } 087 088 /** 089 * @see railo.runtime.Component#isValidAccess(int) 090 */ 091 public boolean isValidAccess(int access) { 092 return getComponentPro().isValidAccess(access); 093 } 094 095 /** 096 * @see railo.runtime.Component#getMetaData(railo.runtime.PageContext) 097 */ 098 public Struct getMetaData(PageContext pc) throws PageException { 099 return getComponentPro().getMetaData(pc); 100 } 101 102 /** 103 * @see railo.runtime.Component#call(railo.runtime.PageContext, java.lang.String, java.lang.Object[]) 104 */ 105 public Object call(PageContext pc, String key, Object[] args) 106 throws PageException { 107 return getComponentPro().call(pc, key, args); 108 } 109 110 /** 111 * @see railo.runtime.Component#callWithNamedValues(railo.runtime.PageContext, java.lang.String, railo.runtime.type.Struct) 112 */ 113 public Object callWithNamedValues(PageContext pc, String key, Struct args) 114 throws PageException { 115 return getComponentPro().callWithNamedValues(pc, key, args); 116 } 117 118 /** 119 * @see railo.runtime.Component#getPage() 120 */ 121 public Page getPage() { 122 return getComponentPro().getPage(); 123 } 124 125 /** 126 * @see railo.runtime.type.Collection#size() 127 */ 128 public int size() { 129 return getComponentPro().size(); 130 } 131 132 /** 133 * @see railo.runtime.type.Collection#keys() 134 */ 135 public Key[] keys() { 136 return getComponentPro().keys(); 137 } 138 139 /** 140 * @see railo.runtime.type.Collection#keysAsString() 141 */ 142 public String[] keysAsString() { 143 return getComponentPro().keysAsString(); 144 } 145 146 /** 147 * @see railo.runtime.type.Collection#remove(railo.runtime.type.Collection.Key) 148 */ 149 public Object remove(Key key) throws PageException { 150 return getComponentPro().remove(key); 151 } 152 153 /** 154 * @see railo.runtime.type.Collection#removeEL(railo.runtime.type.Collection.Key) 155 */ 156 public Object removeEL(Key key) { 157 return getComponentPro().removeEL(key); 158 } 159 160 /** 161 * @see railo.runtime.type.Collection#clear() 162 */ 163 public void clear() { 164 getComponentPro().clear(); 165 } 166 167 /** 168 * @see railo.runtime.type.Collection#get(java.lang.String) 169 */ 170 public Object get(String key) throws PageException { 171 return getComponentPro().get(key); 172 } 173 174 /** 175 * @see railo.runtime.type.Collection#get(railo.runtime.type.Collection.Key) 176 */ 177 public Object get(Key key) throws PageException { 178 return getComponentPro().get(key); 179 } 180 181 /** 182 * @see railo.runtime.type.Collection#get(java.lang.String, java.lang.Object) 183 */ 184 public Object get(String key, Object defaultValue) { 185 return getComponentPro().get(key, defaultValue); 186 } 187 188 /** 189 * @see railo.runtime.type.Collection#get(railo.runtime.type.Collection.Key, java.lang.Object) 190 */ 191 public Object get(Key key, Object defaultValue) { 192 return getComponentPro().get(key, defaultValue); 193 } 194 195 /** 196 * @see railo.runtime.type.Collection#set(java.lang.String, java.lang.Object) 197 */ 198 public Object set(String key, Object value) throws PageException { 199 return getComponentPro().set(key, value); 200 } 201 202 /** 203 * @see railo.runtime.type.Collection#set(railo.runtime.type.Collection.Key, java.lang.Object) 204 */ 205 public Object set(Key key, Object value) throws PageException { 206 return getComponentPro().set(key, value); 207 } 208 209 /** 210 * @see railo.runtime.type.Collection#setEL(java.lang.String, java.lang.Object) 211 */ 212 public Object setEL(String key, Object value) { 213 return getComponentPro().setEL(key, value); 214 } 215 216 /** 217 * @see railo.runtime.type.Collection#setEL(railo.runtime.type.Collection.Key, java.lang.Object) 218 */ 219 public Object setEL(Key key, Object value) { 220 return getComponentPro().setEL(key, value); 221 } 222 223 224 /** 225 * @see railo.runtime.type.Collection#containsKey(java.lang.String) 226 */ 227 public boolean containsKey(String key) { 228 return getComponentPro().containsKey(key); 229 } 230 231 /** 232 * @see railo.runtime.type.Collection#containsKey(railo.runtime.type.Collection.Key) 233 */ 234 public boolean containsKey(Key key) { 235 return getComponentPro().containsKey(key); 236 } 237 238 /** 239 * @see railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int, railo.runtime.dump.DumpProperties) 240 */ 241 public DumpData toDumpData(PageContext pageContext, int maxlevel, 242 DumpProperties properties) { 243 return getComponentPro().toDumpData(pageContext, maxlevel, properties); 244 } 245 246 /** 247 * @see railo.runtime.type.Iteratorable#keyIterator() 248 */ 249 public Iterator keyIterator() { 250 return getComponentPro().keyIterator(); 251 } 252 253 /** 254 * @see railo.runtime.type.Iteratorable#valueIterator() 255 */ 256 public Iterator valueIterator() { 257 return getComponentPro().valueIterator(); 258 } 259 260 /** 261 * @see railo.runtime.type.Iteratorable#iterator() 262 */ 263 public Iterator iterator() { 264 return getComponentPro().iterator(); 265 } 266 267 /** 268 * @see railo.runtime.op.Castable#castToString() 269 */ 270 public String castToString() throws PageException { 271 return getComponentPro().castToString(); 272 } 273 274 /** 275 * @see railo.runtime.op.Castable#castToString(java.lang.String) 276 */ 277 public String castToString(String defaultValue) { 278 return getComponentPro().castToString(defaultValue); 279 } 280 281 /** 282 * @see railo.runtime.op.Castable#castToBooleanValue() 283 */ 284 public boolean castToBooleanValue() throws PageException { 285 return getComponentPro().castToBooleanValue(); 286 } 287 288 /** 289 * @see railo.runtime.op.Castable#castToBoolean(java.lang.Boolean) 290 */ 291 public Boolean castToBoolean(Boolean defaultValue) { 292 return getComponentPro().castToBoolean(defaultValue); 293 } 294 295 /** 296 * @see railo.runtime.op.Castable#castToDoubleValue() 297 */ 298 public double castToDoubleValue() throws PageException { 299 return getComponentPro().castToDoubleValue(); 300 } 301 302 /** 303 * @see railo.runtime.op.Castable#castToDoubleValue(double) 304 */ 305 public double castToDoubleValue(double defaultValue) { 306 return getComponentPro().castToDoubleValue(defaultValue); 307 } 308 309 /** 310 * @see railo.runtime.op.Castable#castToDateTime() 311 */ 312 public DateTime castToDateTime() throws PageException { 313 return getComponentPro().castToDateTime(); 314 } 315 316 /** 317 * @see railo.runtime.op.Castable#castToDateTime(railo.runtime.type.dt.DateTime) 318 */ 319 public DateTime castToDateTime(DateTime defaultValue) { 320 return getComponentPro().castToDateTime(defaultValue); 321 } 322 323 /** 324 * @see railo.runtime.op.Castable#compareTo(java.lang.String) 325 */ 326 public int compareTo(String str) throws PageException { 327 return getComponentPro().compareTo(str); 328 } 329 330 /** 331 * @see railo.runtime.op.Castable#compareTo(boolean) 332 */ 333 public int compareTo(boolean b) throws PageException { 334 return getComponentPro().compareTo(b); 335 } 336 337 /** 338 * @see railo.runtime.op.Castable#compareTo(double) 339 */ 340 public int compareTo(double d) throws PageException { 341 return getComponentPro().compareTo(d); 342 } 343 344 /** 345 * @see railo.runtime.op.Castable#compareTo(railo.runtime.type.dt.DateTime) 346 */ 347 public int compareTo(DateTime dt) throws PageException { 348 return getComponentPro().compareTo(dt); 349 } 350 351 /** 352 * @see java.util.Map#containsKey(java.lang.Object) 353 */ 354 public boolean containsKey(Object key) { 355 return getComponentPro().containsKey(key); 356 } 357 358 /** 359 * @see java.util.Map#containsValue(java.lang.Object) 360 */ 361 public boolean containsValue(Object value) { 362 return getComponentPro().containsValue(value); 363 } 364 365 /** 366 * @see java.util.Map#entrySet() 367 */ 368 public Set entrySet() { 369 return getComponentPro().entrySet(); 370 } 371 372 /** 373 * @see java.util.Map#get(java.lang.Object) 374 */ 375 public Object get(Object key) { 376 return getComponentPro().get(key); 377 } 378 379 /** 380 * @see java.util.Map#isEmpty() 381 */ 382 public boolean isEmpty() { 383 return getComponentPro().isEmpty(); 384 } 385 386 /** 387 * @see java.util.Map#keySet() 388 */ 389 public Set keySet() { 390 return getComponentPro().keySet(); 391 } 392 393 /** 394 * @see java.util.Map#put(java.lang.Object, java.lang.Object) 395 */ 396 public Object put(Object key, Object value) { 397 return getComponentPro().put(key, value); 398 } 399 400 /** 401 * @see java.util.Map#putAll(java.util.Map) 402 */ 403 public void putAll(Map m) { 404 getComponentPro().putAll(m); 405 } 406 407 /** 408 * @see java.util.Map#remove(java.lang.Object) 409 */ 410 public Object remove(Object key) { 411 return getComponentPro().remove(key); 412 } 413 414 /** 415 * @see java.util.Map#values() 416 */ 417 public java.util.Collection values() { 418 return getComponentPro().values(); 419 } 420 421 /** 422 * @see railo.runtime.type.Objects#get(railo.runtime.PageContext, java.lang.String, java.lang.Object) 423 */ 424 public Object get(PageContext pc, String key, Object defaultValue) { 425 return getComponentPro().get(pc, key, defaultValue); 426 } 427 428 /** 429 * @see railo.runtime.type.Objects#get(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object) 430 */ 431 public Object get(PageContext pc, Key key, Object defaultValue) { 432 return getComponentPro().get(pc, key, defaultValue); 433 } 434 435 /** 436 * @see railo.runtime.type.Objects#get(railo.runtime.PageContext, java.lang.String) 437 */ 438 public Object get(PageContext pc, String key) throws PageException { 439 return getComponentPro().get(pc, key); 440 } 441 442 /** 443 * @see railo.runtime.type.Objects#get(railo.runtime.PageContext, railo.runtime.type.Collection.Key) 444 */ 445 public Object get(PageContext pc, Key key) throws PageException { 446 return getComponentPro().get(pc, key); 447 } 448 449 /** 450 * @see railo.runtime.type.Objects#set(railo.runtime.PageContext, java.lang.String, java.lang.Object) 451 */ 452 public Object set(PageContext pc, String propertyName, Object value) 453 throws PageException { 454 return getComponentPro().set(pc, propertyName, value); 455 } 456 457 /** 458 * @see railo.runtime.type.Objects#set(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object) 459 */ 460 public Object set(PageContext pc, Key propertyName, Object value) 461 throws PageException { 462 return getComponentPro().set(pc, propertyName, value); 463 } 464 465 /** 466 * @see railo.runtime.type.Objects#setEL(railo.runtime.PageContext, java.lang.String, java.lang.Object) 467 */ 468 public Object setEL(PageContext pc, String propertyName, Object value) { 469 return getComponentPro().setEL(pc, propertyName, value); 470 } 471 472 /** 473 * @see railo.runtime.type.Objects#setEL(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object) 474 */ 475 public Object setEL(PageContext pc, Key propertyName, Object value) { 476 return getComponentPro().setEL(pc, propertyName, value); 477 } 478 479 /** 480 * @see railo.runtime.type.Objects#call(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object[]) 481 */ 482 public Object call(PageContext pc, Key methodName, Object[] arguments) 483 throws PageException { 484 return getComponentPro().call(pc, methodName, arguments); 485 } 486 487 /** 488 * @see railo.runtime.type.Objects#callWithNamedValues(railo.runtime.PageContext, railo.runtime.type.Collection.Key, railo.runtime.type.Struct) 489 */ 490 public Object callWithNamedValues(PageContext pc, Key methodName, 491 Struct args) throws PageException { 492 return getComponentPro().callWithNamedValues(pc, methodName, args); 493 } 494 495 /** 496 * @see railo.runtime.type.Objects#isInitalized() 497 */ 498 public boolean isInitalized() { 499 return getComponentPro().isInitalized(); 500 } 501 502 /** 503 * @see railo.runtime.ComponentPro#getProperties(boolean) 504 */ 505 public Property[] getProperties(boolean onlyPeristent) { 506 return getComponentPro().getProperties(onlyPeristent); 507 } 508 509 /** 510 * @see railo.runtime.ComponentPro#setProperty(railo.runtime.component.Property) 511 */ 512 public void setProperty(Property property) throws PageException { 513 getComponentPro().setProperty(property); 514 } 515 516 /** 517 * @see railo.runtime.ComponentPro#getComponentScope() 518 */ 519 public ComponentScope getComponentScope() { 520 return getComponentPro().getComponentScope(); 521 } 522 523 /** 524 * @see railo.runtime.ComponentPro#contains(railo.runtime.PageContext, railo.runtime.type.Collection.Key) 525 */ 526 public boolean contains(PageContext pc, Key key) { 527 return getComponentPro().contains(pc, key); 528 } 529 530 /** 531 * @see railo.runtime.ComponentPro#getPageSource() 532 */ 533 public PageSource getPageSource() { 534 return getComponentPro().getPageSource(); 535 } 536 537 /** 538 * @see railo.runtime.ComponentPro#getBaseAbsName() 539 */ 540 public String getBaseAbsName() { 541 return getComponentPro().getBaseAbsName(); 542 } 543 544 /** 545 * @see railo.runtime.ComponentPro#isBasePeristent() 546 */ 547 public boolean isBasePeristent() { 548 return getComponentPro().isBasePeristent(); 549 } 550 551 /** 552 * @see railo.runtime.ComponentPro#equalTo(java.lang.String) 553 */ 554 public boolean equalTo(String type) { 555 return getComponentPro().equalTo(type); 556 } 557 558 /** 559 * @see java.lang.Object#clone() 560 */ 561 public Object clone(){ 562 return duplicate(true); 563 } 564 }