comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportAttribute.java @ 186:cf8cbcb6a10d

Added parser to read *.KM files. flys-backend/trunk@1506 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 17 Mar 2011 17:43:57 +0000
parents a60edcfe5f53
children ecf90018563b
comparison
equal deleted inserted replaced
185:a60edcfe5f53 186:cf8cbcb6a10d
1 package de.intevation.flys.importer; 1 package de.intevation.flys.importer;
2 2
3 public class ImportAttribute 3 public class ImportAttribute
4 implements Comparable<ImportAttribute>
4 { 5 {
5 protected String value; 6 protected String value;
6 7
7 public ImportAttribute() { 8 public ImportAttribute() {
9 }
10
11 public ImportAttribute(String value) {
12 this.value = value;
8 } 13 }
9 14
10 public String getValue() { 15 public String getValue() {
11 return value; 16 return value;
12 } 17 }
13 18
14 public void setValue(String value) { 19 public void setValue(String value) {
15 this.value = value; 20 this.value = value;
21 }
22
23 public int compareTo(ImportAttribute other) {
24 return value.compareTo(other.value);
16 } 25 }
17 26
18 @Override 27 @Override
19 public boolean equals(Object other) { 28 public boolean equals(Object other) {
20 if (other == this) return true; 29 if (other == this) return true;

http://dive4elements.wald.intevation.org