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.
|
---|
2 | package org.openstreetmap.josm.gui.mappaint.mapcss;
|
---|
3 |
|
---|
4 | import java.util.List;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.tools.Utils;
|
---|
7 |
|
---|
8 | public 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.