source: josm/trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSRule.java@ 3876

Last change on this file since 3876 was 3876, checked in by bastiK, 13 years ago

mapcss: support for more exotic constructs; make parser more robust: if parsing as an expression fails, read everything between colon and semicolon as string, e.g. 'icon-image: images/img.png;' where the path should be in quotes, but it isn't

  • Property svn:eol-style set to native
File size: 594 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.mappaint.mapcss;
3
4import java.util.List;
5
6import org.openstreetmap.josm.tools.Utils;
7
8public class MapCSSRule {
9
10 public List<Selector> selectors;
11 public List<Instruction> declaration;
12
13 public MapCSSRule(List<Selector> selectors, List<Instruction> declaration) {
14 this.selectors = selectors;
15 this.declaration = declaration;
16 }
17
18 @Override
19 public String toString() {
20 return Utils.join(",", selectors) + " {\n " + Utils.join("\n ", declaration) + "\n}";
21 }
22}
23
Note: See TracBrowser for help on using the repository browser.