org.deegree.crs.configuration.deegree.xml.stax.parsers
Class EllipsoidParser
java.lang.Object
org.deegree.crs.configuration.deegree.xml.stax.parsers.DefinitionParser
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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EllipsoidParser
public EllipsoidParser(DeegreeCRSProvider<StAXResource> 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.
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>