001/**
002 *
003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
004 *
005 * This library is free software; you can redistribute it and/or
006 * modify it under the terms of the GNU Lesser General Public
007 * License as published by the Free Software Foundation; either 
008 * version 2.1 of the License, or (at your option) any later version.
009 * 
010 * This library is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 * Lesser General Public License for more details.
014 * 
015 * You should have received a copy of the GNU Lesser General Public 
016 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
017 * 
018 **/
019package lucee.runtime.type.cfc;
020
021
022public class ComponentAccessSimulation {//implements ComponentAccess {
023        /*
024        private Component cfc;
025
026        public ComponentAccessSimulation(Component cfc){
027                this.cfc=cfc;
028        }
029
030        
031        public ComponentAccess _base() {
032                return cfc._base();
033        }
034        
035        public boolean hasInjectedFunctions() {
036                return cfc.hasInjectedFunctions();
037        }
038        
039        public void setEntity(boolean entity) {
040                cfc.setEntity(entity);
041        }
042
043        
044        public boolean isEntity() {
045                return cfc.isEntity();
046        }
047
048        
049        public long sizeOf() {
050                return cfc.sizeOf();
051        }
052
053        public Collection duplicate(boolean deepCopy) {
054                return cfc.duplicate(deepCopy);
055        }
056        
057        public int size(int access) {
058                return cfc.size(access);
059        }
060
061        public Set<Key> keySet(int access) {
062                return cfc.keySet(access);
063        }
064
065        public Iterator<Key> keyIterator(int access) {
066                // TODO Auto-generated method stub
067                return cfc.keyIterator(access);
068        }
069
070        public Iterator<String> keysAsStringIterator(int access) {
071                // TODO Auto-generated method stub
072                return cfc.keysAsStringIterator(access);
073        }
074
075        public Iterator<Entry<Key, Object>> entryIterator(int access) {
076                // TODO Auto-generated method stub
077                return cfc.entryIterator(access);
078        }
079
080        public Iterator<Object> valueIterator(int access) {
081                // TODO Auto-generated method stub
082                return cfc.valueIterator(access);
083        }
084
085        public Iterator<Object> valueIterator() {
086                return cfc.valueIterator();
087        }
088
089        
090        public Key[] keys(int access) {
091                return cfc.keys(access);
092        }
093
094        public void clear() {
095                cfc.clear();
096        }
097
098        public Member getMember(int access, Key key, boolean dataMember, boolean superAccess) {
099                return cfc.getMember(access, key, dataMember, superAccess);
100        }
101
102        protected Member getMember(PageContext pc, Key key, boolean dataMember, boolean superAccess) {
103                return cfc.getMember(pc, key, dataMember, superAccess);
104        }
105
106        public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
107                return cfc.toDumpData(pageContext, maxlevel, dp);
108        }
109
110        public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp, int access) {
111                return cfc.toDumpData(pageContext, maxlevel, dp, access);
112        }
113
114        protected String getCallPath() {
115                return cfc.getCallPath();
116        }
117
118        
119        public String getDisplayName() {
120                return cfc.getDisplayName();
121        }
122
123        
124        public String getExtends() {
125                return cfc.getExtends();
126        }
127
128        
129        public String getBaseAbsName() {
130                return cfc.getBaseAbsName();
131        }
132
133        public boolean isBasePeristent() {
134                return cfc.isBasePeristent();
135        }
136
137        
138        public String getHint() {
139                return cfc.getHint();
140        }
141
142        public String getWSDLFile() {
143                return cfc.getWSDLFile();
144        }
145
146        public String getName() {
147                return cfc.getName();
148        }
149
150        public String _getName() {
151                return cfc._getName();
152        }
153
154        
155        public PageSource _getPageSource() {
156                return cfc._getPageSource();
157        }
158
159        public String getCallName() {
160                return cfc.getCallName();
161        }
162
163        public String getAbsName() {
164                return cfc.getAbsName();
165        }
166
167        public boolean getOutput() {
168                return cfc.getOutput();
169        }
170
171        public boolean instanceOf(String type) {
172                return cfc.instanceOf(type);
173        }
174
175        public boolean equalTo(String type) {
176                return cfc.equalTo(type);
177        }
178
179        public boolean isValidAccess(int access) {
180                return cfc.isValidAccess(access);
181        }
182
183        public PageSource getPageSource() {
184                return cfc.getPageSource();
185        }
186
187        public String castToString() throws PageException {
188                return cfc.castToString();
189        }
190
191        public String castToString(String defaultValue) {
192                return cfc.castToString(defaultValue);
193        }
194
195        public boolean castToBooleanValue() throws PageException {
196                return cfc.castToBooleanValue();
197        }
198
199        public Boolean castToBoolean(Boolean defaultValue) {
200                return cfc.castToBoolean(defaultValue);
201        }
202
203        public double castToDoubleValue() throws PageException {
204                return cfc.castToDoubleValue();
205        }
206
207        
208        public double castToDoubleValue(double defaultValue) {
209                return cfc.castToDoubleValue(defaultValue);
210        }
211
212        public DateTime castToDateTime() throws PageException {
213                return cfc.castToDateTime();
214        }
215
216        public DateTime castToDateTime(DateTime defaultValue) {
217                return cfc.castToDateTime(defaultValue);
218        }
219
220        public synchronized Struct getMetaData(PageContext pc) throws PageException {
221                return cfc.getMetaData(pc);
222        }
223
224        public synchronized Object getMetaStructItem(Key name) {
225                return cfc.getMetaStructItem(name);
226        }
227
228        public void registerUDF(String key, UDF udf) {
229                cfc.registerUDF(key, udf);
230        }
231
232        public void registerUDF(String key, UDFProperties prop) {
233                cfc.registerUDF(key, prop);
234        }
235
236        public void registerUDF(Key key, UDF udf) {
237                cfc.registerUDF(key, udf);
238        }
239
240        
241        public void registerUDF(Key key, UDFProperties prop) {
242                cfc.registerUDF(key, prop);
243        }
244
245        public void registerUDF(Key key, UDFPlus udf, boolean useShadow, boolean injected) {
246                cfc.registerUDF(key, udf, useShadow, injected);
247        }
248
249        public Object remove(Key key) throws PageException {
250                return cfc.remove(key);
251        }
252
253        public Object removeEL(Key key) {
254                return cfc.removeEL(key);
255        }
256
257        public Object set(PageContext pc, Key key, Object value) throws PageException {
258                return cfc.set(pc, key, value);
259        }
260
261        public Object set(Key key, Object value) throws PageException {
262                return cfc.set(key, value);
263        }
264
265        public Object setEL(PageContext pc, Key name, Object value) {
266                return cfc.setEL(pc, name, value);
267        }
268
269        public Object setEL(Key key, Object value) {
270                return cfc.setEL(key, value);
271        }
272
273        public Object get(PageContext pc, Key key) throws PageException {
274                return cfc.get(pc, key);
275        }
276
277        public Object get(int access, Key key) throws PageException {
278                return cfc.get(access, key);
279        }
280
281        public Object get(PageContext pc, Key key, Object defaultValue) {
282                return cfc.get(pc, key, defaultValue);
283        }
284
285        public Object get(int access, Key key, Object defaultValue) {
286                return cfc.get(access, key, defaultValue);
287        }
288
289        public Object get(Key key) throws PageException {
290                return cfc.get(key);
291        }
292
293        public Object get(Key key, Object defaultValue) {
294                return cfc.get(key, defaultValue);
295        }
296
297        public Object call(PageContext pc, String name, Object[] args) throws PageException {
298                return cfc.call(pc, name, args);
299        }
300
301        public Object call(PageContext pc, Key name, Object[] args) throws PageException {
302                return cfc.call(pc, name, args);
303        }
304        
305        public Object call(PageContext pc, int access, Key name, Object[] args) throws PageException {
306                return cfc.call(pc, access, name, args);
307        }
308
309        public Object callWithNamedValues(PageContext pc, String name, Struct args) throws PageException {
310                return cfc.callWithNamedValues(pc, name, args);
311        }
312
313        public Object callWithNamedValues(PageContext pc, Key methodName, Struct args) throws PageException {
314                return cfc.callWithNamedValues(pc, methodName, args);
315        }
316
317        public Object callWithNamedValues(PageContext pc, int access, Key name, Struct args) throws PageException {
318                return cfc.callWithNamedValues(pc, access, name, args);
319        }
320
321        public boolean contains(PageContext pc, Key key) {
322                return cfc.contains(pc, key);
323        }
324
325        public boolean containsKey(Key key) {
326                return cfc.containsKey(key);
327        }
328
329        public boolean contains(int access, Key name) {
330                return cfc.contains(access, name);
331        }
332
333        public Iterator<Key> keyIterator() {
334                return cfc.keyIterator();
335        }
336
337        public Iterator<String> keysAsStringIterator() {
338                return cfc.keysAsStringIterator();
339        }
340
341        public Iterator<Entry<Key, Object>> entryIterator() {
342                return cfc.entryIterator();
343        }
344
345        public Key[] keys() {
346                return cfc.keys();
347        }
348
349        public int size() {
350                return cfc.size();
351        }
352
353        public boolean isPersistent() {
354                return cfc.isPersistent();
355        }
356
357        
358        public void setProperty(Property property) throws PageException {
359                cfc.setProperty(property);
360        }
361
362        public Property[] getProperties(boolean onlyPeristent) {
363                return cfc.getProperties(onlyPeristent);
364        }
365
366        public Property[] getProperties(boolean onlyPeristent, boolean includeBaseProperties, boolean preferBaseProperties, boolean inheritedMappedSuperClassOnly) {
367                return cfc.getProperties(onlyPeristent, includeBaseProperties, preferBaseProperties, inheritedMappedSuperClassOnly);
368        }
369
370        public ComponentScope getComponentScope() {
371                return cfc.getComponentScope();
372        }
373
374        public int compareTo(boolean b) throws PageException {
375                return cfc.compareTo(b);
376        }
377
378        public int compareTo(DateTime dt) throws PageException {
379                return cfc.compareTo(dt);
380        }
381
382        
383        public int compareTo(double d) throws PageException {
384                return cfc.compareTo(d);
385        }
386
387        
388        public int compareTo(String str) throws PageException {
389                return cfc.compareTo(str);
390        }
391
392        public Set entrySet() {
393                return cfc.entrySet();
394        }
395
396        
397        public Set keySet() {
398                return cfc.keySet();
399        }
400
401        
402        public String toString() {
403                return cfc.toString();
404        }
405
406        
407        public java.util.Collection values() {
408                return cfc.values();
409        }
410
411        
412        public boolean containsValue(Object value) {
413                return cfc.containsValue(value);
414        }
415
416        
417        public Iterator<String> getIterator() {
418                return cfc.getIterator();
419        }
420
421        
422        public boolean equals(Object obj) {
423                return cfc.equals(obj);
424        }*/
425
426}