|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.osbcp.cssparser.Rule
public final class Rule
Represents a CSS rule.
Constructor Summary | |
---|---|
Rule()
Creates an empty rule. |
|
Rule(java.util.List<Selector> selectors)
Creates a new rule based on a list of selectors. |
|
Rule(Selector selector)
Creates a rule with a single selector. |
Method Summary | |
---|---|
void |
addPropertyValue(PropertyValue propertyValue)
Adds a property value to the rule. |
void |
addSelector(Selector selector)
Adds a selector to the rule. |
void |
addSelectors(java.util.List<Selector> selectors)
Adds a list of selectors to the existing list of selectors. |
java.util.List<PropertyValue> |
getPropertyValues()
Returns a list of all property values attached to the rule. |
java.util.List<Selector> |
getSelectors()
Returns a list of all selectors attached to the rule. |
void |
removePropertyValue(PropertyValue propertyValue)
Removes a property value from the rule. |
void |
removeSelector(Selector selector)
Removes a selector from the rule. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Rule(Selector selector)
selector
- A selector that the rule should initial with.public Rule()
public Rule(java.util.List<Selector> selectors)
selectors
- A list of selectors that the rule should initial with.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void addPropertyValue(PropertyValue propertyValue)
propertyValue
- The property value that should be attached.public java.util.List<PropertyValue> getPropertyValues()
public java.util.List<Selector> getSelectors()
public void addSelectors(java.util.List<Selector> selectors)
selectors
- A list of selectors that should be appended.public void removePropertyValue(PropertyValue propertyValue)
propertyValue
- The property value that should be removed.public void addSelector(Selector selector)
selector
- The selector that should be attached to the rule.public void removeSelector(Selector selector)
selector
- The selector that should be removed from the rule.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |