wffweb/src/main/java/com/webfirmframework/wffweb/css/Outline.java
public static boolean isValid(final String cssValue) {
        // TODO modify to make a strict validation
        if (cssValue == null || StringUtil.isBlank(cssValue)) {
            return false;
        }

        final List<String> cssValueParts = CssValueUtil.split(cssValue);

        OutlineColor outlineColor = null;
        OutlineStyle outlineStyle = null;
        OutlineWidth outlineWidth = null;

        for (final String eachPart : cssValueParts) {

            boolean invalid = true;
            if (outlineColor == null && OutlineColor.isValid(eachPart)) {
                outlineColor = new OutlineColor(eachPart);
                invalid = false;
            } else if (outlineStyle == null && OutlineStyle.isValid(eachPart)) {
                outlineStyle = OutlineStyle.getThis(eachPart);
                invalid = false;
            } else if (outlineWidth == null && OutlineWidth.isValid(eachPart)) {
                outlineWidth = new OutlineWidth(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return outlineWidth != null || outlineStyle != null
                || outlineColor != null;
    }
public static boolean isValid(final String cssValue) {
        // TODO modify to make a strict validation
        if (cssValue == null || StringUtil.isBlank(cssValue)) {
            return false;
        }

        final List<String> cssValueParts = CssValueUtil.split(cssValue);

        OutlineColor outlineColor = null;
        OutlineStyle outlineStyle = null;
        OutlineWidth outlineWidth = null;

        for (final String eachPart : cssValueParts) {

            boolean invalid = true;
            if (outlineColor == null && OutlineColor.isValid(eachPart)) {
                outlineColor = new OutlineColor(eachPart);
                invalid = false;
            } else if (outlineStyle == null && OutlineStyle.isValid(eachPart)) {
                outlineStyle = OutlineStyle.getThis(eachPart);
                invalid = false;
            } else if (outlineWidth == null && OutlineWidth.isValid(eachPart)) {
                outlineWidth = new OutlineWidth(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return outlineWidth != null || outlineStyle != null
                || outlineColor != null;
    }
checks the given css value is valid for this class. It does't do a strict
validation.

@param cssValue
@return
@since 1.0.0
@author WFF