156157158159160161162163164165166
{ territory.add(shape); } else { territory.addBanned(shape); } } else if ((isShape = "circle".equalsIgnoreCase(n.getName())) || "banned_cicrcle".equalsIgnoreCase(n.getName())) { Shape shape = parseCircle(n);
173174175176177178179180181182183
{ territory.add(shape); } else { territory.addBanned(shape); } } else if ((isShape = "polygon".equalsIgnoreCase(n.getName())) || "banned_polygon".equalsIgnoreCase(n.getName())) { Polygon shape = parsePolygon(n);
194195196197198199200201202203204
{ territory.add(shape); } else { territory.addBanned(shape); } } } if ((territory == null) || territory.getTerritories().isEmpty()) {
191192193194195196197198199200201
{ Territory t = new Territory(); t.add(parsePolygon0(name, e)); for (Iterator<Element> iterator = e.elementIterator("banned_territory"); iterator.hasNext();) { t.addBanned(parsePolygon0(name, iterator.next())); } return t; } /**