wffweb/src/main/java/com/webfirmframework/wffweb/css/BorderRight.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);

        BorderRightWidth borderRightWidth = null;
        BorderRightStyle borderRightStyle = null;
        BorderRightColor borderRightColor = null;

        for (final String eachPart : cssValueParts) {

            boolean invalid = true;
            if (borderRightWidth == null
                    && BorderRightWidth.isValid(eachPart)) {
                borderRightWidth = new BorderRightWidth(eachPart);
                invalid = false;
            } else if (borderRightStyle == null
                    && BorderRightStyle.isValid(eachPart)) {
                borderRightStyle = BorderRightStyle.getThis(eachPart);
                invalid = false;
            } else if (borderRightColor == null
                    && BorderRightColor.isValid(eachPart)) {
                borderRightColor = new BorderRightColor(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return borderRightWidth != null || borderRightStyle != null
                || borderRightColor != 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);

        BorderRightWidth borderRightWidth = null;
        BorderRightStyle borderRightStyle = null;
        BorderRightColor borderRightColor = null;

        for (final String eachPart : cssValueParts) {

            boolean invalid = true;
            if (borderRightWidth == null
                    && BorderRightWidth.isValid(eachPart)) {
                borderRightWidth = new BorderRightWidth(eachPart);
                invalid = false;
            } else if (borderRightStyle == null
                    && BorderRightStyle.isValid(eachPart)) {
                borderRightStyle = BorderRightStyle.getThis(eachPart);
                invalid = false;
            } else if (borderRightColor == null
                    && BorderRightColor.isValid(eachPart)) {
                borderRightColor = new BorderRightColor(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return borderRightWidth != null || borderRightStyle != null
                || borderRightColor != 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