KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2
3    Copyright 2001-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 java.io.IOException JavaDoc;
21
22 import org.w3c.css.sac.CSSException;
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 implements the {@link org.w3c.css.sac.Parser} interface plus a
29  * set of custom methods.
30  *
31  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
32  * @version $Id: ExtendedParser.java,v 1.6 2005/03/27 08:58:31 cam Exp $
33  */

34 public interface ExtendedParser extends org.w3c.css.sac.Parser {
35     
36     /**
37      * Parse a CSS style declaration (without '{' and '}').
38      *
39      * @param source The declaration.
40      * @exception CSSException Any CSS exception, possibly
41      * wrapping another exception.
42      * @exception java.io.IOException An IO exception from the parser,
43      * possibly from a byte stream or character stream
44      * supplied by the application.
45      */

46     void parseStyleDeclaration(String JavaDoc source)
47     throws CSSException, IOException JavaDoc;
48
49
50     /**
51      * Parse a CSS rule.
52      *
53      * @exception CSSException Any CSS exception, possibly
54      * wrapping another exception.
55      * @exception java.io.IOException An IO exception from the parser,
56      * possibly from a byte stream or character stream
57      * supplied by the application.
58      */

59     void parseRule(String JavaDoc source) throws CSSException, IOException JavaDoc;
60     
61     /**
62      * Parse a comma separated list of selectors.
63      *
64      *
65      * @exception CSSException Any CSS exception, possibly
66      * wrapping another exception.
67      * @exception java.io.IOException An IO exception from the parser,
68      * possibly from a byte stream or character stream
69      * supplied by the application.
70      */

71     SelectorList parseSelectors(String JavaDoc source)
72         throws CSSException, IOException JavaDoc;
73
74
75     /**
76      * Parse a CSS property value.
77      *
78      *
79      * @exception CSSException Any CSS exception, possibly
80      * wrapping another exception.
81      * @exception java.io.IOException An IO exception from the parser,
82      * possibly from a byte stream or character stream
83      * supplied by the application.
84      */

85     LexicalUnit parsePropertyValue(String JavaDoc source)
86         throws CSSException, IOException JavaDoc;
87
88     
89     /**
90      * Parse a CSS media value.
91      *
92      *
93      * @exception CSSException Any CSS exception, possibly
94      * wrapping another exception.
95      * @exception java.io.IOException An IO exception from the parser,
96      * possibly from a byte stream or character stream
97      * supplied by the application.
98      */

99     SACMediaList parseMedia(String JavaDoc mediaText)
100         throws CSSException, IOException JavaDoc;
101
102     /**
103      * Parse a CSS priority value (e&#x2e;g&#x2e; "&#x21;important").
104      *
105      *
106      * @exception CSSException Any CSS exception, possibly
107      * wrapping another exception.
108      * @exception java.io.IOException An IO exception from the parser,
109      * possibly from a byte stream or character stream
110      * supplied by the application.
111      */

112     boolean parsePriority(String JavaDoc source)
113         throws CSSException, IOException JavaDoc;
114
115 }
116
Popular Tags