KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > xpath > XPathCoreOperation


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.xml.xpath;
21
22 /**
23  * Represents a core XPath operation.
24  *
25  * @author Enrico Lelina
26  * @version $Revision: 1.4 $
27  */

28 public interface XPathCoreOperation extends XPathOperationOrFuntion {
29     
30     /** Operator code: sum */
31     public static final int OP_SUM = 1;
32     
33     /** Operator code: minus */
34     public static final int OP_MINUS = 2;
35     
36     /** Operator code: multiplication */
37     public static final int OP_MULT = 3;
38     
39     /** Operator code: division */
40     public static final int OP_DIV = 4;
41     
42     /** Operator code: mod */
43     public static final int OP_MOD = 5;
44     
45     /** Operator code: negative/unary minus */
46     public static final int OP_NEGATIVE = 6;
47     
48     /** Operator code: and */
49     public static final int OP_AND = 7;
50     
51     /** Operator code: or */
52     public static final int OP_OR = 8;
53     
54     /** Operator code: equal */
55     public static final int OP_EQ = 9;
56     
57     /** Operator code: not equal */
58     public static final int OP_NE = 10;
59     
60     /** Operator code: less than */
61     public static final int OP_LT = 11;
62     
63     /** Operator code: less than or equal */
64     public static final int OP_LE = 12;
65     
66     /** Operator code: greater than */
67     public static final int OP_GT = 13;
68     
69     /** Operator code: greater than or equal */
70     public static final int OP_GE = 14;
71     
72     
73     /**
74      * Gets the operator code.
75      * @return the operator code
76      */

77     int getOperator();
78     
79     
80     /**
81      * Sets the operator code.
82      * @param operator the operator code
83      */

84     void setOperator(int operator);
85     
86     
87     
88     /**
89      * Gets the operator sign.
90      * @return the operator sign
91      */

92     String JavaDoc getSign();
93 }
94
Popular Tags