From a40144ef6eb0f562cacebea994fa82658acd191d Mon Sep 17 00:00:00 2001 From: Adam Davis Date: Sun, 10 Mar 2019 21:55:13 -0400 Subject: [PATCH] Moved Processor interface into org.groocss.proc package. --- src/main/groovy/org/groocss/Config.groovy | 2 +- src/main/groovy/org/groocss/MediaCSS.groovy | 2 +- src/main/groovy/org/groocss/{valid => proc}/Processor.groovy | 2 +- src/main/groovy/org/groocss/valid/AbstractValidator.groovy | 1 + src/main/groovy/org/groocss/valid/DefaultValidator.groovy | 1 + src/main/groovy/org/groocss/valid/RequireMeasurements.groovy | 3 +++ 6 files changed, 8 insertions(+), 3 deletions(-) rename src/main/groovy/org/groocss/{valid => proc}/Processor.groovy (97%) diff --git a/src/main/groovy/org/groocss/Config.groovy b/src/main/groovy/org/groocss/Config.groovy index 3ed7b24..64bb610 100644 --- a/src/main/groovy/org/groocss/Config.groovy +++ b/src/main/groovy/org/groocss/Config.groovy @@ -19,7 +19,7 @@ import groovy.transform.Canonical import groovy.transform.CompileStatic import groovy.transform.MapConstructor import groovy.transform.builder.Builder -import org.groocss.valid.Processor +import org.groocss.proc.Processor /** * Configuration for GrooCSS conversions. There are at least four different ways to configure GrooCSS: diff --git a/src/main/groovy/org/groocss/MediaCSS.groovy b/src/main/groovy/org/groocss/MediaCSS.groovy index 39030ec..def1693 100644 --- a/src/main/groovy/org/groocss/MediaCSS.groovy +++ b/src/main/groovy/org/groocss/MediaCSS.groovy @@ -17,7 +17,7 @@ package org.groocss import groovy.transform.CompileStatic import org.groocss.valid.DefaultValidator -import org.groocss.valid.Processor +import org.groocss.proc.Processor import java.lang.reflect.ParameterizedType diff --git a/src/main/groovy/org/groocss/valid/Processor.groovy b/src/main/groovy/org/groocss/proc/Processor.groovy similarity index 97% rename from src/main/groovy/org/groocss/valid/Processor.groovy rename to src/main/groovy/org/groocss/proc/Processor.groovy index d8c6d49..d125070 100644 --- a/src/main/groovy/org/groocss/valid/Processor.groovy +++ b/src/main/groovy/org/groocss/proc/Processor.groovy @@ -1,4 +1,4 @@ -package org.groocss.valid +package org.groocss.proc import groovy.transform.CompileStatic import org.groocss.CSSPart diff --git a/src/main/groovy/org/groocss/valid/AbstractValidator.groovy b/src/main/groovy/org/groocss/valid/AbstractValidator.groovy index c8378b0..dd79250 100644 --- a/src/main/groovy/org/groocss/valid/AbstractValidator.groovy +++ b/src/main/groovy/org/groocss/valid/AbstractValidator.groovy @@ -2,6 +2,7 @@ package org.groocss.valid import groovy.transform.CompileStatic import org.groocss.CSSPart +import org.groocss.proc.Processor /** * Convenient abstract class for extending and making Validators but not necessary to extend. diff --git a/src/main/groovy/org/groocss/valid/DefaultValidator.groovy b/src/main/groovy/org/groocss/valid/DefaultValidator.groovy index 00e089e..2a74f19 100644 --- a/src/main/groovy/org/groocss/valid/DefaultValidator.groovy +++ b/src/main/groovy/org/groocss/valid/DefaultValidator.groovy @@ -18,6 +18,7 @@ package org.groocss.valid import groovy.transform.CompileStatic import org.groocss.Measurement import org.groocss.Style +import org.groocss.proc.Processor /** * Does default GrooCSS validation of Measurements. diff --git a/src/main/groovy/org/groocss/valid/RequireMeasurements.groovy b/src/main/groovy/org/groocss/valid/RequireMeasurements.groovy index a610080..b53ec3d 100644 --- a/src/main/groovy/org/groocss/valid/RequireMeasurements.groovy +++ b/src/main/groovy/org/groocss/valid/RequireMeasurements.groovy @@ -18,12 +18,15 @@ package org.groocss.valid import groovy.transform.CompileStatic import org.groocss.Measurement import org.groocss.Style +import org.groocss.proc.Processor /** * Validates that every value that can be a Measurement is one. In conjunction with the * {@link DefaultValidator} this has the effect of making sure that many values are correct. *

* You can write your own custom validators and add them via {@link org.groocss.Config}. + *

+ * This is not included by default, you must add it using {@link org.groocss.Config#setProcessors(java.util.Set)}. * * @see Measurement * @see org.groocss.Config