org.jfree.layouting.input.style.selectors.conditions

Class PositionalCSSCondition

public class PositionalCSSCondition extends Object implements CSSCondition, PositionalCondition

Creation-Date: 24.11.2005, 19:51:10

Author: Thomas Morgner

Constructor Summary
PositionalCSSCondition(int position, boolean matchByType, boolean matchByName)
Method Summary
shortgetConditionType()
An integer indicating the type of Condition.
intgetPosition()
Returns the position in the tree.
booleangetType()
true if the node should have the same node type (for element, same namespaceURI and same localName).
booleangetTypeNode()
true if the child node list only shows nodes of the same type of the selector (only elements, only PIS, ...)
booleanisMatch(Object resolveState)

Constructor Detail

PositionalCSSCondition

public PositionalCSSCondition(int position, boolean matchByType, boolean matchByName)

Method Detail

getConditionType

public short getConditionType()
An integer indicating the type of Condition.

getPosition

public int getPosition()
Returns the position in the tree.

A negative value means from the end of the child node list.

The child node list begins at 0.

getType

public boolean getType()
true if the node should have the same node type (for element, same namespaceURI and same localName).

getTypeNode

public boolean getTypeNode()
true if the child node list only shows nodes of the same type of the selector (only elements, only PIS, ...)

isMatch

public boolean isMatch(Object resolveState)