|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.catalog.ICatalog
public abstract class ICatalog
Interface to capture both the Local Catalog resources and Web Registry Service.
Conceptually provides a searchable Catalog of "Spatial Data Sources". Metadata search is abitrary.
IService
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.refractions.udig.catalog.IResolve |
---|
IResolve.Status |
Constructor Summary | |
---|---|
ICatalog()
|
Method Summary | ||
---|---|---|
abstract void |
add(IService service)
Adds the specified entry to this catalog. |
|
abstract void |
addCatalogListener(IResolveChangeListener listener)
|
|
abstract IGeoResource |
createTemporaryResource(java.lang.Object descriptor)
Create an IGeoResource that is will be deleted after the session. |
|
void |
dispose(IProgressMonitor monitor)
Clean up after aquired resources - the handle will not function after being disposed. |
|
abstract java.util.List<IResolve> |
find(java.net.URL resource,
IProgressMonitor monitor)
Find resources matching this id directly from this Catalog. |
|
abstract java.util.List<IService> |
findService(java.net.URL query)
Deprecated. This method cannot be guarnteed to be non blocking for external catalogs, please use getById instead |
|
abstract
|
getById(java.lang.Class<T> type,
java.net.URL id,
IProgressMonitor monitor)
Look in catalog for exact match with provided id. |
|
ICatalogInfo |
getInfo(IProgressMonitor monitor)
Aquire info on this Catalog. |
|
abstract java.lang.String[] |
getTemporaryDescriptorClasses()
Returns The list of class names that this catalog can use to create Temporary Resources. |
|
IResolve |
parent(IProgressMonitor monitor)
Catalogs do not have a parent so null is returned. |
|
abstract void |
remove(IService service)
Removes the specified entry to this catalog. |
|
abstract void |
removeCatalogListener(IResolveChangeListener listener)
|
|
abstract void |
replace(java.net.URL id,
IService service)
Replaces the specified entry in this catalog. |
|
abstract
|
resolve(java.lang.Class<T> adaptee,
IProgressMonitor monitor)
Will attempt to morph into the adaptee, and return that object. |
|
abstract java.util.List<IResolve> |
search(java.lang.String pattern,
Envelope bbox,
IProgressMonitor monitor)
Performs a search on this catalog based on the specified inputs. |
|
java.lang.String |
toString()
Indicate class and id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.refractions.udig.catalog.IResolve |
---|
canResolve, getIdentifier, getMessage, getStatus, members |
Constructor Detail |
---|
public ICatalog()
Method Detail |
---|
public IResolve parent(IProgressMonitor monitor)
We can consider adding a global 'root' parent - but we will wait until we find a need, or if users request.
parent
in interface IResolve
monitor
- used to provide feedback during parent lookup
public abstract void add(IService service) throws java.lang.UnsupportedOperationException
An IService may belong to more than one Catalog.
entry
-
java.lang.UnsupportedOperationException
public abstract void remove(IService service) throws java.lang.UnsupportedOperationException
service
-
java.lang.UnsupportedOperationException
public abstract void replace(java.net.URL id, IService service) throws java.lang.UnsupportedOperationException
id
- service
-
java.lang.UnsupportedOperationException
public abstract <T> T resolve(java.lang.Class<T> adaptee, IProgressMonitor monitor) throws java.io.IOException
resolve
in interface IResolve
adaptee
- monitor
- May Be Null
java.io.IOException
- if result was unavailable due to a technical problemICatalogInfo
,
IService
public ICatalogInfo getInfo(IProgressMonitor monitor) throws java.io.IOException
This is functionally equivalent to:
java.io.IOException
resolve(Class, IProgressMonitor)
public abstract java.util.List<IResolve> find(java.net.URL resource, IProgressMonitor monitor)
resource
- used to match resolvesmonitor
- used to show the progress of the find.
public abstract java.util.List<IService> findService(java.net.URL query)
id
- used to match resolvesmonitor
- TODO
public abstract <T extends IResolve> T getById(java.lang.Class<T> type, java.net.URL id, IProgressMonitor monitor)
type
- Type of IResolve if knownid
- id used for lookupmonitor
-
public abstract java.util.List<IResolve> search(java.lang.String pattern, Envelope bbox, IProgressMonitor monitor) throws java.io.IOException
The pattern uses the following conventions:
pattern
- Search pattern (see above)bbox
- The bbox in Lat-Long (ESPG 4269), or nullmonitor
- for progress, or null if monitoring is not desired
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void addCatalogListener(IResolveChangeListener listener)
listener
- public abstract void removeCatalogListener(IResolveChangeListener listener)
listener
- public abstract IGeoResource createTemporaryResource(java.lang.Object descriptor) throws java.lang.IllegalArgumentException
descriptor
- An object whose type is in the getTemporaryDescriptorClasses()
array.
java.lang.IllegalArgumentException
- if the descriptor type is not known.public abstract java.lang.String[] getTemporaryDescriptorClasses()
public void dispose(IProgressMonitor monitor)
IResolve
dispose
in interface IResolve
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |