Class PositionalCSSCondition
- java.lang.Object
-
- org.jfree.layouting.input.style.selectors.conditions.PositionalCSSCondition
-
- All Implemented Interfaces:
java.io.Serializable,CSSCondition,org.w3c.css.sac.Condition,org.w3c.css.sac.PositionalCondition
public class PositionalCSSCondition extends java.lang.Object implements CSSCondition, org.w3c.css.sac.PositionalCondition
Creation-Date: 24.11.2005, 19:51:10- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
-
-
Constructor Summary
Constructors Constructor Description PositionalCSSCondition(int position, boolean matchByType, boolean matchByName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetConditionType()An integer indicating the type ofCondition.intgetPosition()Returns the position in the tree.booleangetType()trueif the node should have the same node type (for element, same namespaceURI and same localName).booleangetTypeNode()trueif the child node list only shows nodes of the same type of the selector (only elements, only PIS, ...)booleanisMatch(java.lang.Object resolveState)
-
-
-
Method Detail
-
isMatch
public boolean isMatch(java.lang.Object resolveState)
- Specified by:
isMatchin interfaceCSSCondition
-
getConditionType
public short getConditionType()
An integer indicating the type ofCondition.- Specified by:
getConditionTypein interfaceorg.w3c.css.sac.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.
- Specified by:
getPositionin interfaceorg.w3c.css.sac.PositionalCondition
-
getTypeNode
public boolean getTypeNode()
trueif the child node list only shows nodes of the same type of the selector (only elements, only PIS, ...)- Specified by:
getTypeNodein interfaceorg.w3c.css.sac.PositionalCondition
-
getType
public boolean getType()
trueif the node should have the same node type (for element, same namespaceURI and same localName).- Specified by:
getTypein interfaceorg.w3c.css.sac.PositionalCondition
-
-