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


java.lang.Object
   org.geotools.util.GenericName
      org.geotools.util.ScopedName

ScopedName
public class ScopedName extends org.geotools.util.GenericName implements org.opengis.util.ScopedName(Code)
Fully qualified identifier for an object. A ScopedName contains a LocalName as and a , which may be a LocalName or an other org.opengis.util.ScopedName , as .
since:
   2.1
version:
   $Id: ScopedName.java 22443 2006-10-27 20:47:22Z desruisseaux $
author:
   Martin Desruisseaux
See Also:   NameFactory



Constructor Summary
public  ScopedName(GenericName scope, CharSequence name)
     Constructs a scoped name from the specified international string. If the specified name is an InternationalString , then the (null) method will be used in order to fetch an unlocalized name.
public  ScopedName(GenericName scope, char separator, CharSequence name)
     Constructs a scoped name from the specified international string. If the specified name is an InternationalString , then the (null) method will be used in order to fetch an unlocalized name.

Method Summary
public  LocalNameasLocalName()
     Returns a view of this object as a local name.
public  org.opengis.util.ScopedNameasScopedName()
     Returns a view of this object as a scoped name.
public  intdepth()
     Returns the depth of this name within the namespace hierarchy.
public  booleanequals(Object object)
     Compares this scoped name with the specified object for equality.
public  ListgetParsedNames()
     Returns the sequence of local name for this .
public  GenericNamegetScope()
     Returns the scope of this name.
public  chargetSeparator()
     Returns the separator character.
public  inthashCode()
     Returns a hash code value for this generic name.
public  LocalNamehead()
     Returns the head of this scoped name.
public  LocalNamename()
     Returns the last element in the sequence of .
public  GenericNamepath()
     Returns a name which contains every element of the except for the last element.
public  org.opengis.util.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  GenericNametail()
     Returns the tail of this scoped name.
public  GenericNametoFullyQualifiedName()
     Returns a view of this name as a fully-qualified name.


Constructor Detail
ScopedName
public ScopedName(GenericName scope, CharSequence name)(Code)
Constructs a scoped name from the specified international string. If the specified name is an InternationalString , then the (null) method will be used in order to fetch an unlocalized name. Otherwise, the () method will be used.
Parameters:
  scope - The scope (or "tail") of the variable.
Parameters:
  name - The head (never null ).



ScopedName
public ScopedName(GenericName scope, char separator, CharSequence name)(Code)
Constructs a scoped name from the specified international string. If the specified name is an InternationalString , then the (null) method will be used in order to fetch an unlocalized name. Otherwise, the () method will be used.
Parameters:
  scope - The scope (or "tail") of the variable.
Parameters:
  separator - The separator character (usually ':' or '/').
Parameters:
  name - The head (never null ).




Method Detail
asLocalName
public LocalName asLocalName()(Code)
Returns a view of this object as a local name. This is the last element in the sequence of . The local name returned by this method will still have the same than this scoped name. Note however that the string returned by LocalName.toString will differs. ScopedName.name



asScopedName
public org.opengis.util.ScopedName asScopedName()(Code)
Returns a view of this object as a scoped name. Since this object is already a scoped name, this method always returns this . ScopedName.toFullyQualifiedName



depth
public int depth()(Code)
Returns the depth of this name within the namespace hierarchy. This indicates the number of levels specified by this name. For any LocalName , it is always one. For a ScopedName it is some number greater than or equal to 2.

The depth is the length of the list returned by the ScopedName.getParsedNames method. As such it is a derived parameter.
since:
   2.3




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



getParsedNames
public List getParsedNames()(Code)
Returns the sequence of local name for this .



getScope
public GenericName getScope()(Code)
Returns the scope of this name. ScopedName.scope()



getSeparator
public char getSeparator()(Code)
Returns the separator character.



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



head
public LocalName head()(Code)
Returns the head of this scoped name. This is the first elements in the sequence of . The head element must exists in the same than this scoped name. In other words, the following relationship must holds:

  • head().scope() == this.

since:
   2.3



name
public LocalName name()(Code)
Returns the last element in the sequence of .
See Also:   java.io.File.getName
since:
   2.3



path
public GenericName path()(Code)
Returns a name which contains every element of the except for the last element.
See Also:   java.io.File.getPath
since:
   2.3



push
public org.opengis.util.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 . In pseudo-code, the following relationships must hold:

  • push(name).getParsedList() == name.getParsedList().addAll( )
  • push(name).scope() == name.
  • push( ). == this

Note: Those conditions can be understood in terms of the Java Object.equals equals method instead of the Java identity comparator == .
since:
   2.3




scope
public NameSpace scope()(Code)
Returns the scope (name space) in which this name is local. The scope is set on creation and is not modifiable. The scope of a name determines where a name "starts". For instance, if a name has a of two ( "util.GenericName" ) and is associated with a having the name "org.opengis" , then the fully qualified name would be "org.opengis.util.GenericName" .
since:
   2.3



tail
public GenericName tail()(Code)
Returns the tail of this scoped name. The returned name contains every elements of the except for the first one, which is the . In other words, the following relationship must holds:

  • tail().getParsedNames() == this. .sublist(1,end)

Note: This condition can be understood in terms of the Java java.util.List.equals equals method instead of the Java identity comparator == .
since:
   2.3




toFullyQualifiedName
public GenericName toFullyQualifiedName()(Code)
Returns a view of this name as a fully-qualified name. The of a fully qualified name must be . This method never returns null .
since:
   2.3



Fields inherited from org.geotools.util.GenericName
final public static char DEFAULT_SEPARATOR(Code)(Java Doc)

Methods inherited from org.geotools.util.GenericName
public int compareTo(Object object)(Code)(Java Doc)
abstract public int depth()(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
abstract public List getParsedNames()(Code)(Java Doc)
char getSeparator()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
abstract public LocalName name()(Code)(Java Doc)
abstract public NameSpace scope()(Code)(Java Doc)
public InternationalString toInternationalString()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
static CharSequence validate(CharSequence name)(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.