public static boolean isColorValue (@Nullable final String sValue)
  {
    final String sRealValue = StringHelper.trim (sValue);
    if (StringHelper.hasNoText (sRealValue))
      return false;

    return isRGBColorValue (sRealValue) ||
           isRGBAColorValue (sRealValue) ||
           isHSLColorValue (sRealValue) ||
           isHSLAColorValue (sRealValue) ||
           isHexColorValue (sRealValue) ||
           ECSSColor.isDefaultColorName (sRealValue) ||
           ECSSColorName.isDefaultColorName (sRealValue) ||
           sRealValue.equals (CCSSValue.CURRENTCOLOR) ||
           sRealValue.equals (CCSSValue.TRANSPARENT);
  }
public static boolean isColorValue ( @ Nullable final String sValue ) { final String sRealValue = StringHelper . trim ( sValue ) ; if ( StringHelper . hasNoText ( sRealValue ) ) return false ; return isRGBColorValue ( sRealValue ) || isRGBAColorValue ( sRealValue ) || isHSLColorValue ( sRealValue ) || isHSLAColorValue ( sRealValue ) || isHexColorValue ( sRealValue ) || ECSSColor . isDefaultColorName ( sRealValue ) || ECSSColorName . isDefaultColorName ( sRealValue ) || sRealValue . equals ( CCSSValue . CURRENTCOLOR ) || sRealValue . equals ( CCSSValue . TRANSPARENT ) ; }
Check if the passed string is any color value.

@param sValue
The value to check. May be <code>null</code>.
@return <code>true</code> if the passed value is not <code>null</code>, not
empty and a valid CSS color value.
@see #isRGBColorValue(String)
@see #isRGBAColorValue(String)
@see #isHSLColorValue(String)
@see #isHSLAColorValue(String)
@see #isHexColorValue(String)
@see ECSSColor#isDefaultColorName(String)
@see ECSSColorName#isDefaultColorName(String)
@see CCSSValue#CURRENTCOLOR