}
else if (condition instanceof AttributeCondition)
{
AttributeCondition attributeCondition = (AttributeCondition)condition;
short conditionType = condition.getConditionType();
StyleCondition styleCondition = null;
// Class Selector
if (conditionType == Condition.SAC_CLASS_CONDITION)
{
styleCondition = new StyleCondition(StyleCondition.CLASS_CONDITION,
attributeCondition.getValue());
}
// id Selector
else if (conditionType == Condition.SAC_ID_CONDITION)
{
styleCondition = new StyleCondition(StyleCondition.ID_CONDITION,
attributeCondition.getValue());
}
// Pseudo Class Selector
else if (conditionType == Condition.SAC_PSEUDO_CLASS_CONDITION)
{
styleCondition = new StyleCondition(StyleCondition.PSEUDO_CONDITION,
attributeCondition.getValue());
}
if (styleCondition != null)
{