net.refractions.udig.tool.select
Class AdaptableFeatureCollection
java.lang.Object
net.refractions.udig.tool.select.AdaptableFeatureCollection
public class AdaptableFeatureCollection
- extends java.lang.Object
A feature collection that adapts to other objects.
- Since:
- 1.1.0
- Author:
- Jesse
Field Summary |
protected java.util.Set<java.lang.Object> |
adapters
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
adapters
protected java.util.Set<java.lang.Object> adapters
AdaptableFeatureCollection
public AdaptableFeatureCollection(FeatureCollection wrapped)
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
addAdapter
public void addAdapter(java.lang.Object adapter)
removeAdapter
public boolean removeAdapter(java.lang.Object adapter)
clearAdapters
public void clearAdapters()
accepts
public void accepts(FeatureVisitor arg0,
ProgressListener arg1)
throws java.io.IOException
- Throws:
java.io.IOException
addListener
public void addListener(CollectionListener arg0)
throws java.lang.NullPointerException
- Throws:
java.lang.NullPointerException
close
public void close(FeatureIterator arg0)
features
public FeatureIterator features()
getFeatureType
public FeatureType getFeatureType()
getSchema
public FeatureType getSchema()
removeListener
public void removeListener(CollectionListener arg0)
throws java.lang.NullPointerException
- Throws:
java.lang.NullPointerException
sort
public FeatureList sort(SortBy arg0)
subCollection
public FeatureCollection subCollection(Filter arg0)
iterator
public java.util.Iterator iterator()
purge
public void purge()
add
public boolean add(java.lang.Object o)
addAll
public boolean addAll(java.util.Collection c)
clear
public void clear()
contains
public boolean contains(java.lang.Object o)
containsAll
public boolean containsAll(java.util.Collection c)
isEmpty
public boolean isEmpty()
remove
public boolean remove(java.lang.Object o)
removeAll
public boolean removeAll(java.util.Collection c)
retainAll
public boolean retainAll(java.util.Collection c)
size
public int size()
toArray
public java.lang.Object[] toArray()
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
collection
public FeatureCollection collection()
throws java.io.IOException
- Throws:
java.io.IOException
getBounds
public Envelope getBounds()
getCount
public int getCount()
throws java.io.IOException
- Throws:
java.io.IOException
reader
public FeatureReader reader()
throws java.io.IOException
- Throws:
java.io.IOException
getAttribute
public java.lang.Object getAttribute(java.lang.String arg0)
getAttribute
public java.lang.Object getAttribute(int arg0)
getAttributes
public java.lang.Object[] getAttributes(java.lang.Object[] arg0)
getDefaultGeometry
public Geometry getDefaultGeometry()
getID
public java.lang.String getID()
getNumberOfAttributes
public int getNumberOfAttributes()
getParent
public FeatureCollection getParent()
setAttribute
public void setAttribute(int arg0,
java.lang.Object arg1)
throws IllegalAttributeException,
java.lang.ArrayIndexOutOfBoundsException
- Throws:
IllegalAttributeException
java.lang.ArrayIndexOutOfBoundsException
setAttribute
public void setAttribute(java.lang.String arg0,
java.lang.Object arg1)
throws IllegalAttributeException
- Throws:
IllegalAttributeException
setDefaultGeometry
public void setDefaultGeometry(Geometry arg0)
throws IllegalAttributeException
- Throws:
IllegalAttributeException
setParent
public void setParent(FeatureCollection arg0)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object