@@ -107,10 +107,12 @@ public void checkStrictPositiveness(ApplContext ac, CssProperty property)
107107 * @param ac the validation context
108108 * @param callername the property the value is defined in
109109 */
110- public void warnPositiveness (ApplContext ac , String callername ) {
110+ public boolean warnPositiveness (ApplContext ac , String callername ) {
111111 if (!isPositive ()) {
112112 ac .getFrame ().addWarning ("negative" , new String []{toString (), callername });
113+ return false ;
113114 }
115+ return true ;
114116 }
115117
116118 /**
@@ -119,8 +121,8 @@ public void warnPositiveness(ApplContext ac, String callername) {
119121 * @param ac the validation context
120122 * @param property the property the value is defined in
121123 */
122- public void warnPositiveness (ApplContext ac , CssProperty property ) {
123- warnPositiveness (ac , property .getPropertyName ());
124+ public boolean warnPositiveness (ApplContext ac , CssProperty property ) {
125+ return warnPositiveness (ac , property .getPropertyName ());
124126 }
125127
126128 /**
@@ -129,8 +131,8 @@ public void warnPositiveness(ApplContext ac, CssProperty property) {
129131 * @param ac the validation context
130132 * @param mediafeature the property the value is defined in
131133 */
132- public void warnPositiveness (ApplContext ac , MediaFeature mediafeature ) {
133- warnPositiveness (ac , mediafeature .getFeatureName ());
134+ public boolean warnPositiveness (ApplContext ac , MediaFeature mediafeature ) {
135+ return warnPositiveness (ac , mediafeature .getFeatureName ());
134136 }
135137
136138
@@ -191,10 +193,12 @@ public void checkEqualsZero(ApplContext ac, MediaFeature mediafeature)
191193 * @param ac the validation context
192194 * @param messages an array of Strings
193195 */
194- public void warnEqualsZero (ApplContext ac , String [] messages ) {
196+ public boolean warnEqualsZero (ApplContext ac , String [] messages ) {
195197 if (!isZero ()) {
196198 ac .getFrame ().addWarning ("zero" , messages );
199+ return false ;
197200 }
201+ return true ;
198202 }
199203
200204 /**
@@ -203,8 +207,8 @@ public void warnEqualsZero(ApplContext ac, String[] messages) {
203207 * @param ac the validation context
204208 * @param callername the String value of the object it is defined in
205209 */
206- public void warnEqualsZero (ApplContext ac , String callername ) {
207- warnEqualsZero (ac , new String []{callername });
210+ public boolean warnEqualsZero (ApplContext ac , String callername ) {
211+ return warnEqualsZero (ac , new String []{callername });
208212 }
209213
210214 /**
@@ -213,8 +217,8 @@ public void warnEqualsZero(ApplContext ac, String callername) {
213217 * @param ac the validation context
214218 * @param property the property the value is defined in
215219 */
216- public void warnEqualsZero (ApplContext ac , CssProperty property ) {
217- warnEqualsZero (ac , property .getPropertyName ());
220+ public boolean warnEqualsZero (ApplContext ac , CssProperty property ) {
221+ return warnEqualsZero (ac , property .getPropertyName ());
218222 }
219223
220224 /**
@@ -223,8 +227,8 @@ public void warnEqualsZero(ApplContext ac, CssProperty property) {
223227 * @param ac the validation context
224228 * @param mediafeature the property the value is defined in
225229 */
226- public void warnEqualsZero (ApplContext ac , MediaFeature mediafeature ) {
227- warnEqualsZero (ac , mediafeature .getFeatureName ());
230+ public boolean warnEqualsZero (ApplContext ac , MediaFeature mediafeature ) {
231+ return warnEqualsZero (ac , mediafeature .getFeatureName ());
228232 }
229233
230234 public boolean isInteger () {
0 commit comments