deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.crs.configuration.deegree.xml.stax.parsers
Class EllipsoidParser

java.lang.Object
  extended by org.deegree.crs.configuration.deegree.xml.stax.parsers.DefinitionParser
      extended by org.deegree.crs.configuration.deegree.xml.stax.parsers.EllipsoidParser

public class EllipsoidParser
extends DefinitionParser

A stax based 0.4.0 crs configuration parser for ellipsoid objects.

Version:
$Revision: 22662 $, $Date: 2010-02-19 14:51:52 +0100 (Fr, 19 Feb 2010) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Constructor Summary
EllipsoidParser(DeegreeCRSProvider<StAXResource> 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.crs.configuration.deegree.xml.stax.parsers.DefinitionParser
getConfigReader, getConfigURL, getProvider, 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(DeegreeCRSProvider<StAXResource> 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.

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>