org.deegree.cs.persistence.deegree.d3.parsers
Class EllipsoidParser

java.lang.Object
  extended by org.deegree.cs.persistence.deegree.d3.parsers.DefinitionParser
      extended by org.deegree.cs.persistence.deegree.d3.parsers.EllipsoidParser

public class EllipsoidParser
extends DefinitionParser

Stax-based configuration parser for ellipsoid objects.

Version:
$Revision: 31619 $, $Date: 2011-08-23 14:56:28 +0200 (Tue, 23 Aug 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.cs.persistence.deegree.d3.parsers.DefinitionParser
store
 
Constructor Summary
EllipsoidParser(DeegreeCRSStore provider, URL confURL)
           
 
Method Summary
protected  QName expectedRootName()
           
 Ellipsoid getEllipsoidForId(String ellipsoidID)
          Tries to find a cached ellipsoid, if not found, the config will be checked.
protected  Ellipsoid parseEllipsoid(XMLStreamReader reader)
           
 
Methods inherited from class org.deegree.cs.persistence.deegree.d3.parsers.DefinitionParser
getConfigReader, getConfigURL, getStore, moveReaderToNextIdentifiable, moveReaderToNextIdentifiable, parseIdentifiable, parseLatLonType, parseUnit, readEntireFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EllipsoidParser

public EllipsoidParser(DeegreeCRSStore provider,
                       URL confURL)
Parameters:
provider -
confURL -
Method Detail

getEllipsoidForId

public Ellipsoid getEllipsoidForId(String ellipsoidID)
                            throws CRSConfigurationException
Tries to find a cached ellipsoid, if not found, the config will be checked.

Parameters:
ellipsoidID -
Returns:
an ellipsoid or null if no ellipsoid with given id was found, or the id was null or empty.
Throws:
CRSConfigurationException - if something went wrong.

parseEllipsoid

protected Ellipsoid parseEllipsoid(XMLStreamReader reader)
                            throws XMLStreamException
Parameters:
reader - to use
Returns:
the next ellipsoid or null if no more definitions were found.
Throws:
XMLStreamException

expectedRootName

protected QName expectedRootName()
Specified by:
expectedRootName in class DefinitionParser
Returns:
the top level element of a configuration file.


Copyright © 2011. All Rights Reserved.