Changeset 30497 in osm for applications/editors/josm/plugins/graphview/src/org
- Timestamp:
- 2014-06-15T21:42:56+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/access/ImplicationXMLReader.java
r30482 r30497 30 30 boolean tagOpen = false; 31 31 32 public void startElement(String uri, String localName, String name, Attributes attributes) 33 throws SAXException { 32 public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { 34 33 35 34 switch (state) { … … 79 78 } 80 79 81 //all va ild paths end with return; reaching this indicates an invalid tag80 //all valid paths end with return; reaching this indicates an invalid tag 82 81 throw new SAXException(tr("Invalid opening xml tag <{0}> in state {1}", name, state)); 83 84 } 85 86 public void endElement(String uri, String localName, String name) 87 throws SAXException { 82 } 83 84 public void endElement(String uri, String localName, String name) throws SAXException { 88 85 89 86 switch (state) { … … 129 126 } 130 127 break; 131 132 128 } 133 129 134 130 //all vaild paths end with return; reaching this indicates an invalid tag 135 131 throw new SAXException(tr("Invalid closing xml tag </{0}> in state {1}", name, state)); 136 137 132 } 138 133 … … 140 135 141 136 if (state != State.BEFORE_IMPLICATION) { 142 throw new SAXException(tr("Some tags not been closed; now in state {0}", state)); 137 throw new SAXException(tr("Some tags have not been closed; now in state {0}", state)); 143 138 } else { 144 139 return new ArrayList<Implication>(implications); … … 183 178 private ConditionReader currentChildReader = null; 184 179 185 public void startElement(String uri, String localName, String name, Attributes attributes) 186 throws SAXException { 180 public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { 187 181 188 182 if (finished) { … … 217 211 currentChildReader = new ConditionReader(); 218 212 currentChildReader.startElement(uri, localName, name, attributes); 219 220 } 221 222 } 223 224 public void endElement(String uri, String localName, String name) 225 throws SAXException { 213 } 214 } 215 216 public void endElement(String uri, String localName, String name) throws SAXException { 226 217 227 218 if (finished) { … … 273 264 throw new SAXException(tr("Wrong closing tag {0} (</{1}> expected)", name, openingName)); 274 265 } 275 276 } 277 266 } 278 267 } 279 268 … … 290 279 } 291 280 } 292 293 } 294 281 } 295 282 }
Note:
See TracChangeset
for help on using the changeset viewer.