org.geotools.referencing.wkt
Class MathTransformParser

Object
  extended by Format
      extended by AbstractParser
          extended by MathTransformParser
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
Parser

public class MathTransformParser
extends AbstractParser

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

Since:
2.0
Author:
Remi Eve, Martin Desruisseaux (IRD), Rueben Schulz
See Also:
Serialized Form
Module:
modules/library/referencing (gt-referencing.jar)

Nested Class Summary
 
Nested classes/interfaces inherited from class Format
Format.Field
 
Field Summary
protected  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, MathTransformFactory mtFactory)
          Constructs a parser for the specified set of symbols and factory.
 
Method Summary
protected  Object parse(Element element)
          Parses the next element in the specified Well Know Text (WKT) tree.
 MathTransform parseMathTransform(String text)
          Parses a math transform element.
 
Methods inherited from class AbstractParser
format, getAuthority, getTree, getWarning, isColorEnabled, parseObject, parseObject, reformat, setAuthority, setColorEnabled
 
Methods inherited from class Format
clone, format, formatToCharacterIterator
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mtFactory

protected final 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.

MathTransformParser

public MathTransformParser(Symbols symbols,
                           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 MathTransform parseMathTransform(String text)
                                 throws ParseException
Parses a math transform element.

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

parse

protected Object parse(Element element)
                throws 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:
ParseException - if the element can't be parsed.


Copyright © 1996-2010 Geotools. All Rights Reserved.