KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xslt > model > Choose


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.xslt.model;
21
22 import java.util.List JavaDoc;
23
24
25 /**
26  * <pre>
27  * &lt;xs:element name="choose" substitutionGroup="xsl:instruction">
28  * &lt;xs:complexType>
29  * &lt;xs:complexContent>
30  * &lt;xs:extension base="xsl:element-only-versioned-element-type">
31  * &lt;xs:sequence>
32  * &lt;xs:element ref="xsl:when" maxOccurs="unbounded"/>
33  * &lt;xs:element ref="xsl:otherwise" minOccurs="0"/>
34  * &lt;/xs:sequence>
35  * &lt;/xs:extension>
36  * &lt;/xs:complexContent>
37  * &lt;/xs:complexType>
38  * &lt;/xs:element>
39  *
40  * </pre>
41  * @author ads
42  *
43  */

44 public interface Choose extends Instruction {
45
46     String JavaDoc WHEN_PROPERTY = "when"; // NOI18N
47

48     String JavaDoc OTHERWISE_PROPERTY = "otherwise"; // NOI18N
49

50     /**
51      * @return when children for this template.
52      */

53     List JavaDoc<When> getWhens();
54     
55     /**
56      * Add new <code>when</code> element at <code>position</code>.
57      * @param when new when element.
58      * @param position position for new element.
59      */

60     void addWhen(When when, int position);
61     
62     /**
63      * Append new when element.
64      * @param when new when child element for appending.
65      */

66     void appendWhen(When when);
67     
68     /**
69      * Removes existing <code>when</code> child element.
70      * @param when when child element.
71      */

72     void removeWhen(When when);
73     
74     /**
75      * @return otherwise child element if any.
76      */

77     Otherwise getOtherwise();
78     
79     /**
80      * Sets new otherwise child element.
81      * @param otherwise new Otherwise element.
82      */

83     void setOtherwise( Otherwise otherwise );
84 }
85
Popular Tags