class Opacity extends AbstractCssProperty<Opacity> {

    public static boolean isValid(final String cssValue) {
        final String trimmedCssValue = TagStringUtil
                .toLowerCase(StringUtil.strip(cssValue));
        if (StringUtil.containsSpace(trimmedCssValue)) {
            return false;
        }
        try {

            final float parsedValue = Float.parseFloat(trimmedCssValue);

            if (parsedValue < 0 || parsedValue > 1) {
                return false;
            }

            return !(parsedValue == 0
                    && (StringUtil.containsMinus(trimmedCssValue)
                            || StringUtil.containsPlus(trimmedCssValue)));
        } catch (final NumberFormatException e) {
        }

        return PREDEFINED_CONSTANTS.contains(trimmedCssValue);
    }

    public  Opacity();
    public  Opacity(final String cssValue);
    public  Opacity(final Opacity opacity);
    public  Opacity(final float value);

}