KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > css > parser > DefaultDocumentHandler


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

18 package org.apache.batik.css.parser;
19
20 import org.w3c.css.sac.CSSException;
21 import org.w3c.css.sac.DocumentHandler;
22 import org.w3c.css.sac.InputSource;
23 import org.w3c.css.sac.LexicalUnit;
24 import org.w3c.css.sac.SACMediaList;
25 import org.w3c.css.sac.SelectorList;
26
27 /**
28  * This class provides a default implementation of the SAC DocumentHandler.
29  *
30  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
31  * @version $Id: DefaultDocumentHandler.java,v 1.4 2004/08/18 07:13:02 vhardy Exp $
32  */

33 public class DefaultDocumentHandler implements DocumentHandler {
34     /**
35      * The instance of this class.
36      */

37     public final static DocumentHandler INSTANCE = new DefaultDocumentHandler();
38
39     /**
40      * Creates a new DefaultDocumentHandler.
41      */

42     protected DefaultDocumentHandler() {
43     }
44
45     /**
46      * <b>SAC</b>: Implements {@link
47      * org.w3c.css.sac.DocumentHandler#startDocument(InputSource)}.
48      */

49     public void startDocument(InputSource source)
50         throws CSSException {
51     }
52
53     /**
54      * <b>SAC</b>: Implements {@link
55      * org.w3c.css.sac.DocumentHandler#endDocument(InputSource)}.
56      */

57     public void endDocument(InputSource source) throws CSSException {
58     }
59
60     /**
61      * <b>SAC</b>: Implements {@link
62      * org.w3c.css.sac.DocumentHandler#comment(String)}.
63      */

64     public void comment(String JavaDoc text) throws CSSException {
65     }
66
67     /**
68      * <b>SAC</b>: Implements {@link
69      * org.w3c.css.sac.DocumentHandler#ignorableAtRule(String)}.
70      */

71     public void ignorableAtRule(String JavaDoc atRule) throws CSSException {
72     }
73
74     /**
75      * <b>SAC</b>: Implements {@link
76      * org.w3c.css.sac.DocumentHandler#namespaceDeclaration(String,String)}.
77      */

78     public void namespaceDeclaration(String JavaDoc prefix, String JavaDoc uri)
79     throws CSSException {
80     }
81
82     /**
83      * <b>SAC</b>: Implements {@link
84      * DocumentHandler#importStyle(String,SACMediaList,String)}.
85      */

86     public void importStyle(String JavaDoc uri,
87                 SACMediaList media,
88                 String JavaDoc defaultNamespaceURI)
89     throws CSSException {
90     }
91
92     /**
93      * <b>SAC</b>: Implements {@link
94      * org.w3c.css.sac.DocumentHandler#startMedia(SACMediaList)}.
95      */

96     public void startMedia(SACMediaList media) throws CSSException {
97     }
98
99     /**
100      * <b>SAC</b>: Implements {@link
101      * org.w3c.css.sac.DocumentHandler#endMedia(SACMediaList)}.
102      */

103     public void endMedia(SACMediaList media) throws CSSException {
104     }
105
106     /**
107      * <b>SAC</b>: Implements {@link
108      * org.w3c.css.sac.DocumentHandler#startPage(String,String)}.
109      */

110     public void startPage(String JavaDoc name, String JavaDoc pseudo_page)
111         throws CSSException {
112     }
113
114     /**
115      * <b>SAC</b>: Implements {@link
116      * org.w3c.css.sac.DocumentHandler#endPage(String,String)}.
117      */

118     public void endPage(String JavaDoc name, String JavaDoc pseudo_page) throws CSSException {
119     }
120
121     /**
122      * <b>SAC</b>: Implements {@link
123      * org.w3c.css.sac.DocumentHandler#startFontFace()}.
124      */

125     public void startFontFace() throws CSSException {
126     }
127
128     /**
129      * <b>SAC</b>: Implements {@link
130      * org.w3c.css.sac.DocumentHandler#endFontFace()}.
131      */

132     public void endFontFace() throws CSSException {
133     }
134
135     /**
136      * <b>SAC</b>: Implements {@link
137      * org.w3c.css.sac.DocumentHandler#startSelector(SelectorList)}.
138      */

139     public void startSelector(SelectorList selectors) throws CSSException {
140     }
141
142     /**
143      * <b>SAC</b>: Implements {@link
144      * org.w3c.css.sac.DocumentHandler#endSelector(SelectorList)}.
145      */

146     public void endSelector(SelectorList selectors) throws CSSException {
147     }
148
149     /**
150      * <b>SAC</b>: Implements {@link
151      * org.w3c.css.sac.DocumentHandler#property(String,LexicalUnit,boolean)}.
152      */

153     public void property(String JavaDoc name, LexicalUnit value, boolean important)
154         throws CSSException {
155     }
156 }
157
Popular Tags