01: package org.apache.batik.css.engine;
02:
03: /**
04: * A value object for communicating a desired setting or clearing of a CSS property
05: *
06: * @author Tor Norbye
07: */
08: public class StyleSetting {
09: private int index;
10: private String value;
11:
12: /**
13: * Construct a StyleSetting with the given index and value
14: */
15: public StyleSetting(int index, String value) {
16: this .index = index;
17: this .value = value;
18: }
19:
20: /**
21: * Create a style setting only specifying a property; should only
22: * be used for removals
23: */
24: public StyleSetting(int index) {
25: this .index = index;
26: }
27:
28: /** Return the CSS property index */
29: public int getIndex() {
30: return index;
31: }
32:
33: /** Return the value, if any, for this CSS setting */
34: public String getValue() {
35: return value;
36: }
37: }
|