public class CSSRule
extends java.lang.Object
Supported selectors:
*
matches all objects.name
matches an element name..name
matches the value of the attribute "class".#name
matches the value of the attribute "id".Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
properties |
Constructor and Description |
---|
CSSRule(java.lang.String selector,
java.util.Map<java.lang.String,java.lang.String> properties) |
CSSRule(java.lang.String name,
java.lang.String value) |
CSSRule(java.lang.String selector,
java.lang.String propertyName,
java.lang.String propertyValue) |
Modifier and Type | Method and Description |
---|---|
void |
apply(org.w3c.dom.Element elem) |
void |
apply(IXMLElement elem) |
boolean |
matches(org.w3c.dom.Element elem) |
boolean |
matches(IXMLElement elem) |
void |
setSelector(java.lang.String selector) |
java.lang.String |
toString() |
public CSSRule(java.lang.String name, java.lang.String value)
public CSSRule(java.lang.String selector, java.lang.String propertyName, java.lang.String propertyValue)
public CSSRule(java.lang.String selector, java.util.Map<java.lang.String,java.lang.String> properties)
public void setSelector(java.lang.String selector)
public boolean matches(org.w3c.dom.Element elem)
public boolean matches(IXMLElement elem)
public void apply(org.w3c.dom.Element elem)
public void apply(IXMLElement elem)
public java.lang.String toString()
toString
in class java.lang.Object