KickJava   Java API By Example, From Geeks To Geeks.

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


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 import javax.xml.namespace.QName JavaDoc;
25
26
27
28 /**
29  * <pre>
30  * &lt;xs:element name="template" substitutionGroup="xsl:declaration">
31  * &lt;xs:complexType>
32  * &lt;xs:complexContent mixed="true">
33  * &lt;xs:extension base="xsl:versioned-element-type">
34  * &lt;xs:sequence>
35  * &lt;xs:element ref="xsl:param" minOccurs="0" maxOccurs="unbounded"/>
36  * &lt;xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
37  * &lt;/xs:sequence>
38  * &lt;xs:attribute name="match" type="xsl:pattern"/>
39  * &lt;xs:attribute name="priority" type="xs:decimal"/>
40  * &lt;xs:attribute name="mode" type="xsl:modes"/>
41  * &lt;xs:attribute name="name" type="xsl:QName"/>
42  * &lt;xs:attribute name="as" type="xsl:sequence-type" default="item()*"/>
43  * &lt;/xs:extension>
44  * &lt;/xs:complexContent>
45  * &lt;/xs:complexType>
46  * &lt;/xs:element>
47  * </pre>
48  *
49  * @author ads
50  *
51  */

52 public interface Template extends QualifiedNameable, SequenceConstructor,
53     ParamContainer, Declaration, AsSpec, MatchSpec
54 {
55
56     String JavaDoc PRIORITY = "priority"; // NOI18N
57

58     String JavaDoc MODE = ApplyTemplates.MODE;
59     
60     /**
61      * @return priority attribute for this template.
62      */

63     Double JavaDoc getPriority();
64     
65     /**
66      * Set new value for priority attribute.
67      * @param priority
68      */

69     void setPriority( Double JavaDoc priority );
70     
71     /**
72      * @return either a list, each member being either a QName or #default;
73      * or the value #all
74      */

75     List JavaDoc<QName JavaDoc> getMode();
76     
77     /**
78      * Set value for attribute "mode".
79      * @param mode new value
80      */

81     void setMode( List JavaDoc<QName JavaDoc> mode );
82 }
83
Popular Tags