org.geotools.referencing.wkt
Class MathTransformParser

java.lang.Object
  extended byjava.text.Format
      extended byorg.geotools.referencing.wkt.AbstractParser
          extended byorg.geotools.referencing.wkt.MathTransformParser
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
Parser

public class MathTransformParser
extends AbstractParser

Parser for math transform Well Known Text (WKT) of math transform.

Since:
2.0
Version:
$Id: MathTransformParser.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Remi Eve, Martin Desruisseaux, Rueben Schulz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.text.Format
java.text.Format.Field
 
Field Summary
protected  org.opengis.referencing.operation.MathTransformFactory mtFactory
          The factory to use for creating math transforms.
 
Constructor Summary
MathTransformParser()
          Constructs a parser using the default set of symbols.
MathTransformParser(Symbols symbols)
          Constructs a parser using the specified set of symbols and the default factories.
MathTransformParser(Symbols symbols, org.opengis.referencing.operation.MathTransformFactory mtFactory)
          Constructs a parser for the specified set of symbols and factory.
 
Method Summary
protected  java.lang.Object parse(Element element)
          Parses the next element in the specified Well Know Text (WKT) tree.
 org.opengis.referencing.operation.MathTransform parseMathTransform(java.lang.String text)
          Parses a math transform element.
 
Methods inherited from class org.geotools.referencing.wkt.AbstractParser
format, getAuthority, getTree, parseObject, parseObject, reformat, setAuthority
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mtFactory

protected final org.opengis.referencing.operation.MathTransformFactory mtFactory
The factory to use for creating math transforms.

Constructor Detail

MathTransformParser

public MathTransformParser()
Constructs a parser using the default set of symbols.


MathTransformParser

public MathTransformParser(Symbols symbols)
Constructs a parser using the specified set of symbols and the default factories.

Parameters:
symbols - The symbols for parsing and formatting numbers.
To Do:
Pass hints in argument.

MathTransformParser

public MathTransformParser(Symbols symbols,
                           org.opengis.referencing.operation.MathTransformFactory mtFactory)
Constructs a parser for the specified set of symbols and factory.

Parameters:
symbols - The symbols for parsing and formatting numbers.
mtFactory - The factory to use to create MathTransform objects.
Method Detail

parseMathTransform

public org.opengis.referencing.operation.MathTransform parseMathTransform(java.lang.String text)
                                                                   throws java.text.ParseException
Parses a math transform element.

Parameters:
text - The text to be parsed.
Returns:
The math transform.
Throws:
java.text.ParseException - if the string can't be parsed.

parse

protected java.lang.Object parse(Element element)
                          throws java.text.ParseException
Parses the next element in the specified Well Know Text (WKT) tree.

Specified by:
parse in class AbstractParser
Parameters:
element - The element to be parsed.
Returns:
The object.
Throws:
java.text.ParseException - if the element can't be parsed.


Copyright © GeoTools. All Rights Reserved.