FontFamily extends AbstractCssProperty<FontFamily> { protected static String getBuiltCssValue(final String... fontFamilyNames) { final StringBuilder cssValueSB = new StringBuilder(); int count = 1; for (final String fontFamilyName : fontFamilyNames) { if (StringUtil.containsSpace(fontFamilyName)) { cssValueSB.append('\"').append(fontFamilyName).append('\"'); } else { cssValueSB.append(fontFamilyName); } if (count != fontFamilyNames.length) { cssValueSB.append(", "); } else { break; } count++; } return StringBuilderUtil.getTrimmedString(cssValueSB); } FontFamily();  FontFamily(final String cssValue);  FontFamily(final String... fontFamilyNames);  FontFamily(final FontFamily fontFamily); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override FontFamily setCssValue(final String cssValue); void setFontFamilyNames(final String[] fontFamilyNames); String[] getFontFamilyNames(); void setAsInitial(); void setAsInherit(); static void addFontFamilyName(final String fontFamilyName); static void addFontFamilyNames(
            final Collection<String> fontFamilyNames); Set<String> getAddedFontFamilyNames(); boolean isValidateFontFamilyName(); void setValidateFontFamilyName(
            final boolean validateFontFamilyName); static boolean isValidateFontFamilyNameGlobally(); static void setValidateFontFamilyNameGlobally(
            final boolean validateFontFamilyNameGlobally); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; static final String[] EMPTY_ARRAY; }
@Test public void testGetBuiltCssValue() { String cssValue = FontFamily.getBuiltCssValue("Times New Roman", "Georgia", GenericFontFamilyNameContants.SERIF); assertEquals("\"Times New Roman\", Georgia, serif", cssValue); }