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

        BorderBottomWidth borderBottomWidth = null;
        BorderBottomStyle borderBottomStyle = null;
        BorderBottomColor borderBottomColor = null;

        for (final String eachPart : cssValueParts) {

            boolean invalid = true;
            if (borderBottomWidth == null
                    && BorderBottomWidth.isValid(eachPart)) {
                borderBottomWidth = new BorderBottomWidth(eachPart);
                invalid = false;
            } else if (borderBottomStyle == null
                    && BorderBottomStyle.isValid(eachPart)) {
                borderBottomStyle = BorderBottomStyle.getThis(eachPart);
                invalid = false;
            } else if (borderBottomColor == null
                    && BorderBottomColor.isValid(eachPart)) {
                borderBottomColor = new BorderBottomColor(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return borderBottomWidth != null || borderBottomStyle != null
                || borderBottomColor != 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);

        BorderBottomWidth borderBottomWidth = null;
        BorderBottomStyle borderBottomStyle = null;
        BorderBottomColor borderBottomColor = null;

        for (final String eachPart : cssValueParts) {

            boolean invalid = true;
            if (borderBottomWidth == null
                    && BorderBottomWidth.isValid(eachPart)) {
                borderBottomWidth = new BorderBottomWidth(eachPart);
                invalid = false;
            } else if (borderBottomStyle == null
                    && BorderBottomStyle.isValid(eachPart)) {
                borderBottomStyle = BorderBottomStyle.getThis(eachPart);
                invalid = false;
            } else if (borderBottomColor == null
                    && BorderBottomColor.isValid(eachPart)) {
                borderBottomColor = new BorderBottomColor(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return borderBottomWidth != null || borderBottomStyle != null
                || borderBottomColor != 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 ) ; BorderBottomWidth borderBottomWidth = null ; BorderBottomStyle borderBottomStyle = null ; BorderBottomColor borderBottomColor = null ; for ( final String eachPart : cssValueParts ) { boolean invalid = true ; if ( borderBottomWidth == null && BorderBottomWidth . isValid ( eachPart ) ) { borderBottomWidth = new BorderBottomWidth ( eachPart ) ; invalid = false ; } else if ( borderBottomStyle == null && BorderBottomStyle . isValid ( eachPart ) ) { borderBottomStyle = BorderBottomStyle . getThis ( eachPart ) ; invalid = false ; } else if ( borderBottomColor == null && BorderBottomColor . isValid ( eachPart ) ) { borderBottomColor = new BorderBottomColor ( eachPart ) ; invalid = false ; } if ( invalid ) { return false ; } } return borderBottomWidth != null || borderBottomStyle != null || borderBottomColor != 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
checks the given css value is valid for this class . It does t do a strict validation .