{
contentList.add(new CSSConstant(parameters.getStringValue()));
}
else if (parameters.getLexicalUnitType() == LexicalUnit.SAC_STRING_VALUE)
{
contentList.add(new CSSStringValue(CSSStringType.STRING,
parameters.getStringValue()));
}
else if (CSSValueFactory.isNumericValue(parameters))
{
final CSSNumericValue numericValue =
CSSValueFactory.createNumericValue(parameters);
if (numericValue == null)
{
return null;
}
contentList.add(numericValue);
}
else if (CSSValueFactory.isLengthValue(parameters))
{
final CSSNumericValue lengthValue =
CSSValueFactory.createLengthValue(parameters);
if (lengthValue == null)
{
return null;
}
contentList.add(lengthValue);
}
else if (parameters.getLexicalUnitType() == LexicalUnit.SAC_ATTR)
{
final CSSAttrFunction attrFn =
CSSValueFactory.parseAttrFunction(parameters);
if (attrFn == null)
{
return null;
}
contentList.add(attrFn);
}
else if (parameters.getLexicalUnitType() == LexicalUnit.SAC_URI)
{
final CSSStringValue uriValue = CSSValueFactory.createUriValue(
parameters);
if (uriValue == null)
{
return null;
}