Changeset 824 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2008-08-22T15:52:17+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java
r679 r824 67 67 if (mapping.get(qname).onStart) 68 68 report(); 69 if (mapping.get(qname).both) 70 { 71 try { 72 queue.put(current.peek()); 73 } catch (InterruptedException e) { 74 } 75 } 69 76 } 70 77 } … … 156 163 Class<?> klass; 157 164 boolean onStart; 158 public Entry(Class<?> klass, boolean onStart) { 165 boolean both; 166 public Entry(Class<?> klass, boolean onStart, boolean both) { 159 167 super(); 160 168 this.klass = klass; 161 169 this.onStart = onStart; 170 this.both = both; 162 171 } 163 172 } … … 209 218 210 219 public void map(String tagName, Class<?> klass) { 211 mapping.put(tagName, new Entry(klass,false)); 220 mapping.put(tagName, new Entry(klass,false,false)); 212 221 } 213 222 214 223 public void mapOnStart(String tagName, Class<?> klass) { 215 mapping.put(tagName, new Entry(klass,true)); 224 mapping.put(tagName, new Entry(klass,true,false)); 225 } 226 227 public void mapBoth(String tagName, Class<?> klass) { 228 mapping.put(tagName, new Entry(klass,false,true)); 216 229 } 217 230
Note:
See TracChangeset
for help on using the changeset viewer.
