org.deegree.cs.persistence.deegree.d3.parsers
Class EllipsoidParser
java.lang.Object
org.deegree.cs.persistence.deegree.d3.parsers.DefinitionParser
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EllipsoidParser
public EllipsoidParser(DeegreeCRSStore provider,
URL confURL)
- Parameters:
provider
- confURL
-
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.