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

        final String[] cssValueParts = StringUtil.splitBySpace(cssValue);

        WebkitFlexGrow webkitFlexGrow = null;
        WebkitFlexShrink webkitFlexShrink = null;
        WebkitFlexBasis webkitFlexBasis = null;

        for (final String eachPart : cssValueParts) {
            boolean invalid = true;

            if (webkitFlexGrow == null && WebkitFlexGrow.isValid(eachPart)) {
                webkitFlexGrow = new WebkitFlexGrow(eachPart);
                invalid = false;
            } else if (webkitFlexShrink == null
                    && WebkitFlexShrink.isValid(eachPart)) {
                webkitFlexShrink = new WebkitFlexShrink(eachPart);
                invalid = false;
            } else if (webkitFlexBasis == null
                    && WebkitFlexBasis.isValid(eachPart)) {
                webkitFlexBasis = new WebkitFlexBasis(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return webkitFlexGrow != null || webkitFlexShrink != null
                || webkitFlexBasis != null;
    }
public static boolean isValid(final String cssValue) {
        
        if (cssValue == null || StringUtil.isBlank(cssValue)) {
            return false;
        }

        final String[] cssValueParts = StringUtil.splitBySpace(cssValue);

        WebkitFlexGrow webkitFlexGrow = null;
        WebkitFlexShrink webkitFlexShrink = null;
        WebkitFlexBasis webkitFlexBasis = null;

        for (final String eachPart : cssValueParts) {
            boolean invalid = true;

            if (webkitFlexGrow == null && WebkitFlexGrow.isValid(eachPart)) {
                webkitFlexGrow = new WebkitFlexGrow(eachPart);
                invalid = false;
            } else if (webkitFlexShrink == null
                    && WebkitFlexShrink.isValid(eachPart)) {
                webkitFlexShrink = new WebkitFlexShrink(eachPart);
                invalid = false;
            } else if (webkitFlexBasis == null
                    && WebkitFlexBasis.isValid(eachPart)) {
                webkitFlexBasis = new WebkitFlexBasis(eachPart);
                invalid = false;
            }
            if (invalid) {
                return false;
            }
        }

        return webkitFlexGrow != null || webkitFlexShrink != null
                || webkitFlexBasis != null;
    }
public static boolean isValid ( final String cssValue ) { // TODO modify to make a strict validation if ( cssValue == null || StringUtil . isBlank ( cssValue ) ) { return false ; } final String [ ] cssValueParts = StringUtil . splitBySpace ( cssValue ) ; WebkitFlexGrow webkitFlexGrow = null ; WebkitFlexShrink webkitFlexShrink = null ; WebkitFlexBasis webkitFlexBasis = null ; for ( final String eachPart : cssValueParts ) { boolean invalid = true ; if ( webkitFlexGrow == null && WebkitFlexGrow . isValid ( eachPart ) ) { webkitFlexGrow = new WebkitFlexGrow ( eachPart ) ; invalid = false ; } else if ( webkitFlexShrink == null && WebkitFlexShrink . isValid ( eachPart ) ) { webkitFlexShrink = new WebkitFlexShrink ( eachPart ) ; invalid = false ; } else if ( webkitFlexBasis == null && WebkitFlexBasis . isValid ( eachPart ) ) { webkitFlexBasis = new WebkitFlexBasis ( eachPart ) ; invalid = false ; } if ( invalid ) { return false ; } } return webkitFlexGrow != null || webkitFlexShrink != null || webkitFlexBasis != 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 .