Modifier and Type | Field and Description |
---|---|
HashSet<String> |
groups
Optionally, the rule can store all the style groups it participates in.
|
Selector |
selector
The match.
|
Style |
style
The style.
|
Modifier | Constructor and Description |
---|---|
protected |
Rule() |
|
Rule(Selector selector)
New rule with a matcher.
|
|
Rule(Selector selector,
Rule parent) |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(String groupId)
Specify that this rule participates in the given style group.
|
HashSet<String> |
getGroups()
The group this rule participate in, maybe null if the rule does not
participate in any group.
|
Style |
getStyle()
This rule style.
|
boolean |
matchId(String identifier)
True if this rule selector match the given identifier.
|
void |
removeGroup(String groupId)
Remove this rule from the style group.
|
void |
setStyle(Style style)
Change the style.
|
String |
toString() |
String |
toString(int level) |
protected Rule()
public Rule(Selector selector)
selector
- The rule selector.public HashSet<String> getGroups()
public boolean matchId(String identifier)
identifier
- The identifier to test for the match.public void setStyle(Style style)
style
- A style specification.public void addGroup(String groupId)
groupId
- The group unique identifier.public void removeGroup(String groupId)
groupId
- The group unique identifier.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses