01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.geoserver.feature.retype;
06:
07: import org.geotools.feature.FeatureType;
08:
09: /**
10: * A support class containing the old feature type name, the new one, the old
11: * feature type, and the new one
12: *
13: * @author Andrea Aime
14: */
15: class FeatureTypeMap {
16: String originalName;
17:
18: String name;
19:
20: FeatureType originalFeatureType;
21:
22: FeatureType featureType;
23:
24: public FeatureTypeMap(String originalName, String name) {
25: this .originalName = originalName;
26: this .name = name;
27: }
28:
29: public String getOriginalName() {
30: return originalName;
31: }
32:
33: public String getName() {
34: return name;
35: }
36:
37: public FeatureType getOriginalFeatureType() {
38: return originalFeatureType;
39: }
40:
41: public FeatureType getFeatureType() {
42: return featureType;
43: }
44:
45: public boolean isUnchanged() {
46: return originalName.equals(name);
47: }
48:
49: public void setFeatureTypes(FeatureType original,
50: FeatureType transformed) {
51: this.originalFeatureType = original;
52: this.featureType = transformed;
53: }
54:
55: }
|