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


java.lang.Object
   org.geotools.referencing.NamedIdentifier

NamedIdentifier
public class NamedIdentifier implements ReferenceIdentifier,GenericName,Serializable(Code)
An identification of a CRS object. The main interface implemented by this class is ReferenceIdentifier . However, this class also implements GenericName in order to make it possible to reuse the same identifiers in the list of . Casting an alias's to an gives access to more informations, like the URL of the authority.

The will be infered from attributes. More specifically, a will be constructed using the shortest authority's (or the if there is no alternate titles) as the , and the as the . This heuristic rule seems raisonable since, according ISO 19115, the often contains abreviation (for example "DCW" as an alternative title for "Digital Chart of the World").
since:
   2.1
version:
   $Id: NamedIdentifier.java 27862 2007-11-12 19:51:19Z desruisseaux $
author:
   Martin Desruisseaux




Constructor Summary
public  NamedIdentifier(Map properties)
     Constructs an identifier from a set of properties.
public  NamedIdentifier(Citation authority, InternationalString code)
     Constructs an identifier from an authority and code informations.
public  NamedIdentifier(Citation authority, String code)
     Constructs an identifier from an authority and code informations.
public  NamedIdentifier(Citation authority, String code, String version)
     Constructs an identifier from an authority and code informations.
 NamedIdentifier(Map properties, boolean standalone)
     Implementation of the constructor.

Method Summary
public  LocalNameasLocalName()
     Returns a view of this object as a local name.
public  ScopedNameasScopedName()
     Returns a view of this object as a scoped name, or null if this name has no scope.
public  intcompareTo(Object object)
     Compares this name with the specified object for order.
public  intdepth()
     Returns the depth of this name within the namespace hierarchy.
public  booleanequals(Object object)
     Compares this identifier with the specified object for equality.
public  CitationgetAuthority()
     Organization or party responsible for definition and maintenance of the .
public  StringgetCode()
     Identifier code or name, optionally from a controlled list or pattern.
public  StringgetCodeSpace()
     Name or identifier of the person or organization responsible for namespace.
public  ListgetParsedNames()
     Returns the sequence of making this generic name.
public  InternationalStringgetRemarks()
     Comments on or information about this identifier, or null if none.
public  GenericNamegetScope()
     Returns the scope (name space) of this generic name.
public  StringgetVersion()
     Identifier of the version of the associated code space or code, as specified by the code authority.
public  inthashCode()
     Returns a hash code value for this identifier.
public  LocalNamename()
     Returns the last element in the sequence of .
public  ScopedNamepush(GenericName scope)
     Returns this name expanded with the specified scope.
public  NameSpacescope()
     Returns the scope (name space) in which this name is local.
public  GenericNametoFullyQualifiedName()
     Returns a view of this name as a fully-qualified name.
public  InternationalStringtoInternationalString()
     Returns a local-dependent string representation of this generic name.
public  StringtoString()
     Returns a string representation of this generic name.


Constructor Detail
NamedIdentifier
public NamedIdentifier(Map properties) throws IllegalArgumentException(Code)
Constructs an identifier from a set of properties. Keys are strings from the table below. Key are case-insensitive, and leading and trailing spaces are ignored. The map given in argument shall contains at least a "code" property. Other properties listed in the table below are optional.

Property name Value type Value given to
  NamedIdentifier.CODE_KEY "code"     String     NamedIdentifier.getCode
  NamedIdentifier.CODESPACE_KEY "code"     String     NamedIdentifier.getCodeSpace
  NamedIdentifier.AUTHORITY_KEY "authority"     String or Citation     NamedIdentifier.getAuthority
  NamedIdentifier.VERSION_KEY "version"     String     NamedIdentifier.getVersion
  NamedIdentifier.REMARKS_KEY "remarks"     String or InternationalString     NamedIdentifier.getRemarks

"remarks" is a localizable attributes which may have a language and country code suffix. For example the "remarks_fr" property stands for remarks in and the "remarks_fr_CA" property stands for remarks in .


throws:
  InvalidParameterValueException - if a property has an invalid value.
throws:
  IllegalArgumentException - if a property is invalid for some other reason.



NamedIdentifier
public NamedIdentifier(Citation authority, InternationalString code)(Code)
Constructs an identifier from an authority and code informations. This is a convenience constructor for commonly-used parameters. If more control are wanted (for example adding remarks), use the .
Parameters:
  authority - The authority (e.g. Citations.OGC OGC or Citations.EPSG EPSG).
Parameters:
  code - The code. The is usedfor the code, and the international string is used for the.



NamedIdentifier
public NamedIdentifier(Citation authority, String code)(Code)
Constructs an identifier from an authority and code informations. This is a convenience constructor for commonly-used parameters. If more control are wanted (for example adding remarks), use the .
Parameters:
  authority - The authority (e.g. Citations.OGC OGC or Citations.EPSG EPSG).
Parameters:
  code - The code. This parameter is mandatory.



NamedIdentifier
public NamedIdentifier(Citation authority, String code, String version)(Code)
Constructs an identifier from an authority and code informations. This is a convenience constructor for commonly-used parameters. If more control are wanted (for example adding remarks), use the .
Parameters:
  authority - The authority (e.g. Citations.OGC OGC or Citations.EPSG EPSG).
Parameters:
  code - The code. This parameter is mandatory.
Parameters:
  version - The version, or null if none.



NamedIdentifier
NamedIdentifier(Map properties, boolean standalone) throws IllegalArgumentException(Code)
Implementation of the constructor. The remarks in the properties will be parsed only if the standalone argument is set to true , i.e. this identifier is being constructed as a standalone object. If false , then this identifier is assumed to be constructed from inside the AbstractIdentifiedObject constructor.
Parameters:
  properties - The properties to parse, as described in the public constructor.
Parameters:
  standalone - true for parsing "remarks" as well.
throws:
  InvalidParameterValueException - if a property has an invalid value.
throws:
  IllegalArgumentException - if a property is invalid for some other reason.




Method Detail
asLocalName
public LocalName asLocalName()(Code)
Returns a view of this object as a local name. The local name returned by this method will have the same than this generic name. NamedIdentifier.name()



asScopedName
public ScopedName asScopedName()(Code)
Returns a view of this object as a scoped name, or null if this name has no scope. NamedIdentifier.toFullyQualifiedName()



compareTo
public int compareTo(Object object)(Code)
Compares this name with the specified object for order. Returns a negative integer, zero, or a positive integer as this name lexicographically precedes, is equals to, or follows the specified object.



depth
public int depth()(Code)
Returns the depth of this name within the namespace hierarchy.
since:
   2.3



equals
public boolean equals(Object object)(Code)
Compares this identifier with the specified object for equality.



getAuthority
public Citation getAuthority()(Code)
Organization or party responsible for definition and maintenance of the . The authority, or null if not available.



getCode
public String getCode()(Code)
Identifier code or name, optionally from a controlled list or pattern. The code.



getCodeSpace
public String getCodeSpace()(Code)
Name or identifier of the person or organization responsible for namespace. The codespace, or null if not available.



getParsedNames
public List getParsedNames()(Code)
Returns the sequence of making this generic name. Each element in this list is like a directory name in a file path name. The length of this sequence is the generic name depth.



getRemarks
public InternationalString getRemarks()(Code)
Comments on or information about this identifier, or null if none.



getScope
public GenericName getScope()(Code)
Returns the scope (name space) of this generic name. If this name has no scope (e.g. is the root), then this method returns null . NamedIdentifier.scope()



getVersion
public String getVersion()(Code)
Identifier of the version of the associated code space or code, as specified by the code authority. This version is included only when the uses versions. When appropriate, the edition is identified by the effective date, coded using ISO 8601 date format. The version, or null if not available.



hashCode
public int hashCode()(Code)
Returns a hash code value for this identifier.



name
public LocalName name()(Code)
Returns the last element in the sequence of .
since:
   2.3



push
public ScopedName push(GenericName scope)(Code)
Returns this name expanded with the specified scope. One may represent this operation as a concatenation of the specified name with this .
since:
   2.3



scope
public NameSpace scope()(Code)
Returns the scope (name space) in which this name is local.
since:
   2.3



toFullyQualifiedName
public GenericName toFullyQualifiedName()(Code)
Returns a view of this name as a fully-qualified name.
since:
   2.3



toInternationalString
public InternationalString toInternationalString()(Code)
Returns a local-dependent string representation of this generic name. This string is similar to the one returned by NamedIdentifier.toString except that each element has been localized in the . If no international string is available, then this method returns an implementation mapping to NamedIdentifier.toString for all locales.



toString
public String toString()(Code)
Returns a string representation of this generic name. This string representation is local-independant. It contains all elements listed by NamedIdentifier.getParsedNames separated by an arbitrary character (usually : or / ).



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.