001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2003-2006, Geotools Project Managment Committee (PMC)
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or (at your option) any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * Created on August 12, 2003, 7:29 PM
017: */
018: package org.geotools.feature;
019:
020: import java.io.IOException;
021: import java.util.Iterator;
022:
023: import org.geotools.data.FeatureReader;
024: import org.geotools.feature.visitor.FeatureVisitor;
025: import org.geotools.geometry.jts.ReferencedEnvelope;
026: import org.opengis.filter.Filter;
027: import org.opengis.filter.sort.SortBy;
028: import org.geotools.util.ProgressListener;
029:
030: import com.vividsolutions.jts.geom.Geometry;
031:
032: /**
033: *
034: * @author jamesm
035: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/main/src/test/java/org/geotools/feature/MockFeatureCollection.java $
036: */
037: public class MockFeatureCollection implements
038: org.geotools.feature.FeatureCollection {
039:
040: /** Creates a new instance of MockFeatureCollection */
041: public MockFeatureCollection() {
042: }
043:
044: public void addListener(CollectionListener listener) {
045: }
046:
047: public FeatureIterator features() {
048: return null;
049: }
050:
051: public ReferencedEnvelope getBounds() {
052: return null;
053: }
054:
055: public void removeListener(CollectionListener listener) {
056:
057: }
058:
059: public boolean add(Object o) {
060: return false;
061: }
062:
063: public boolean addAll(java.util.Collection c) {
064: return false;
065: }
066:
067: public void clear() {
068: }
069:
070: public boolean contains(Object o) {
071: return false;
072: }
073:
074: public boolean containsAll(java.util.Collection c) {
075: return false;
076: }
077:
078: public boolean equals(Object o) {
079: return false;
080: }
081:
082: public int hashCode() {
083: return 0;
084: }
085:
086: public boolean isEmpty() {
087: return false;
088: }
089:
090: public java.util.Iterator iterator() {
091: return null;
092: }
093:
094: public boolean remove(Object o) {
095: return false;
096: }
097:
098: public boolean removeAll(java.util.Collection c) {
099: return false;
100: }
101:
102: public boolean retainAll(java.util.Collection c) {
103: return false;
104: }
105:
106: public int size() {
107: return 0;
108: }
109:
110: public Object[] toArray() {
111: return null;
112: }
113:
114: public Object[] toArray(Object[] a) {
115: return null;
116: }
117:
118: /* (non-Javadoc)
119: * @see org.geotools.feature.FeatureCollection#getFeatureType()
120: */
121: public FeatureType getFeatureType() {
122: // TODO Auto-generated method stub
123: return null;
124: }
125:
126: /* (non-Javadoc)
127: * @see org.geotools.feature.Feature#getParent()
128: */
129: public FeatureCollection getParent() {
130: // TODO Auto-generated method stub
131: return null;
132: }
133:
134: /* (non-Javadoc)
135: * @see org.geotools.feature.Feature#setParent(org.geotools.feature.FeatureCollection)
136: */
137: public void setParent(FeatureCollection collection) {
138: // TODO Auto-generated method stub
139:
140: }
141:
142: /* (non-Javadoc)
143: * @see org.geotools.feature.Feature#getID()
144: */
145: public String getID() {
146: // TODO Auto-generated method stub
147: return null;
148: }
149:
150: /* (non-Javadoc)
151: * @see org.geotools.feature.Feature#getAttributes(java.lang.Object[])
152: */
153: public Object[] getAttributes(Object[] attributes) {
154: // TODO Auto-generated method stub
155: return null;
156: }
157:
158: /* (non-Javadoc)
159: * @see org.geotools.feature.Feature#getAttribute(java.lang.String)
160: */
161: public Object getAttribute(String xPath) {
162: // TODO Auto-generated method stub
163: return null;
164: }
165:
166: /* (non-Javadoc)
167: * @see org.geotools.feature.Feature#getAttribute(int)
168: */
169: public Object getAttribute(int index) {
170: // TODO Auto-generated method stub
171: return null;
172: }
173:
174: /* (non-Javadoc)
175: * @see org.geotools.feature.Feature#setAttribute(int, java.lang.Object)
176: */
177: public void setAttribute(int position, Object val)
178: throws IllegalAttributeException,
179: ArrayIndexOutOfBoundsException {
180: // TODO Auto-generated method stub
181:
182: }
183:
184: /* (non-Javadoc)
185: * @see org.geotools.feature.Feature#getNumberOfAttributes()
186: */
187: public int getNumberOfAttributes() {
188: // TODO Auto-generated method stub
189: return 0;
190: }
191:
192: /* (non-Javadoc)
193: * @see org.geotools.feature.Feature#setAttribute(java.lang.String, java.lang.Object)
194: */
195: public void setAttribute(String xPath, Object attribute)
196: throws IllegalAttributeException {
197: // TODO Auto-generated method stub
198:
199: }
200:
201: /* (non-Javadoc)
202: * @see org.geotools.feature.Feature#getDefaultGeometry()
203: */
204: public Geometry getDefaultGeometry() {
205: // TODO Auto-generated method stub
206: return null;
207: }
208:
209: /* (non-Javadoc)
210: * @see org.geotools.feature.Feature#setDefaultGeometry(com.vividsolutions.jts.geom.Geometry)
211: */
212: public void setDefaultGeometry(Geometry geometry)
213: throws IllegalAttributeException {
214: // TODO Auto-generated method stub
215:
216: }
217:
218: public FeatureType getSchema() {
219: return null;
220: }
221:
222: public FeatureReader reader() throws IOException {
223: return null;
224: }
225:
226: public int getCount() throws IOException {
227: return 0;
228: }
229:
230: public FeatureCollection collection() throws IOException {
231: return null;
232: }
233:
234: public void close(Iterator iterator) {
235: }
236:
237: public void close(FeatureIterator iterator) {
238: }
239:
240: public void accepts(FeatureVisitor visitor,
241: ProgressListener progress) throws IOException {
242: }
243:
244: public FeatureCollection subCollection(Filter filter) {
245: // TODO Auto-generated method stub
246: return null;
247: }
248:
249: public FeatureList sort(SortBy order) {
250: // TODO Auto-generated method stub
251: return null;
252: }
253:
254: public void purge() {
255: // TODO Auto-generated method stub
256:
257: }
258: }
|