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

        if (INITIAL.equals(trimmedCssValue)
                || INHERIT.equals(trimmedCssValue)) {
            return true;
        }

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

        if (cssValueParts.size() > 1 && (trimmedCssValue.contains(INITIAL)
                || trimmedCssValue.contains(INHERIT))) {
            return false;
        }

        BorderTopWidth width = null;
        BorderStyle borderStyle = null;
        BorderColorCssValues borderColorCssValues = null;

        for (final String eachPart : cssValueParts) {
            boolean invalid = true;
            if (width == null && BorderTopWidth.isValid(eachPart)) {
                width = new BorderTopWidth(eachPart);
                invalid = false;
            } else if (borderStyle == null && BorderStyle.isValid(eachPart)) {
                borderStyle = BorderStyle.getThis(eachPart);
                invalid = false;
            } else if (borderColorCssValues == null
                    && BorderColorCssValues.isValid(eachPart)) {
                borderColorCssValues = new BorderColorCssValues(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return true;
    }
public static boolean isValid(final String cssValue) {
        // TODO modify to make a strict validation
        final String trimmedCssValue;
        if (cssValue == null
                || (trimmedCssValue = StringUtil.strip(cssValue)).isEmpty()) {
            return false;
        }

        if (INITIAL.equals(trimmedCssValue)
                || INHERIT.equals(trimmedCssValue)) {
            return true;
        }

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

        if (cssValueParts.size() > 1 && (trimmedCssValue.contains(INITIAL)
                || trimmedCssValue.contains(INHERIT))) {
            return false;
        }

        BorderTopWidth width = null;
        BorderStyle borderStyle = null;
        BorderColorCssValues borderColorCssValues = null;

        for (final String eachPart : cssValueParts) {
            boolean invalid = true;
            if (width == null && BorderTopWidth.isValid(eachPart)) {
                width = new BorderTopWidth(eachPart);
                invalid = false;
            } else if (borderStyle == null && BorderStyle.isValid(eachPart)) {
                borderStyle = BorderStyle.getThis(eachPart);
                invalid = false;
            } else if (borderColorCssValues == null
                    && BorderColorCssValues.isValid(eachPart)) {
                borderColorCssValues = new BorderColorCssValues(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return true;
    }
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