return null;
}
final String mayBeNone = value.getStringValue();
if ("none".equalsIgnoreCase(mayBeNone))
{
return new CSSConstant("none");
}
final ArrayList counterSpecs = new ArrayList();
while (value != null)
{
if (value.getLexicalUnitType() != LexicalUnit.SAC_IDENT)
{
return null;
}
final String identifier = value.getStringValue();
value = value.getNextLexicalUnit();
CSSValue counterValue = ZERO;
if (value != null)
{
if (value.getLexicalUnitType() == LexicalUnit.SAC_INTEGER)
{
counterValue = CSSNumericValue.createValue
(CSSNumericType.NUMBER, value.getIntegerValue());
value = value.getNextLexicalUnit();
}
else if (value.getLexicalUnitType() == LexicalUnit.SAC_ATTR)
{
counterValue = CSSValueFactory.parseAttrFunction(value);
value = value.getNextLexicalUnit();
}
else if (CSSValueFactory.isFunctionValue(value))
{
counterValue = CSSValueFactory.parseFunction(value);
value = value.getNextLexicalUnit();
}
}
counterSpecs.add(new CSSValuePair
(new CSSConstant(identifier), counterValue));
}
return new CSSValueList(counterSpecs);
}