comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java @ 4723:83304d3651ec

DA66Parser: Whitespace cosmetics.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 27 Dec 2012 16:14:15 +0100
parents c3e2b0d343dc
children 4f7d264c27f5
comparison
equal deleted inserted replaced
4722:c3e2b0d343dc 4723:83304d3651ec
56 "([0-9 -JKMLMNOPQR]{7})?" + // y 56 "([0-9 -JKMLMNOPQR]{7})?" + // y
57 "([0-9 -]{7})?" // z 57 "([0-9 -]{7})?" // z
58 ); 58 );
59 //Pattern.compile("^([0-9 -]{2})"); 59 //Pattern.compile("^([0-9 -]{2})");
60 60
61
61 /** Indices to match group of main regex. */ 62 /** Indices to match group of main regex. */
62 private static enum FIELD { 63 private static enum FIELD {
63 HEAD ( 1), 64 HEAD ( 1),
64 UNSET ( 2), 65 UNSET ( 2),
65 ID ( 3), 66 ID ( 3),
84 } 85 }
85 int getIdx() { 86 int getIdx() {
86 return idx; 87 return idx;
87 } 88 }
88 } 89 }
90
89 91
90 /** Header lines of da66 can define a type. */ 92 /** Header lines of da66 can define a type. */
91 private static enum Type { 93 private static enum Type {
92 DATE ( 0), 94 DATE ( 0),
93 HEKTOSTONE_LEFT ( 1), //grm. "Standlinie" 95 HEKTOSTONE_LEFT ( 1), //grm. "Standlinie"
138 public int getId() { 140 public int getId() {
139 return id; 141 return id;
140 } 142 }
141 } 143 }
142 144
145
143 /** Available types. */ 146 /** Available types. */
144 private static HashMap<Integer, Type> typeMap; 147 private static HashMap<Integer, Type> typeMap;
145 148
149
146 /** Types we can deal with. */ 150 /** Types we can deal with. */
147 private static List<Type> implementedTypes; 151 private static List<Type> implementedTypes;
152
148 153
149 static { 154 static {
150 typeMap = new HashMap<Integer, Type>(); 155 typeMap = new HashMap<Integer, Type>();
151 for (Type t: Type.values()) { 156 for (Type t: Type.values()) {
152 typeMap.put(new Integer(t.getId()), t); 157 typeMap.put(new Integer(t.getId()), t);

http://dive4elements.wald.intevation.org