|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlvCSSAttributeSelector
This interface defines the read only access to the attribute selectors of a simple selector of a CSS rule. Each CSS rule consists of a sequence of simple selectors that define how the rule matches the objects, and the declarations the define how to set the properties of the matches objects. For instance, the CSS rule
node.activity[workload==5]:touched {
x: 100;
y: 200;
}
contains the simple selector node.activity[workload==5]:touched
which has the attribute selector [workload==5].
IlvCSSRule,
IlvCSSSelector| Field Summary | |
|---|---|
static int |
DIFFERENT_NUM
Tests that the attribute at the matching object is unequal to the value. |
static int |
DIFFERENT_STRING
Tests that the attribute at the matching object is unequal to the value. |
static int |
EQUAL
Tests that the attribute at the matching object is equal to the value. |
static int |
EXACT
Tests that the attribute at the matching object is equal to the value. |
static int |
GREATER
Tests that the attribute at the matching object is greater than the value. |
static int |
GREATER_EQUAL
Tests that the attribute at the matching object is greater or equal to the value. |
static int |
LESS
Tests that the attribute at the matching object is less than the value. |
static int |
LESS_EQUAL
Tests that the attribute at the matching object is less or equal to the value. |
static int |
NONE
Tests whether the attribute exists at the matching object and is not null. |
static int |
SUBSTRING
Tests that the attribute at the matching object is a list of space-separated words, one of which is exactly equal to the value. |
| Method Summary | |
|---|---|
String |
getAttributeName()
Returns the attribute name of the attribute selector. |
int |
getComparator()
Returns the comparator of the attribute selector. |
String |
getValue()
Returns the comparison value of the attribute selector as String. |
boolean |
isIdentical(Object obj)
Returns true if this attribute selector is considered
logically identical to the input object. |
void |
printCSS(PrintWriter out,
int indent)
Prints the attribute selector using CSS syntax. |
| Field Detail |
|---|
static final int NONE
[attribute]
getComparator(),
Constant Field Valuesstatic final int EXACT
[attribute="warning"]
getComparator(),
Constant Field Valuesstatic final int SUBSTRING
[attribute~="warning"]
getComparator(),
Constant Field Valuesstatic final int GREATER
[attribute>5]
getComparator(),
Constant Field Valuesstatic final int GREATER_EQUAL
[attribute>=5]
getComparator(),
Constant Field Valuesstatic final int LESS
[attribute<5]
getComparator(),
Constant Field Valuesstatic final int LESS_EQUAL
[attribute<=5]
getComparator(),
Constant Field Valuesstatic final int EQUAL
[attribute==5]
getComparator(),
Constant Field Valuesstatic final int DIFFERENT_NUM
[attribute<>5]
getComparator(),
Constant Field Valuesstatic final int DIFFERENT_STRING
[attribute~5]
getComparator(),
Constant Field Values| Method Detail |
|---|
String getAttributeName()
String getValue()
NONE.
int getComparator()
NONE,
EXACT,
SUBSTRING,
GREATER,
GREATER_EQUAL,
LESS,
LESS_EQUAL,
EQUAL,
DIFFERENT_NUM,
DIFFERENT_STRING.
void printCSS(PrintWriter out,
int indent)
out - The output print writer.indent - The indentation level.boolean isIdentical(Object obj)
true if this attribute selector is considered
logically identical to the input object. It compares the attribute name,
value and the comparator.
obj - The object to compare with.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||