/railo-java/railo-core/src/railo/runtime/type/cfc/ComponentProProxy.java

https://github.com/grapestack/railo · Java · 564 lines · 254 code · 82 blank · 228 comment · 0 complexity · cc7304555e9bb5a28c34a9fe930a9f7a MD5 · raw file

  1. package railo.runtime.type.cfc;
  2. import java.util.Iterator;
  3. import java.util.Map;
  4. import java.util.Set;
  5. import railo.commons.lang.types.RefBoolean;
  6. import railo.runtime.ComponentPro;
  7. import railo.runtime.ComponentScope;
  8. import railo.runtime.Page;
  9. import railo.runtime.PageContext;
  10. import railo.runtime.PageSource;
  11. import railo.runtime.component.Property;
  12. import railo.runtime.dump.DumpData;
  13. import railo.runtime.dump.DumpProperties;
  14. import railo.runtime.exp.PageException;
  15. import railo.runtime.type.Struct;
  16. import railo.runtime.type.dt.DateTime;
  17. public abstract class ComponentProProxy implements ComponentPro {
  18. public abstract ComponentPro getComponentPro();
  19. /**
  20. * @see railo.runtime.Component#getJavaAccessClass(railo.commons.lang.types.RefBoolean)
  21. */
  22. public Class getJavaAccessClass(RefBoolean isNew) throws PageException {
  23. return getComponentPro().getJavaAccessClass(isNew);
  24. }
  25. /**
  26. * @see railo.runtime.Component#getDisplayName()
  27. */
  28. public String getDisplayName() {
  29. return getComponentPro().getDisplayName();
  30. }
  31. /**
  32. * @see railo.runtime.Component#getExtends()
  33. */
  34. public String getExtends() {
  35. return getComponentPro().getExtends();
  36. }
  37. /**
  38. * @see railo.runtime.Component#getHint()
  39. */
  40. public String getHint() {
  41. return getComponentPro().getHint();
  42. }
  43. /**
  44. * @see railo.runtime.Component#getName()
  45. */
  46. public String getName() {
  47. return getComponentPro().getName();
  48. }
  49. /**
  50. * @see railo.runtime.Component#getCallName()
  51. */
  52. public String getCallName() {
  53. return getComponentPro().getCallName();
  54. }
  55. /**
  56. * @see railo.runtime.Component#getAbsName()
  57. */
  58. public String getAbsName() {
  59. return getComponentPro().getAbsName();
  60. }
  61. /**
  62. * @see railo.runtime.Component#getOutput()
  63. */
  64. public boolean getOutput() {
  65. return getComponentPro().getOutput();
  66. }
  67. /**
  68. * @see railo.runtime.Component#instanceOf(java.lang.String)
  69. */
  70. public boolean instanceOf(String type) {
  71. return getComponentPro().instanceOf(type);
  72. }
  73. /**
  74. * @see railo.runtime.Component#isValidAccess(int)
  75. */
  76. public boolean isValidAccess(int access) {
  77. return getComponentPro().isValidAccess(access);
  78. }
  79. /**
  80. * @see railo.runtime.Component#getMetaData(railo.runtime.PageContext)
  81. */
  82. public Struct getMetaData(PageContext pc) throws PageException {
  83. return getComponentPro().getMetaData(pc);
  84. }
  85. /**
  86. * @see railo.runtime.Component#call(railo.runtime.PageContext, java.lang.String, java.lang.Object[])
  87. */
  88. public Object call(PageContext pc, String key, Object[] args)
  89. throws PageException {
  90. return getComponentPro().call(pc, key, args);
  91. }
  92. /**
  93. * @see railo.runtime.Component#callWithNamedValues(railo.runtime.PageContext, java.lang.String, railo.runtime.type.Struct)
  94. */
  95. public Object callWithNamedValues(PageContext pc, String key, Struct args)
  96. throws PageException {
  97. return getComponentPro().callWithNamedValues(pc, key, args);
  98. }
  99. /**
  100. * @see railo.runtime.Component#getPage()
  101. */
  102. public Page getPage() {
  103. return getComponentPro().getPage();
  104. }
  105. /**
  106. * @see railo.runtime.type.Collection#size()
  107. */
  108. public int size() {
  109. return getComponentPro().size();
  110. }
  111. /**
  112. * @see railo.runtime.type.Collection#keys()
  113. */
  114. public Key[] keys() {
  115. return getComponentPro().keys();
  116. }
  117. /**
  118. * @see railo.runtime.type.Collection#keysAsString()
  119. */
  120. public String[] keysAsString() {
  121. return getComponentPro().keysAsString();
  122. }
  123. /**
  124. * @see railo.runtime.type.Collection#remove(railo.runtime.type.Collection.Key)
  125. */
  126. public Object remove(Key key) throws PageException {
  127. return getComponentPro().remove(key);
  128. }
  129. /**
  130. * @see railo.runtime.type.Collection#removeEL(railo.runtime.type.Collection.Key)
  131. */
  132. public Object removeEL(Key key) {
  133. return getComponentPro().removeEL(key);
  134. }
  135. /**
  136. * @see railo.runtime.type.Collection#clear()
  137. */
  138. public void clear() {
  139. getComponentPro().clear();
  140. }
  141. /**
  142. * @see railo.runtime.type.Collection#get(java.lang.String)
  143. */
  144. public Object get(String key) throws PageException {
  145. return getComponentPro().get(key);
  146. }
  147. /**
  148. * @see railo.runtime.type.Collection#get(railo.runtime.type.Collection.Key)
  149. */
  150. public Object get(Key key) throws PageException {
  151. return getComponentPro().get(key);
  152. }
  153. /**
  154. * @see railo.runtime.type.Collection#get(java.lang.String, java.lang.Object)
  155. */
  156. public Object get(String key, Object defaultValue) {
  157. return getComponentPro().get(key, defaultValue);
  158. }
  159. /**
  160. * @see railo.runtime.type.Collection#get(railo.runtime.type.Collection.Key, java.lang.Object)
  161. */
  162. public Object get(Key key, Object defaultValue) {
  163. return getComponentPro().get(key, defaultValue);
  164. }
  165. /**
  166. * @see railo.runtime.type.Collection#set(java.lang.String, java.lang.Object)
  167. */
  168. public Object set(String key, Object value) throws PageException {
  169. return getComponentPro().set(key, value);
  170. }
  171. /**
  172. * @see railo.runtime.type.Collection#set(railo.runtime.type.Collection.Key, java.lang.Object)
  173. */
  174. public Object set(Key key, Object value) throws PageException {
  175. return getComponentPro().set(key, value);
  176. }
  177. /**
  178. * @see railo.runtime.type.Collection#setEL(java.lang.String, java.lang.Object)
  179. */
  180. public Object setEL(String key, Object value) {
  181. return getComponentPro().setEL(key, value);
  182. }
  183. /**
  184. * @see railo.runtime.type.Collection#setEL(railo.runtime.type.Collection.Key, java.lang.Object)
  185. */
  186. public Object setEL(Key key, Object value) {
  187. return getComponentPro().setEL(key, value);
  188. }
  189. /**
  190. * @see railo.runtime.type.Collection#containsKey(java.lang.String)
  191. */
  192. public boolean containsKey(String key) {
  193. return getComponentPro().containsKey(key);
  194. }
  195. /**
  196. * @see railo.runtime.type.Collection#containsKey(railo.runtime.type.Collection.Key)
  197. */
  198. public boolean containsKey(Key key) {
  199. return getComponentPro().containsKey(key);
  200. }
  201. /**
  202. * @see railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int, railo.runtime.dump.DumpProperties)
  203. */
  204. public DumpData toDumpData(PageContext pageContext, int maxlevel,
  205. DumpProperties properties) {
  206. return getComponentPro().toDumpData(pageContext, maxlevel, properties);
  207. }
  208. /**
  209. * @see railo.runtime.type.Iteratorable#keyIterator()
  210. */
  211. public Iterator keyIterator() {
  212. return getComponentPro().keyIterator();
  213. }
  214. /**
  215. * @see railo.runtime.type.Iteratorable#valueIterator()
  216. */
  217. public Iterator valueIterator() {
  218. return getComponentPro().valueIterator();
  219. }
  220. /**
  221. * @see railo.runtime.type.Iteratorable#iterator()
  222. */
  223. public Iterator iterator() {
  224. return getComponentPro().iterator();
  225. }
  226. /**
  227. * @see railo.runtime.op.Castable#castToString()
  228. */
  229. public String castToString() throws PageException {
  230. return getComponentPro().castToString();
  231. }
  232. /**
  233. * @see railo.runtime.op.Castable#castToString(java.lang.String)
  234. */
  235. public String castToString(String defaultValue) {
  236. return getComponentPro().castToString(defaultValue);
  237. }
  238. /**
  239. * @see railo.runtime.op.Castable#castToBooleanValue()
  240. */
  241. public boolean castToBooleanValue() throws PageException {
  242. return getComponentPro().castToBooleanValue();
  243. }
  244. /**
  245. * @see railo.runtime.op.Castable#castToBoolean(java.lang.Boolean)
  246. */
  247. public Boolean castToBoolean(Boolean defaultValue) {
  248. return getComponentPro().castToBoolean(defaultValue);
  249. }
  250. /**
  251. * @see railo.runtime.op.Castable#castToDoubleValue()
  252. */
  253. public double castToDoubleValue() throws PageException {
  254. return getComponentPro().castToDoubleValue();
  255. }
  256. /**
  257. * @see railo.runtime.op.Castable#castToDoubleValue(double)
  258. */
  259. public double castToDoubleValue(double defaultValue) {
  260. return getComponentPro().castToDoubleValue(defaultValue);
  261. }
  262. /**
  263. * @see railo.runtime.op.Castable#castToDateTime()
  264. */
  265. public DateTime castToDateTime() throws PageException {
  266. return getComponentPro().castToDateTime();
  267. }
  268. /**
  269. * @see railo.runtime.op.Castable#castToDateTime(railo.runtime.type.dt.DateTime)
  270. */
  271. public DateTime castToDateTime(DateTime defaultValue) {
  272. return getComponentPro().castToDateTime(defaultValue);
  273. }
  274. /**
  275. * @see railo.runtime.op.Castable#compareTo(java.lang.String)
  276. */
  277. public int compareTo(String str) throws PageException {
  278. return getComponentPro().compareTo(str);
  279. }
  280. /**
  281. * @see railo.runtime.op.Castable#compareTo(boolean)
  282. */
  283. public int compareTo(boolean b) throws PageException {
  284. return getComponentPro().compareTo(b);
  285. }
  286. /**
  287. * @see railo.runtime.op.Castable#compareTo(double)
  288. */
  289. public int compareTo(double d) throws PageException {
  290. return getComponentPro().compareTo(d);
  291. }
  292. /**
  293. * @see railo.runtime.op.Castable#compareTo(railo.runtime.type.dt.DateTime)
  294. */
  295. public int compareTo(DateTime dt) throws PageException {
  296. return getComponentPro().compareTo(dt);
  297. }
  298. /**
  299. * @see java.util.Map#containsKey(java.lang.Object)
  300. */
  301. public boolean containsKey(Object key) {
  302. return getComponentPro().containsKey(key);
  303. }
  304. /**
  305. * @see java.util.Map#containsValue(java.lang.Object)
  306. */
  307. public boolean containsValue(Object value) {
  308. return getComponentPro().containsValue(value);
  309. }
  310. /**
  311. * @see java.util.Map#entrySet()
  312. */
  313. public Set entrySet() {
  314. return getComponentPro().entrySet();
  315. }
  316. /**
  317. * @see java.util.Map#get(java.lang.Object)
  318. */
  319. public Object get(Object key) {
  320. return getComponentPro().get(key);
  321. }
  322. /**
  323. * @see java.util.Map#isEmpty()
  324. */
  325. public boolean isEmpty() {
  326. return getComponentPro().isEmpty();
  327. }
  328. /**
  329. * @see java.util.Map#keySet()
  330. */
  331. public Set keySet() {
  332. return getComponentPro().keySet();
  333. }
  334. /**
  335. * @see java.util.Map#put(java.lang.Object, java.lang.Object)
  336. */
  337. public Object put(Object key, Object value) {
  338. return getComponentPro().put(key, value);
  339. }
  340. /**
  341. * @see java.util.Map#putAll(java.util.Map)
  342. */
  343. public void putAll(Map m) {
  344. getComponentPro().putAll(m);
  345. }
  346. /**
  347. * @see java.util.Map#remove(java.lang.Object)
  348. */
  349. public Object remove(Object key) {
  350. return getComponentPro().remove(key);
  351. }
  352. /**
  353. * @see java.util.Map#values()
  354. */
  355. public java.util.Collection values() {
  356. return getComponentPro().values();
  357. }
  358. /**
  359. * @see railo.runtime.type.Objects#get(railo.runtime.PageContext, java.lang.String, java.lang.Object)
  360. */
  361. public Object get(PageContext pc, String key, Object defaultValue) {
  362. return getComponentPro().get(pc, key, defaultValue);
  363. }
  364. /**
  365. * @see railo.runtime.type.Objects#get(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)
  366. */
  367. public Object get(PageContext pc, Key key, Object defaultValue) {
  368. return getComponentPro().get(pc, key, defaultValue);
  369. }
  370. /**
  371. * @see railo.runtime.type.Objects#get(railo.runtime.PageContext, java.lang.String)
  372. */
  373. public Object get(PageContext pc, String key) throws PageException {
  374. return getComponentPro().get(pc, key);
  375. }
  376. /**
  377. * @see railo.runtime.type.Objects#get(railo.runtime.PageContext, railo.runtime.type.Collection.Key)
  378. */
  379. public Object get(PageContext pc, Key key) throws PageException {
  380. return getComponentPro().get(pc, key);
  381. }
  382. /**
  383. * @see railo.runtime.type.Objects#set(railo.runtime.PageContext, java.lang.String, java.lang.Object)
  384. */
  385. public Object set(PageContext pc, String propertyName, Object value)
  386. throws PageException {
  387. return getComponentPro().set(pc, propertyName, value);
  388. }
  389. /**
  390. * @see railo.runtime.type.Objects#set(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)
  391. */
  392. public Object set(PageContext pc, Key propertyName, Object value)
  393. throws PageException {
  394. return getComponentPro().set(pc, propertyName, value);
  395. }
  396. /**
  397. * @see railo.runtime.type.Objects#setEL(railo.runtime.PageContext, java.lang.String, java.lang.Object)
  398. */
  399. public Object setEL(PageContext pc, String propertyName, Object value) {
  400. return getComponentPro().setEL(pc, propertyName, value);
  401. }
  402. /**
  403. * @see railo.runtime.type.Objects#setEL(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)
  404. */
  405. public Object setEL(PageContext pc, Key propertyName, Object value) {
  406. return getComponentPro().setEL(pc, propertyName, value);
  407. }
  408. /**
  409. * @see railo.runtime.type.Objects#call(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object[])
  410. */
  411. public Object call(PageContext pc, Key methodName, Object[] arguments)
  412. throws PageException {
  413. return getComponentPro().call(pc, methodName, arguments);
  414. }
  415. /**
  416. * @see railo.runtime.type.Objects#callWithNamedValues(railo.runtime.PageContext, railo.runtime.type.Collection.Key, railo.runtime.type.Struct)
  417. */
  418. public Object callWithNamedValues(PageContext pc, Key methodName,
  419. Struct args) throws PageException {
  420. return getComponentPro().callWithNamedValues(pc, methodName, args);
  421. }
  422. /**
  423. * @see railo.runtime.type.Objects#isInitalized()
  424. */
  425. public boolean isInitalized() {
  426. return getComponentPro().isInitalized();
  427. }
  428. /**
  429. * @see railo.runtime.ComponentPro#getProperties(boolean)
  430. */
  431. public Property[] getProperties(boolean onlyPeristent) {
  432. return getComponentPro().getProperties(onlyPeristent);
  433. }
  434. /**
  435. * @see railo.runtime.ComponentPro#setProperty(railo.runtime.component.Property)
  436. */
  437. public void setProperty(Property property) throws PageException {
  438. getComponentPro().setProperty(property);
  439. }
  440. /**
  441. * @see railo.runtime.ComponentPro#getComponentScope()
  442. */
  443. public ComponentScope getComponentScope() {
  444. return getComponentPro().getComponentScope();
  445. }
  446. /**
  447. * @see railo.runtime.ComponentPro#contains(railo.runtime.PageContext, railo.runtime.type.Collection.Key)
  448. */
  449. public boolean contains(PageContext pc, Key key) {
  450. return getComponentPro().contains(pc, key);
  451. }
  452. /**
  453. * @see railo.runtime.ComponentPro#getPageSource()
  454. */
  455. public PageSource getPageSource() {
  456. return getComponentPro().getPageSource();
  457. }
  458. /**
  459. * @see railo.runtime.ComponentPro#getBaseAbsName()
  460. */
  461. public String getBaseAbsName() {
  462. return getComponentPro().getBaseAbsName();
  463. }
  464. /**
  465. * @see railo.runtime.ComponentPro#isBasePeristent()
  466. */
  467. public boolean isBasePeristent() {
  468. return getComponentPro().isBasePeristent();
  469. }
  470. /**
  471. * @see railo.runtime.ComponentPro#equalTo(java.lang.String)
  472. */
  473. public boolean equalTo(String type) {
  474. return getComponentPro().equalTo(type);
  475. }
  476. /**
  477. * @see java.lang.Object#clone()
  478. */
  479. public Object clone(){
  480. return duplicate(true);
  481. }
  482. }