001    package railo.runtime.type.cfc;
002    
003    import java.util.Iterator;
004    import java.util.Set;
005    
006    import railo.runtime.ComponentPro;
007    import railo.runtime.PageContext;
008    import railo.runtime.component.Member;
009    import railo.runtime.dump.DumpData;
010    import railo.runtime.dump.DumpProperties;
011    import railo.runtime.exp.PageException;
012    import railo.runtime.type.Collection;
013    import railo.runtime.type.Struct;
014    
015    public abstract class ComponentAccessProxy extends ComponentProProxy implements ComponentAccess {
016    
017            public abstract ComponentAccess getComponentAccess();
018            
019    
020            public ComponentPro getComponentPro() {
021                    return getComponentAccess();
022            }
023            
024            /**
025             * @see railo.runtime.ComponentPro#getWSDLFile()
026             */
027            public String getWSDLFile() {
028                    return getComponentAccess().getWSDLFile();
029            }
030    
031            /**
032             * @see railo.runtime.type.Collection#duplicate(boolean)
033             */
034            public Collection duplicate(boolean deepCopy) {
035                    return getComponentAccess().duplicate(deepCopy);
036            }
037    
038            /**
039             * @see railo.runtime.type.cfc.ComponentAccess#isPersistent()
040             */
041            public boolean isPersistent() {
042                    return getComponentAccess().isPersistent();
043            }
044    
045            /**
046             * @see railo.runtime.type.cfc.ComponentAccess#getMetaStructItem(railo.runtime.type.Collection.Key)
047             */
048            public Object getMetaStructItem(Key name) {
049                    return getComponentAccess().getMetaStructItem(name);
050            }
051    
052            /**
053             * @see railo.runtime.type.cfc.ComponentAccess#keySet(int)
054             */
055            public Set<Key> keySet(int access) {
056                    return getComponentAccess().keySet(access);
057            }
058    
059            /**
060             * @see railo.runtime.type.cfc.ComponentAccess#call(railo.runtime.PageContext, int, railo.runtime.type.Collection.Key, java.lang.Object[])
061             */
062            public Object call(PageContext pc, int access, Key name, Object[] args)
063                            throws PageException {
064                    return getComponentAccess().call(pc, access, name, args);
065            }
066    
067            /**
068             * @see railo.runtime.type.cfc.ComponentAccess#callWithNamedValues(railo.runtime.PageContext, int, railo.runtime.type.Collection.Key, railo.runtime.type.Struct)
069             */
070            public Object callWithNamedValues(PageContext pc, int access, Key name,
071                            Struct args) throws PageException {
072                    return getComponentAccess().callWithNamedValues(pc, access, name, args);
073            }
074    
075            public int size(int access) {
076                    return getComponentAccess().size(access);
077            }
078    
079            /**
080             * @see railo.runtime.type.cfc.ComponentAccess#keysAsString(int)
081             */
082            public String[] keysAsString(int access) {
083                    return getComponentAccess().keysAsString(access);
084            }
085    
086            /**
087             * @see railo.runtime.type.cfc.ComponentAccess#keys(int)
088             */
089            public Key[] keys(int access) {
090                    return getComponentAccess().keys(access);
091            }
092    
093            /**
094             * @see railo.runtime.type.cfc.ComponentAccess#get(int, railo.runtime.type.Collection.Key)
095             */
096            public Object get(int access, Key key) throws PageException {
097                    return getComponentAccess().get(access, key);
098            }
099    
100            /**
101             * @see railo.runtime.type.cfc.ComponentAccess#get(int, railo.runtime.type.Collection.Key, java.lang.Object)
102             */
103            public Object get(int access, Key key, Object defaultValue) {
104                    return getComponentAccess().get(access, key, defaultValue);
105            }
106    
107            /**
108             * @see railo.runtime.type.cfc.ComponentAccess#iterator(int)
109             */
110            public Iterator iterator(int access) {
111                    return getComponentAccess().iterator(access);
112            }
113    
114            /**
115             * @see railo.runtime.type.cfc.ComponentAccess#toDumpData(railo.runtime.PageContext, int, railo.runtime.dump.DumpProperties, int)
116             */
117            public DumpData toDumpData(PageContext pageContext, int maxlevel,
118                            DumpProperties dp, int access) {
119                    return getComponentAccess().toDumpData(pageContext, maxlevel, dp, access);
120            }
121    
122            /**
123             * @see railo.runtime.type.cfc.ComponentAccess#contains(int, railo.runtime.type.Collection.Key)
124             */
125            public boolean contains(int access, Key name) {
126                    return getComponentAccess().contains(access, name);
127            }
128    
129            /**
130             * @see railo.runtime.type.cfc.ComponentAccess#getMember(int, railo.runtime.type.Collection.Key, boolean, boolean)
131             */
132            public Member getMember(int access, Key key, boolean dataMember,
133                            boolean superAccess) {
134                    return getComponentAccess().getMember(access, key, dataMember, superAccess);
135            }
136            
137            /**
138             * @see railo.runtime.type.cfc.ComponentAccess#_base()
139             */
140            public ComponentAccess _base() {
141                    return getComponentAccess()._base();
142            }
143    
144    }