KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > taglib > VarTransformerTagSupport


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.taglib;
17
18 import org.apache.cocoon.xml.XMLConsumer;
19
20 import org.xml.sax.Attributes JavaDoc;
21 import org.xml.sax.Locator JavaDoc;
22 import org.xml.sax.SAXException JavaDoc;
23
24 /**
25  * @author <a HREF="mailto:volker.schmitt@basf-it-services.com">Volker Schmitt</a>
26  * @version CVS $Id: VarTransformerTagSupport.java 158423 2005-03-21 09:15:22Z cziegeler $
27  */

28 public class VarTransformerTagSupport extends VarTagSupport implements TransformerTag {
29     protected XMLConsumer xmlConsumer;
30
31     /*
32      * @see ContentHandler#setDocumentLocator(Locator)
33      */

34     public void setDocumentLocator(Locator JavaDoc locator) {
35         xmlConsumer.setDocumentLocator(locator);
36     }
37
38     /*
39      * @see ContentHandler#startDocument()
40      */

41     public void startDocument() throws SAXException JavaDoc {
42         // nothing to do here
43
}
44
45     /*
46      * @see ContentHandler#endDocument()
47      */

48     public void endDocument() throws SAXException JavaDoc {
49         // nothing to do here
50
}
51
52     /*
53      * @see ContentHandler#startPrefixMapping(String, String)
54      */

55     public void startPrefixMapping(String JavaDoc prefix, String JavaDoc uri) throws SAXException JavaDoc {
56         xmlConsumer.startPrefixMapping(prefix, uri);
57     }
58
59     /*
60      * @see ContentHandler#endPrefixMapping(String)
61      */

62     public void endPrefixMapping(String JavaDoc prefix) throws SAXException JavaDoc {
63         xmlConsumer.endPrefixMapping(prefix);
64     }
65
66     /*
67      * @see ContentHandler#startElement(String, String, String, Attributes)
68      */

69     public void startElement(String JavaDoc namespaceURI, String JavaDoc localName, String JavaDoc qName, Attributes JavaDoc atts) throws SAXException JavaDoc {
70         xmlConsumer.startElement(namespaceURI, localName, qName, atts);
71     }
72
73     /*
74      * @see ContentHandler#endElement(String, String, String)
75      */

76     public void endElement(String JavaDoc namespaceURI, String JavaDoc localName, String JavaDoc qName) throws SAXException JavaDoc {
77         xmlConsumer.endElement(namespaceURI, localName, qName);
78     }
79
80     /*
81      * @see ContentHandler#characters(char[], int, int)
82      */

83     public void characters(char[] ch, int start, int length) throws SAXException JavaDoc {
84         xmlConsumer.characters(ch, start, length);
85     }
86
87     /*
88      * @see ContentHandler#ignorableWhitespace(char[], int, int)
89      */

90     public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException JavaDoc {
91         xmlConsumer.ignorableWhitespace(ch, start, length);
92     }
93
94     /*
95      * @see ContentHandler#processingInstruction(String, String)
96      */

97     public void processingInstruction(String JavaDoc target, String JavaDoc data) throws SAXException JavaDoc {
98         xmlConsumer.processingInstruction(target, data);
99     }
100
101     /*
102      * @see ContentHandler#skippedEntity(String)
103      */

104     public void skippedEntity(String JavaDoc name) throws SAXException JavaDoc {
105         xmlConsumer.skippedEntity(name);
106     }
107
108     /*
109      * @see LexicalHandler#startDTD(String, String, String)
110      */

111     public void startDTD(String JavaDoc name, String JavaDoc publicId, String JavaDoc systemId) throws SAXException JavaDoc {
112         xmlConsumer.startDTD(name, publicId, systemId);
113     }
114
115     /*
116      * @see LexicalHandler#endDTD()
117      */

118     public void endDTD() throws SAXException JavaDoc {
119         xmlConsumer.endDTD();
120     }
121
122     /*
123      * @see LexicalHandler#startEntity(String)
124      */

125     public void startEntity(String JavaDoc name) throws SAXException JavaDoc {
126         xmlConsumer.startEntity(name);
127     }
128
129     /*
130      * @see LexicalHandler#endEntity(String)
131      */

132     public void endEntity(String JavaDoc name) throws SAXException JavaDoc {
133         xmlConsumer.endEntity(name);
134     }
135
136     /*
137      * @see LexicalHandler#startCDATA()
138      */

139     public void startCDATA() throws SAXException JavaDoc {
140         xmlConsumer.startCDATA();
141     }
142
143     /*
144      * @see LexicalHandler#endCDATA()
145      */

146     public void endCDATA() throws SAXException JavaDoc {
147         xmlConsumer.endCDATA();
148     }
149
150     /*
151      * @see LexicalHandler#comment(char[], int, int)
152      */

153     public void comment(char[] ch, int start, int length) throws SAXException JavaDoc {
154         xmlConsumer.comment(ch, start, length);
155     }
156
157     /*
158      * @see XMLProducer#setConsumer(XMLConsumer)
159      */

160     public void setConsumer(XMLConsumer consumer) {
161         this.xmlConsumer = consumer;
162     }
163
164     /*
165      * @see Recyclable#recycle()
166      */

167     public void recycle() {
168         this.xmlConsumer = null;
169         super.recycle();
170     }
171
172 }
173
Popular Tags