{
result.append(new Integer(((CSSRgbColorPropertyValue)val).getColorAsInt()));
}
else if (val instanceof CSSKeywordPropertyValue)
{
CSSKeywordPropertyValue keywordValue = (CSSKeywordPropertyValue)val;
String keywordString = keywordValue.getKeyword();
if (IASLanguageConstants.TRUE.equals(keywordString))
result.append("true");
else if (IASLanguageConstants.FALSE.equals(keywordString))
result.append("false");
else
result.append("\"" + ((CSSKeywordPropertyValue)val).getKeyword() + "\"");
}
else if (val instanceof CSSNumberPropertyValue)
{
result.append(new Double(((CSSNumberPropertyValue)val).getNumber().doubleValue()));
}
else
{
result.append("unexpected value type: " + val.toString());
}
}
result.append("]");
}
else if (value instanceof CSSStringPropertyValue)
{
result.append("\"" + ((CSSStringPropertyValue)value).getValue() + "\"");
}
else if (value instanceof CSSColorPropertyValue)
{
result.append(new Integer(((CSSColorPropertyValue)value).getColorAsInt()));
}
else if (value instanceof CSSRgbColorPropertyValue)
{
result.append(new Integer(((CSSRgbColorPropertyValue)value).getColorAsInt()));
}
else if (value instanceof CSSKeywordPropertyValue)
{
CSSKeywordPropertyValue keywordValue = (CSSKeywordPropertyValue)value;
String keywordString = keywordValue.getKeyword();
if (IASLanguageConstants.TRUE.equals(keywordString))
result.append("true");
else if (IASLanguageConstants.FALSE.equals(keywordString))
result.append("false");
else