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


java.lang.Object
   org.geotools.referencing.wkt.Element

Element
final public class Element (Code)
An element in a Well Know Text (WKT). A Element is made of String , Number and other Element . For example:
 PRIMEM["Greenwich", 0.0, AUTHORITY["some authority", "Greenwich"]]
 
Each Element object can contains an arbitrary amount of other elements. The result is a tree, which can be printed with Element.print . Elements can be pull in a first in, first out order.
since:
   2.0
version:
   $Id: Element.java 21289 2006-08-30 10:52:24Z desruisseaux $
author:
   Remi Eve
author:
   Martin Desruisseaux


Field Summary
final public  Stringkeyword
     Keyword of this entity.

Constructor Summary
 Element(Element singleton)
     Constructs a root element.
 Element(AbstractParser parser, String text, ParsePosition position)
     Constructs a new Element .

Method Summary
public  voidclose()
     Close this element.
public  booleanisRoot()
     Returns true if this element is the root element.
public  ParseExceptionparseFailed(Exception cause, String message)
     Returns a ParseException with the specified cause.
public  Objectpeek()
     Returns the next element, or null if there is no more element.
public  voidprint(PrintWriter out, int level)
     Print this Element as a tree.
public  doublepullDouble(String key)
     Removes the next Number from the list and returns it.
Parameters:
  key - The parameter name.
public  ElementpullElement(String key)
     Removes the next Element from the list and returns it.
Parameters:
  key - The element name (e.g.
public  intpullInteger(String key)
     Removes the next Number from the list and returns it as an integer.
Parameters:
  key - The parameter name.
public  ElementpullOptionalElement(String key)
     Removes the next Element from the list and returns it.
Parameters:
  key - The element name (e.g.
public  StringpullString(String key)
     Removes the next String from the list and returns it.
Parameters:
  key - The parameter name.
public  ElementpullVoidElement(String key)
     Removes and returns the next Element with no bracket. The key is used only for only for formatting an error message.
Parameters:
  key - The parameter name.
public  StringtoString()
     Returns the keyword.

Field Detail
keyword
final public String keyword(Code)
Keyword of this entity. For example: "PRIMEM".




Constructor Detail
Element
Element(Element singleton)(Code)
Constructs a root element.
Parameters:
  singleton - The only children for this root.



Element
Element(AbstractParser parser, String text, ParsePosition position) throws ParseException(Code)
Constructs a new Element .
Parameters:
  text - The text to parse.
Parameters:
  position - In input, the position where to start parsing from.In output, the first character after the separator.




Method Detail
close
public void close() throws ParseException(Code)
Close this element.
throws:
  ParseException - If the list still contains some unprocessed elements.



isRoot
public boolean isRoot()(Code)
Returns true if this element is the root element. For example in a WKT like "GEOGCS["name", DATUM["name, ...]]" , this is true for "GEOGCS" and false for all other elements inside, like "DATUM" .
since:
   2.3



parseFailed
public ParseException parseFailed(Exception cause, String message)(Code)
Returns a ParseException with the specified cause. A localized string "Error in < Element.keyword >" will be prepend to the message. The error index will be the starting index of this Element .
Parameters:
  cause - The cause of the failure, or null if none.
Parameters:
  message - The message explaining the cause of the failure, or null for reusing the same message than cause . The exception to be thrown.



peek
public Object peek()(Code)
Returns the next element, or null if there is no more element. The element is not removed from the list.



print
public void print(PrintWriter out, int level)(Code)
Print this Element as a tree. This method is used for debugging purpose only.
Parameters:
  out - The output stream.
Parameters:
  level - The indentation level (usually 0).



pullDouble
public double pullDouble(String key) throws ParseException(Code)
Removes the next Number from the list and returns it.
Parameters:
  key - The parameter name. Used for formattingan error message if no number are found. The next Number on the list as a double .
throws:
  ParseException - if no more number is available.



pullElement
public Element pullElement(String key) throws ParseException(Code)
Removes the next Element from the list and returns it.
Parameters:
  key - The element name (e.g. "PRIMEM"). The next Element on the list.
throws:
  ParseException - if no more element is available.



pullInteger
public int pullInteger(String key) throws ParseException(Code)
Removes the next Number from the list and returns it as an integer.
Parameters:
  key - The parameter name. Used for formattingan error message if no number are found. The next Number on the list as an int .
throws:
  ParseException - if no more number is available, or the numberis not an integer.



pullOptionalElement
public Element pullOptionalElement(String key)(Code)
Removes the next Element from the list and returns it.
Parameters:
  key - The element name (e.g. "PRIMEM"). The next Element on the list,or null if no more element is available.



pullString
public String pullString(String key) throws ParseException(Code)
Removes the next String from the list and returns it.
Parameters:
  key - The parameter name. Used for formattingan error message if no number are found. The next String on the list.
throws:
  ParseException - if no more string is available.



pullVoidElement
public Element pullVoidElement(String key) throws ParseException(Code)
Removes and returns the next Element with no bracket. The key is used only for only for formatting an error message.
Parameters:
  key - The parameter name. Used only for formatting an error message. The next Element in the list, with no bracket.
throws:
  ParseException - if no more void element is available.



toString
public String toString()(Code)
Returns the keyword. This overriding is needed for correct formatting of the error message in Element.close .



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.