source: josm/trunk/src/org/openstreetmap/josm/data/projection/datum/AbstractDatum.java

Last change on this file was 16553, checked in by Don-vip, 4 years ago

see #19334 - javadoc fixes + protected constructors for abstract classes

  • Property svn:eol-style set to native
File size: 1001 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.projection.datum;
3
4import org.openstreetmap.josm.data.projection.Ellipsoid;
5
6/**
7 * Abstract base class for {@link Datum} implementations.
8 *
9 * Adds common fields and access methods.
10 * @since 4285
11 */
12public abstract class AbstractDatum implements Datum {
13
14 protected String name;
15 protected String proj4Id;
16 protected Ellipsoid ellps;
17
18 /**
19 * Constructs a new {@code AbstractDatum}.
20 * @param name The name
21 * @param proj4Id The Proj4 identifier
22 * @param ellps The ellipsoid
23 */
24 protected AbstractDatum(String name, String proj4Id, Ellipsoid ellps) {
25 this.name = name;
26 this.proj4Id = proj4Id;
27 this.ellps = ellps;
28 }
29
30 @Override
31 public String getName() {
32 return name;
33 }
34
35 @Override
36 public String getProj4Id() {
37 return proj4Id;
38 }
39
40 @Override
41 public Ellipsoid getEllipsoid() {
42 return ellps;
43 }
44}
Note: See TracBrowser for help on using the repository browser.