class MozFlexBasis extends AbstractCssProperty<MozFlexBasis> {

    public static boolean isValid(final String cssValue) {

        final String trimmedCssValue = TagStringUtil
                .toLowerCase(StringUtil.strip(cssValue));

        if (StringUtil.containsSpace(trimmedCssValue)) {
            return false;
        }

        for (final CssLengthUnit cssLengthUnit : CssLengthUnit.values()) {
            final String unit = cssLengthUnit.getUnit();
            if (trimmedCssValue.endsWith(unit)) {
                final String valueOnly = trimmedCssValue.replaceFirst(unit, "");
                try {
                    Float.parseFloat(valueOnly);
                } catch (final NumberFormatException e) {
                    break;
                }
                return true;
            }
        }

        return PREDEFINED_CONSTANTS.contains(trimmedCssValue);
    }

    public  MozFlexBasis();
    public  MozFlexBasis(final String cssValue);
    public  MozFlexBasis(final MozFlexBasis mozFlexBasis);
    public  MozFlexBasis(final float percent);
    public  MozFlexBasis(final float value, final CssLengthUnit cssLengthUnit);

}