01: /*
02: * (c) COPYRIGHT 1999 World Wide Web Consortium
03: * (Massachusetts Institute of Technology, Institut National de Recherche
04: * en Informatique et en Automatique, Keio University).
05: * All Rights Reserved. http://www.w3.org/Consortium/Legal/
06: *
07: * $Id$
08: */
09: package org.w3c.css.sac;
10:
11: /**
12: * @version $Revision$
13: * @author Philippe Le Hegaret
14: * @see Condition#SAC_POSITIONAL_CONDITION
15: */
16: public interface PositionalCondition extends Condition {
17:
18: /**
19: * Returns the position in the tree.
20: * <p>A negative value means from the end of the child node list.
21: * <p>The child node list begins at 0.
22: */
23: public int getPosition();
24:
25: /**
26: * <code>true</code> if the child node list only shows nodes of the same
27: * type of the selector (only elements, only PIS, ...)
28: */
29: public boolean getTypeNode();
30:
31: /**
32: * <code>true</code> if the node should have the same node type (for
33: * element, same namespaceURI and same localName).
34: */
35: public boolean getType();
36: }
|