KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > css > sac > PositionalCondition


1 /*
2  * (c) COPYRIGHT 1999 World Wide Web Consortium
3  * (Massachusetts Institute of Technology, Institut National de Recherche
4  * en Informatique et en Automatique, Keio University).
5  * All Rights Reserved. http://www.w3.org/Consortium/Legal/
6  *
7  * $Id: PositionalCondition.java,v 1.1.1.1 2003/12/28 21:23:53 davidsch Exp $
8  */

9 package org.w3c.css.sac;
10
11 /**
12  * @version $Revision: 1.1.1.1 $
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 }
37
Popular Tags