KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.Collection JavaDoc;
23
24 /**
25  *
26  * @author radval
27  *
28  */

29 public interface XPathOperationOrFuntion extends XPathExpression {
30     
31     /**
32      * Gets the name of the function.
33      * @return the function name
34      */

35     String JavaDoc getName();
36     
37     
38     /**
39      * Gets the list of child expressions.
40      * @return a collection of child expressions
41      */

42     Collection JavaDoc getChildren();
43     
44     
45     /**
46      * Gets the number of children expressions.
47      * @return the count of children expressions
48      */

49     int getChildCount();
50     
51     
52     /**
53      * Gets the child expression at the specified location.
54      * @param index the index of the child to get
55      * @return the child
56      * @throws IndexOutOfBoundsException if index is out of bounds
57      */

58     XPathExpression getChild(int index) throws IndexOutOfBoundsException JavaDoc;
59     
60     
61     /**
62      * Adds a child expression.
63      * @param child to be added
64      */

65     void addChild(XPathExpression child);
66     
67     
68     /**
69      * Removes a child expression.
70      * @param child to be removed
71      * @return <code>true</code> if the child was found and removed
72      */

73     boolean removeChild(XPathExpression child);
74     
75     
76     /**
77      * Removes all the child expressions.
78      */

79     void clearChildren();
80
81 }
82
Popular Tags