Identifier tokIdent = (Identifier)token0;
Token token1 = cssTextCode.getToken(1);
if (!(token1 instanceof ParenthesisBlock))
return false;
ParenthesisBlock tokBlock = (ParenthesisBlock)token1;
String identif = tokIdent.toString();
identif = identif.toLowerCase();
if (identif.equals("url"))
{
this.primitiveType = CSS_URI;
// No hay ning�n objeto especial, el url queda almacenado en this.cssTextCode
return true;
}
else if (identif.equals("rect"))
{
this.primitiveType = CSS_RECT;
this.rectValue = new RectImpl(tokBlock.getContent(),this);
return true;
}
else if (identif.equals("rgb"))
{
// FALTA procesar los valores #rgb y #rrggbb
this.primitiveType = CSS_RGBCOLOR;
this.rgbValue = new RGBColorImpl(tokBlock.getContent(),this);
return true;
}
else if (identif.equals("attr"))
{
this.primitiveType = CSS_ATTR;