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

19 package org.apache.batik.css.parser;
20
21 import org.w3c.css.sac.CSSException;
22 import org.w3c.css.sac.DocumentHandler;
23 import org.w3c.css.sac.InputSource;
24 import org.w3c.css.sac.LexicalUnit;
25 import org.w3c.css.sac.SACMediaList;
26 import org.w3c.css.sac.SelectorList;
27
28 /**
29  * This class provides a default implementation of the SAC DocumentHandler.
30  *
31  * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
32  * @version $Id: DefaultDocumentHandler.java 1733416 2016-03-03 07:07:13Z gadams $
33  */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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