| java.lang.Object net.refractions.udig.catalog.ICatalog
All known Subclasses: net.refractions.udig.catalog.internal.CatalogImpl, net.refractions.udig.catalog.google.GoogleCatalog,
ICatalog | abstract public class ICatalog implements IResolve(Code) | | 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.
author: David Zwiers, Refractions Research since: 0.7.0 See Also: IService |
createTemporaryResource | abstract public IGeoResource createTemporaryResource(Object descriptor) throws IllegalArgumentException(Code) | | Create an IGeoResource that is will be deleted after the session. The descriptor object passed in
is used to determine the type of resource that is created. For example if the descriptor object is
a FeatureType then a IGeoResource that can resolve to a FeatureStore will be returned.
Parameters: descriptor - An object whose type is in the ICatalog.getTemporaryDescriptorClasses() array. an IGeoResource that is will be deleted after the session. throws: IllegalArgumentException - if the descriptor type is not known. |
dispose | public void dispose(IProgressMonitor monitor)(Code) | | |
find | abstract public List<IResolve> find(URL resource, IProgressMonitor monitor)(Code) | | Find resources matching this id directly from this Catalog.
Parameters: resource - used to match resolves Parameters: monitor - used to show the progress of the find. List (possibly empty) of matching Resolves |
findService | abstract public List<IService> findService(URL query)(Code) | | Find Service matching this id directly from this Catalog. This method is guaranteed to be non-blocking.
Parameters: id - used to match resolves Parameters: monitor - TODO List (possibly empty) of matching Resolves |
getById | abstract public T getById(Class<T> type, URL id, IProgressMonitor monitor)(Code) | | Look in catalog for exact match with provided id.
Parameters: type - Type of IResolve if known Parameters: id - id used for lookup Parameters: monitor - Resolve or null if not found |
getTemporaryDescriptorClasses | abstract public String[] getTemporaryDescriptorClasses()(Code) | | Returns The list of class names that this catalog can use to create Temporary Resources.
The list of class names that this catalog can use to create Temporary Resources. |
parent | public IResolve parent(IProgressMonitor monitor)(Code) | | Catalogs do not have a parent so null is returned.
We can consider adding a global 'root' parent - but we will wait until we find a need, or if
users request.
null as catalogs do not have a parent |
resolve | abstract public T resolve(Class<T> adaptee, IProgressMonitor monitor) throws IOException(Code) | | Will attempt to morph into the adaptee, and return that object. Required adaptions:
- ICatalogInfo.class
- List.class
May Block.
Parameters: adaptee - Parameters: monitor - May Be Null See Also: ICatalogInfo See Also: IService |
search | abstract public List<IResolve> search(String pattern, Envelope bbox, IProgressMonitor monitor) throws IOException(Code) | | Performs a search on this catalog based on the specified inputs.
The pattern uses the following conventions:
-
- use " " to surround a phase
- use + to represent 'AND'
- use - to represent 'OR'
- use ! to represent 'NOT'
- use ( ) to designate scope
The bbox provided shall be in Lat - Long, or null if the search is not to be contained within
a specified area.
Parameters: pattern - Search pattern (see above) Parameters: bbox - The bbox in Lat-Long (ESPG 4269), or null Parameters: monitor - for progress, or null if monitoring is not desired List matching IResolve |
toString | public String toString()(Code) | | Indicate class and id.
string representing this IResolve |
|
|