public static boolean isValid(final String cssValue) {
        final String trimmedCssValue = TagStringUtil
                .toLowerCase(StringUtil.strip(cssValue));

        final String[] cssValueParts = StringUtil.splitBySpace(trimmedCssValue);
        if (cssValueParts.length > 2) {
            return false;
        }
        if (cssValueParts.length == 1) {
            return PREDEFINED_CONSTANTS.contains(trimmedCssValue);
        }

        boolean valid = false;
        for (final String each : cssValueParts) {

            if (!PREDEFINED_CONSTANTS.contains(each)) {
                return false;
            }
            if ((INITIAL.equals(each) || INHERIT.equals(each))
                    && cssValueParts.length == 2) {
                return false;

            }
            valid = true;
        }
        return valid;
    }
public static boolean isValid(final String cssValue) {
        final String trimmedCssValue = TagStringUtil
                .toLowerCase(StringUtil.strip(cssValue));

        final String[] cssValueParts = StringUtil.splitBySpace(trimmedCssValue);
        if (cssValueParts.length > 2) {
            return false;
        }
        if (cssValueParts.length == 1) {
            return PREDEFINED_CONSTANTS.contains(trimmedCssValue);
        }

        boolean valid = false;
        for (final String each : cssValueParts) {

            if (!PREDEFINED_CONSTANTS.contains(each)) {
                return false;
            }
            if ((INITIAL.equals(each) || INHERIT.equals(each))
                    && cssValueParts.length == 2) {
                return false;

            }
            valid = true;
        }
        return valid;
    }
public static boolean isValid ( final String cssValue ) { final String trimmedCssValue = TagStringUtil . toLowerCase ( StringUtil . strip ( cssValue ) ) ; final String [ ] cssValueParts = StringUtil . splitBySpace ( trimmedCssValue ) ; if ( cssValueParts . length > 2 ) { return false ; } if ( cssValueParts . length == 1 ) { return PREDEFINED_CONSTANTS . contains ( trimmedCssValue ) ; } boolean valid = false ; for ( final String each : cssValueParts ) { if ( ! PREDEFINED_CONSTANTS . contains ( each ) ) { return false ; } if ( ( INITIAL . equals ( each ) || INHERIT . equals ( each ) ) && cssValueParts . length == 2 ) { return false ; } valid = true ; } return valid ; }
validates if the given cssValue is valid for this class.

@param cssValue
the value to check.
@return true if valid and false if invalid.
@author WFF
@since 1.0.0
validates if the given cssValue is valid for this class .