Java Doc for Citations.java in  » GIS » GeoTools-2.4.1 » org » geotools » metadata » iso » citation » 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 » GeoTools 2.4.1 » org.geotools.metadata.iso.citation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.metadata.iso.citation.Citations

Citations
final public class Citations (Code)
A set of pre-defined constants and static methods working on . Pre-defined metadata constants are usually declared in implementation classes like ResponsiblePartyImpl . But citations are an exception since they are extensively referenced in the Geotools library, and handling citations requires some convenience methods. They are factored out in this Citations class for clarity.

Citations may be about an organisation (e.g. ), a specification (e.g. ) or an authority that maintains definitions of codes (e.g. ). In the later case, the citation contains an which is the namespace of the codes maintained by the authority. For example the identifier for the Citations.EPSG citation is "EPSG" , and EPSG codes look like "EPSG:4326" .
since:
   2.2
version:
   $Id: Citations.java 27523 2007-10-17 09:14:21Z desruisseaux $
author:
   Martin Desruisseaux
author:
   Jody Garnett @category



Field Summary
final public static  CitationAUTO
     The WMS 1.1.1 "Automatic Projections" authority.
final public static  CitationAUTO2
     The WMS 1.3.0 "Automatic Projections" authority.
final public static  CitationCRS
     The WMS 1.3.0 "CRS" authority.
final public static  CitationEPSG
     The European Petroleum Survey Group authority. An for this citation is "EPSG" (according ISO 19115, alternate titles often contain abreviations).
final public static  CitationESRI
     The ESRI organisation.
final public static  CitationGEOTIFF
     The GeoTIFF specification.
final public static  CitationGEOTOOLS
     The Geotools project.
final public static  CitationHTTP_OGC
     URL in the OGC namespace.
final public static  CitationJAI
     The Java Advanced Imaging library.
final public static  CitationOGC
     The Open Geospatial consortium organisation.
final public static  CitationOPEN_GIS
     The OpenGIS consortium organisation.
final public static  CitationORACLE
     The Oracle organisation.
final public static  CitationPOSTGIS
     The PostGIS project.
final public static  CitationURN_OGC
     URN in the OGC namespace.
final public static  CitationWMS
     The Web Map Service specification.


Method Summary
public static  CitationfromName(String title)
     Returns a citation of the given name.
public static  StringgetIdentifier(Citation citation)
     Returns the shortest identifier for the specified citation, or the title if there is no identifier.
public static  booleanidentifierMatches(Citation c1, Citation c2)
     Returns true if at least one in c1 is equals to an identifier in c2 .
public static  booleanidentifierMatches(Citation citation, String identifier)
     Returns true if any in the given citation matches the given string.
public static  booleantitleMatches(Citation c1, Citation c2)
     Returns true if at least one or in c1 is equals to a title or alternate title in c2 .
public static  booleantitleMatches(Citation citation, String title)
     Returns true if the or any in the given citation matches the given string.

Field Detail
AUTO
final public static Citation AUTO(Code)
The WMS 1.1.1 "Automatic Projections" authority. An for this citation is "AUTO" (according ISO 19115, alternate titles often contain abreviations). In addition, this citation contains the "AUTO" for the "Authority name" .

Warning: AUTO is different from Citations.AUTO2 used for WMS 1.3.0.

This citation is used as an authority for identifiers. When searching an on AUTO data, Geotools compares the "AUTO" string against the (or against the and if there is no identifier) using the Citations.identifierMatches(Citation,String) identifierMatches method.
See Also:    Open Geospatial Consortium
See Also:    WMS 1.1.1 specification
See Also:   Citations.WMS
See Also:   Citations.AUTO2
See Also:   Citations.CRS
See Also:   Citations.EPSG




AUTO2
final public static Citation AUTO2(Code)
The WMS 1.3.0 "Automatic Projections" authority. An for this citation is "AUTO2" (according ISO 19115, alternate titles often contain abreviations). In addition, this citation contains the "AUTO2" for the "Authority name" .

Warning: AUTO2 is different from Citations.AUTO used for WMS 1.1.1 and earlier.

This citation is used as an authority for identifiers. When searching an on AUTO2 data, Geotools compares the "AUTO2" string against the (or against the and if there is no identifier) using the Citations.identifierMatches(Citation,String) identifierMatches method.
See Also:    Open Geospatial Consortium
See Also:    WMS 1.3.0 specification
See Also:   Citations.WMS
See Also:   Citations.AUTO
See Also:   Citations.CRS
See Also:   Citations.EPSG




CRS
final public static Citation CRS(Code)
The WMS 1.3.0 "CRS" authority. This is defined in the same document than Citations.AUTO2 .
See Also:   Citations.WMS
See Also:   Citations.AUTO
See Also:   Citations.AUTO2
See Also:   Citations.CRS
See Also:   Citations.EPSG



EPSG
final public static Citation EPSG(Code)
The European Petroleum Survey Group authority. An for this citation is "EPSG" (according ISO 19115, alternate titles often contain abreviations). In addition, this citation contains the "EPSG" for the "Authority name" .

This citation is used as an authority for identifiers. When searching an on EPSG data, Geotools compares the "EPSG" string against the (or against the and if there is no identifier) using the Citations.identifierMatches(Citation,String) identifierMatches method.
See Also:   ResponsiblePartyImpl.EPSG
See Also:   Citations.AUTO
See Also:   Citations.AUTO2
See Also:   Citations.CRS




ESRI
final public static Citation ESRI(Code)
The ESRI organisation.
See Also:   ResponsiblePartyImpl.ESRI



GEOTIFF
final public static Citation GEOTIFF(Code)
The GeoTIFF specification.
See Also:   ResponsiblePartyImpl.GEOTIFF



GEOTOOLS
final public static Citation GEOTOOLS(Code)
The Geotools project.
See Also:   ResponsiblePartyImpl.GEOTOOLS



HTTP_OGC
final public static Citation HTTP_OGC(Code)
URL in the OGC namespace. This citation contains the "http://www.opengis.net" for the "Authority name" .
since:
   2.4



JAI
final public static Citation JAI(Code)
The Java Advanced Imaging library. An for this citation is "JAI" (according ISO 19115, alternate titles often contain abreviations).
See Also:   ResponsiblePartyImpl.SUN_MICROSYSTEMS



OGC
final public static Citation OGC(Code)
The Open Geospatial consortium organisation. "Open Geospatial consortium" is the new name for "OpenGIS consortium". An for this citation is "OGC" (according ISO 19115, alternate titles often contain abreviations).
See Also:   ResponsiblePartyImpl.OGC
See Also:   Citations.OPEN_GIS



OPEN_GIS
final public static Citation OPEN_GIS(Code)
The OpenGIS consortium organisation. "OpenGIS consortium" is the old name for "Open Geospatial consortium". for this citation are "OpenGIS" and "OGC" (according ISO 19115, alternate titles often contain abreviations).
See Also:   ResponsiblePartyImpl.OPEN_GIS
See Also:   Citations.OGC



ORACLE
final public static Citation ORACLE(Code)
The Oracle organisation.
See Also:   ResponsiblePartyImpl.ORACLE



POSTGIS
final public static Citation POSTGIS(Code)
The PostGIS project.
See Also:   ResponsiblePartyImpl.POSTGIS
since:
   2.4



URN_OGC
final public static Citation URN_OGC(Code)
URN in the OGC namespace. This citation contains the "urn:ogc:def" and "urn:x-ogc:def" for the "Authority name" .
since:
   2.4



WMS
final public static Citation WMS(Code)
The Web Map Service specification. for this citation are "WMS", "WMS 1.3.0", "OGC 04-024" and "ISO 19128". Note that the version numbers may be upgrated in future Geotools versions.
See Also:    Open Geospatial Consortium
See Also:    WMS 1.1.1 specification
See Also:    WMS 1.3.0 specification
See Also:   ResponsiblePartyImpl.OGC
See Also:   OnLineResourceImpl.WMS





Method Detail
fromName
public static Citation fromName(String title)(Code)
Returns a citation of the given name. If the given name matches a or an of one of the pre-defined constants ( Citations.EPSG , Citations.GEOTIFF , etc.), then this constant is returned. Otherwise, a new citation is created with the specified name as the title.
Parameters:
  title - The citation title (or alternate title). A citation using the specified name



getIdentifier
public static String getIdentifier(Citation citation)(Code)
Returns the shortest identifier for the specified citation, or the title if there is no identifier. This method is useful for extracting the namespace from an authority, for example "EPSG" .
since:
   2.4



identifierMatches
public static boolean identifierMatches(Citation c1, Citation c2)(Code)
Returns true if at least one in c1 is equals to an identifier in c2 . The comparaison is case-insensitive and ignores leading and trailing spaces. The identifier ordering is not significant.

If (and only if) the citations do not contains any identifier, then this method fallback on titles comparaison using the Citations.titleMatches(Citation,Citation)titleMatches method. This fallback exists for compatibility with client codes using citation without identifiers.
Parameters:
  c1 - The first citation to compare.
Parameters:
  c2 - the second citation to compare. true if at least one identifier, title or alternate title matches.




identifierMatches
public static boolean identifierMatches(Citation citation, String identifier)(Code)
Returns true if any in the given citation matches the given string. The comparaison is case-insensitive and ignores leading and trailing spaces. If (and only if) the citation do not contains any identifier, then this method fallback on titles comparaison using the Citations.titleMatches(Citation,String) titleMatches method. This fallback exists for compatibility with client codes using citation without identifiers.
Parameters:
  citation - The citation to check for.
Parameters:
  identifier - The identifier to compare. true if the title or alternate title matches the given string.



titleMatches
public static boolean titleMatches(Citation c1, Citation c2)(Code)
Returns true if at least one or in c1 is equals to a title or alternate title in c2 . The comparaison is case-insensitive and ignores leading and trailing spaces. The titles ordering is not significant.
Parameters:
  c1 - The first citation to compare.
Parameters:
  c2 - the second citation to compare. true if at least one title or alternate title matches.



titleMatches
public static boolean titleMatches(Citation citation, String title)(Code)
Returns true if the or any in the given citation matches the given string. The comparaison is case-insensitive and ignores leading and trailing spaces.
Parameters:
  citation - The citation to check for.
Parameters:
  title - The title or alternate title to compare. true if the title or alternate title matches the given string.



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.