public class StyleSheet.NameSpace
extends java.lang.Object
The name space defines a default rule for a kind of elements, a set of rules for this kind of elements with a given identifier, and a set or rules for this kind of elements with a given class.
Modifier and Type | Field and Description |
---|---|
java.util.HashMap<java.lang.String,Rule> |
byClass
The set of rules for this kind of elements with a given class.
|
java.util.HashMap<java.lang.String,Rule> |
byId
The set of rules for this kind of elements with a given identifier.
|
Rule |
defaultRule
The default rule for this kind of elements.
|
Selector.Type |
type
The kind of elements in this name space.
|
Constructor and Description |
---|
NameSpace(Selector.Type type) |
Modifier and Type | Method and Description |
---|---|
int |
getClassRulesCount()
Number of specific (class) rules.
|
Selector.Type |
getGraphElementType()
The kind of elements this name space applies rules to.
|
int |
getIdRulesCount()
Number of specific (id) rules.
|
java.lang.String |
toString() |
java.lang.String |
toString(int level) |
public Selector.Type type
public Rule defaultRule
public java.util.HashMap<java.lang.String,Rule> byId
public java.util.HashMap<java.lang.String,Rule> byClass
public NameSpace(Selector.Type type)
public Selector.Type getGraphElementType()
public int getIdRulesCount()
public int getClassRulesCount()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int level)