KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.netbeans.modules.xslt.model;
20
21 import java.util.List JavaDoc;
22
23
24 /**
25  * <pre>
26  * &lt;xs:element name="analyze-string" substitutionGroup="xsl:instruction">
27  * &lt;xs:complexType>
28  * &lt;xs:complexContent>
29  * &lt;xs:extension base="xsl:element-only-versioned-element-type">
30  * &lt;xs:sequence>
31  * &lt;xs:element ref="xsl:matching-substring" minOccurs="0"/>
32  * &lt;xs:element ref="xsl:non-matching-substring" minOccurs="0"/>
33  * &lt;xs:element ref="xsl:fallback" minOccurs="0" maxOccurs="unbounded"/>
34  * &lt;/xs:sequence>
35  * &lt;xs:attribute name="select" type="xsl:expression" use="required"/>
36  * &lt;xs:attribute name="regex" type="xsl:avt" use="required"/>
37  * &lt;xs:attribute name="flags" type="xsl:avt" default=""/>
38  * &lt;/xs:extension>
39  * &lt;/xs:complexContent>
40  * &lt;/xs:complexType>
41  * &lt;/xs:element>
42  *
43  * </pre>
44  * @author ads
45  *
46  */

47 public interface AnalyzeString extends SelectSpec, SequenceElement {
48     
49     String JavaDoc REGEX = "regex"; // NOI18N
50

51     String JavaDoc FLAGS = "flags"; // NOI18N
52

53     /**
54      * @return MatchingSubstring child component
55      */

56     MatchingSubstring getMatchingSubstring();
57     
58     /**
59      * Set new MatchingSubstring child component.
60      * @param child new MatchingSubstring component
61      */

62     void setMatchingSubstring( MatchingSubstring child );
63     
64     /**
65      * @return NonMatchingSubstring child component
66      */

67     NonMatchingSubstring getNonMatchingSubstring();
68     
69     /**
70      * Set new NonMatchingSubstring child component.
71      * @param child
72      */

73     void setNonMatchingSubstring( NonMatchingSubstring child );
74     
75     /**
76      * @return unmodifiable list of fallback children components
77      */

78     List JavaDoc<Fallback> getFallbacks();
79     
80     /**
81      * Append new fallback child in the end of fallback children list.
82      * @param fallback new fallback child
83      */

84     void appendFallback( Fallback fallback );
85     
86     /**
87      * Insert new fallback child element at <code>position</code>.
88      * @param fallback new fallback child
89      * @param position index in fallback children list
90      */

91     void addFallback( Fallback fallback , int position );
92     
93     /**
94      * Removes <code>fallback</code> child.
95      * @param fallback child component
96      */

97     void removeFallback( Fallback fallback );
98     
99     /**
100      * @return "regex" attribute value
101      */

102     AttributeValueTemplate getRegex();
103     
104     /**
105      * Set "regex" attribute value.
106      * @param avt new attribute value
107      */

108     void setRegex( AttributeValueTemplate avt );
109     
110     /**
111      * @return "regex" attribute value
112      */

113     AttributeValueTemplate getFlags();
114     
115     /**
116      * Set "flags" attribute value.
117      * @param avt new attribute value
118      */

119     void setFlags( AttributeValueTemplate avt );
120 }
121
Popular Tags