public interface IlvCSSAttributeSelector
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
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
deepEquals(Object obj)
Returns
true if this attribute selector is considered
logically identical to the input object. |
int |
deepHashCode()
Returns a hash code of this attribute selector that is compatible with
deepEquals(Object) . |
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.
|
void |
printCSS(PrintWriter out,
int indent)
Prints the attribute selector using CSS syntax.
|
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 ValuesString 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 deepEquals(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.int deepHashCode()
deepEquals(Object)
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.