public class PositionalCSSCondition extends java.lang.Object implements CSSCondition
Constructor and Description |
---|
PositionalCSSCondition(int position,
boolean matchByType,
boolean matchByName) |
Modifier and Type | Method and Description |
---|---|
short |
getConditionType()
An integer indicating the type of
Condition . |
int |
getPosition()
Returns the position in the tree.
|
boolean |
getType()
true if the node should have the same node type (for element,
same namespaceURI and same localName). |
boolean |
getTypeNode()
true if the child node list only shows nodes of the same type
of the selector (only elements, only PIS, ...) |
boolean |
isMatch(java.lang.Object resolveState) |
public PositionalCSSCondition(int position, boolean matchByType, boolean matchByName)
public boolean isMatch(java.lang.Object resolveState)
isMatch
in interface CSSCondition
public short getConditionType()
Condition
.public int getPosition()
A negative value means from the end of the child node list.
The child node list begins at 0.
public boolean getTypeNode()
true
if the child node list only shows nodes of the same type
of the selector (only elements, only PIS, ...)public boolean getType()
true
if the node should have the same node type (for element,
same namespaceURI and same localName).