net.refractions.udig.tool.select
Class AdaptableFeatureCollection

java.lang.Object
  extended by 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
           
 
Constructor Summary
AdaptableFeatureCollection(FeatureCollection wrapped)
           
 
Method Summary
 void accepts(FeatureVisitor arg0, ProgressListener arg1)
           
 boolean add(java.lang.Object o)
           
 void addAdapter(java.lang.Object adapter)
           
 boolean addAll(java.util.Collection c)
           
 void addListener(CollectionListener arg0)
           
 void clear()
           
 void clearAdapters()
           
 void close(FeatureIterator arg0)
           
 FeatureCollection collection()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection c)
           
 boolean equals(java.lang.Object obj)
           
 FeatureIterator features()
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.Object getAttribute(int arg0)
           
 java.lang.Object getAttribute(java.lang.String arg0)
           
 java.lang.Object[] getAttributes(java.lang.Object[] arg0)
           
 Envelope getBounds()
           
 int getCount()
           
 Geometry getDefaultGeometry()
           
 FeatureType getFeatureType()
           
 java.lang.String getID()
           
 int getNumberOfAttributes()
           
 FeatureCollection getParent()
           
 FeatureType getSchema()
           
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 void purge()
           
 FeatureReader reader()
           
 boolean remove(java.lang.Object o)
           
 boolean removeAdapter(java.lang.Object adapter)
           
 boolean removeAll(java.util.Collection c)
           
 void removeListener(CollectionListener arg0)
           
 boolean retainAll(java.util.Collection c)
           
 void setAttribute(int arg0, java.lang.Object arg1)
           
 void setAttribute(java.lang.String arg0, java.lang.Object arg1)
           
 void setDefaultGeometry(Geometry arg0)
           
 void setParent(FeatureCollection arg0)
           
 int size()
           
 FeatureList sort(SortBy arg0)
           
 FeatureCollection subCollection(Filter arg0)
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] a)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adapters

protected java.util.Set<java.lang.Object> adapters
Constructor Detail

AdaptableFeatureCollection

public AdaptableFeatureCollection(FeatureCollection wrapped)
Method Detail

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