Java Doc for CatalogImpl.java in  » GIS » udig-1.1 » net » refractions » udig » catalog » internal » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » udig 1.1 » net.refractions.udig.catalog.internal 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.refractions.udig.catalog.ICatalog
      net.refractions.udig.catalog.internal.CatalogImpl

CatalogImpl
public class CatalogImpl extends ICatalog (Code)
Implementation of an in memory catalog.
author:
   David Zwiers, Refractions Research
since:
   0.6



Constructor Summary
public  CatalogImpl()
    
public  CatalogImpl(ICatalogInfo metadata)
    

Method Summary
public  voidadd(IService entry)
    
public  voidaddCatalogListener(IResolveChangeListener listener)
    
public  booleancanResolve(Class<T> adaptee)
    
protected static  booleancheck(IService service, AST pattern)
    
protected static  booleancheck(IGeoResource resource, AST pattern)
    
protected static  booleancheck(IGeoResource resource, AST pattern, Envelope bbox)
    
public  IGeoResourcecreateTemporaryResource(Object descriptor)
    
public  List<IResolve>find(URL query, IProgressMonitor monitor)
     Quick search by url match.
public  List<IService>findService(URL query)
     Quick search by url match.
public  voidfire(IResolveChangeEvent event)
     Fire a resource changed event, these may be batched into one delta for performance.
public  List<IResolve>friends(IResolve handle)
     Returns a list of friendly resources working with related data.
public  TgetById(Class<T> type, URL ID, IProgressMonitor monitor)
    
public  IResolvegetChildById(IResolve handle, URL ID, IProgressMonitor monitor)
     Utility method that will search in the provided handle for an ID match; especially good for nested content such as folders or WMS layers.

Old Comment

The following comment was origional included in the source code: we are not sure it should be belived ...
public  URLgetIdentifier()
    
public  ThrowablegetMessage()
    
public  IServicegetServiceById(URL ID)
     Utility method to quick hunt for matching service.
public  StatusgetStatus()
    
public synchronized  String[]getTemporaryDescriptorClasses()
    
public  voidloadFromFile(File catalogLocation, IServiceFactory factory)
    
public  List<IResolve>members(IProgressMonitor monitor2)
    
public  voidremove(IService entry)
    
public  voidremoveCatalogListener(IResolveChangeListener listener)
    
public  voidreplace(URL id, IService entry)
    
public  Tresolve(Class<T> adaptee, IProgressMonitor monitor2)
    
public  voidsaveToFile(File catalogLocation, IServiceFactory factory, IProgressMonitor monitor)
    
public synchronized  List<IResolve>search(String pattern, Envelope bbox, IProgressMonitor monitor2)
     Performs a search on this catalog based on the specified inputs.


Constructor Detail
CatalogImpl
public CatalogImpl()(Code)



CatalogImpl
public CatalogImpl(ICatalogInfo metadata)(Code)




Method Detail
add
public void add(IService entry) throws UnsupportedOperationException(Code)

See Also:   net.refractions.udig.catalog.ICatalog.add(net.refractions.udig.catalog.IService)
Parameters:
  entry -
throws:
  UnsupportedOperationException -



addCatalogListener
public void addCatalogListener(IResolveChangeListener listener)(Code)

See Also:   net.refractions.udig.catalog.ICatalog.addCatalogListener(net.refractions.udig.catalog.ICatalog.ICatalogListener)
Parameters:
  listener -



canResolve
public boolean canResolve(Class<T> adaptee)(Code)



check
protected static boolean check(IService service, AST pattern)(Code)



check
protected static boolean check(IGeoResource resource, AST pattern)(Code)



check
protected static boolean check(IGeoResource resource, AST pattern, Envelope bbox)(Code)



createTemporaryResource
public IGeoResource createTemporaryResource(Object descriptor)(Code)



find
public List<IResolve> find(URL query, IProgressMonitor monitor)(Code)
Quick search by url match.
Parameters:
  query -
See Also:   net.refractions.udig.catalog.ICatalog.search(org.geotools.filter.Filter) List
throws:
  IOException -



findService
public List<IService> findService(URL query)(Code)
Quick search by url match.
See Also:   net.refractions.udig.catalog.ICatalog.search(org.geotools.filter.Filter)
Parameters:
  query - List
throws:
  IOException -



fire
public void fire(IResolveChangeEvent event)(Code)
Fire a resource changed event, these may be batched into one delta for performance.
Parameters:
  resoruce - IGeoResource undergoing change
Parameters:
  mask - of IDelta constants indicating change
throws:
  IOException - protected void fireResourceEvent( IGeoResource resource,IResolveDelta.Kind kind ) throws IOException { Object[] listeners =catalogListeners.getListeners(); if( listeners.length == 0 ) return;GeoReferenceDelta rDelta = new GeoReferenceDelta( resource, kind ); ServiceDeltasDelta = new ServiceDelta( resource.getService(null), IDelta.Kind.NO_CHANGE,Collections.singletonList( rDelta ) ); CatalogDelta cDelta = new CatalogDelta(Collections.singletonList( (IDelta)sDelta ) ); fire( new CatalogChangeEvent(resource, ICatalogChangeEvent.Type.POST_CHANGE, cDelta ) ); }



friends
public List<IResolve> friends(IResolve handle)(Code)
Returns a list of friendly resources working with related data.

This method is used internally to determine resource handles that offer different entry points to the same information.

A friend can be found via:
  • Making use of a CSW2.0 association
  • URL Pattern matching for well known cases like GeoServer and MapServer
  • Service Metadata, for example WMS resourceURL referencing a WFS FeatureType
All of these handles will be returned from the find( URL, monitor ) method.
Parameters:
  handle - List of frends, possibly empty



getById
public T getById(Class<T> type, URL ID, IProgressMonitor monitor)(Code)



getChildById
public IResolve getChildById(IResolve handle, URL ID, IProgressMonitor monitor)(Code)
Utility method that will search in the provided handle for an ID match; especially good for nested content such as folders or WMS layers.

Old Comment

The following comment was origional included in the source code: we are not sure it should be belived ... we will do our best to search CONNECTED services first, nut NOTCONNECTED is included in our search. Although the following is a 'blocking' call, we have deemed it safe based on the following reasons:
  • This will only be called for Identifiers which are well known.
  • The Services being checked have already been screened, and only a limited number of services (ussually 1) will be called.
    1. The Id was acquired from the catalog ... and this is a look-up, in which case the uri exists.
    2. The Id was persisted.
In the future this will also be free, as we plan on caching the equivalent of a getCapabilities document between runs (will have to be updated too as the app has time).
Repeate the following comment is out of date since people are using this method to look for entries that have not been aded to the catalog yet.



getIdentifier
public URL getIdentifier()(Code)



getMessage
public Throwable getMessage()(Code)



getServiceById
public IService getServiceById(URL ID)(Code)
Utility method to quick hunt for matching service.
Parameters:
  ID - Identification of service to find Found service handle or null



getStatus
public Status getStatus()(Code)



getTemporaryDescriptorClasses
public synchronized String[] getTemporaryDescriptorClasses()(Code)



loadFromFile
public void loadFromFile(File catalogLocation, IServiceFactory factory)(Code)



members
public List<IResolve> members(IProgressMonitor monitor2)(Code)



remove
public void remove(IService entry) throws UnsupportedOperationException(Code)

See Also:   net.refractions.udig.catalog.ICatalog.remove(net.refractions.udig.catalog.IService)
Parameters:
  entry -
throws:
  UnsupportedOperationException -



removeCatalogListener
public void removeCatalogListener(IResolveChangeListener listener)(Code)

See Also:   net.refractions.udig.catalog.ICatalog.removeCatalogListener(net.refractions.udig.catalog.ICatalog.ICatalogListener)
Parameters:
  listener -



replace
public void replace(URL id, IService entry) throws UnsupportedOperationException(Code)



resolve
public T resolve(Class<T> adaptee, IProgressMonitor monitor2)(Code)

See Also:   net.refractions.udig.catalog.ICatalog.resolve(java.lang.Classorg.eclipse.core.runtime.IProgressMonitor)
See Also:   "unchecked"})



saveToFile
public void saveToFile(File catalogLocation, IServiceFactory factory, IProgressMonitor monitor)(Code)



search
public synchronized List<IResolve> search(String pattern, Envelope bbox, IProgressMonitor monitor2)(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.
See Also:   net.refractions.udig.catalog.ICatalog.search(java.lang.Stringcom.vividsolutions.jts.geom.Envelope)
Parameters:
  pattern -
Parameters:
  bbox - used for an intersection test



Methods inherited from net.refractions.udig.catalog.ICatalog
abstract public void add(IService service) throws UnsupportedOperationException(Code)(Java Doc)
abstract public void addCatalogListener(IResolveChangeListener listener)(Code)(Java Doc)
abstract public IGeoResource createTemporaryResource(Object descriptor) throws IllegalArgumentException(Code)(Java Doc)
public void dispose(IProgressMonitor monitor)(Code)(Java Doc)
abstract public List<IResolve> find(URL resource, IProgressMonitor monitor)(Code)(Java Doc)
abstract public List<IService> findService(URL query)(Code)(Java Doc)
abstract public T getById(Class<T> type, URL id, IProgressMonitor monitor)(Code)(Java Doc)
public ICatalogInfo getInfo(IProgressMonitor monitor) throws IOException(Code)(Java Doc)
abstract public String[] getTemporaryDescriptorClasses()(Code)(Java Doc)
public IResolve parent(IProgressMonitor monitor)(Code)(Java Doc)
abstract public void remove(IService service) throws UnsupportedOperationException(Code)(Java Doc)
abstract public void removeCatalogListener(IResolveChangeListener listener)(Code)(Java Doc)
abstract public void replace(URL id, IService service) throws UnsupportedOperationException(Code)(Java Doc)
abstract public T resolve(Class<T> adaptee, IProgressMonitor monitor) throws IOException(Code)(Java Doc)
abstract public List<IResolve> search(String pattern, Envelope bbox, IProgressMonitor monitor) throws IOException(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.