All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.css.StyleSheetParser

java.lang.Object
   |
   +----org.w3c.css.css.StyleSheetParser

public final class StyleSheetParser
extends Object
implements CssValidatorListener, CssParser

Constructor Index

 o StyleSheetParser()

Method Index

 o getStyleSheet()
 o handleAtRule(String, String)
Handles an at-rule.
 o handleRule(CssSelectors, Vector)
Adds a vector of properties to a selector.
 o notifyErrors(Errors)
 o notifyWarnings(Warnings)
 o parseStyleAttribute(InputStream, String, URL, int)
Parse some declarations.
 o parseStyleAttribute(String, String, URL, int)
Deprecated.
 o parseStyleElement(InputStream, URL, int)
Parse a style element.
 o parseStyleElement(String, URL, int)
Deprecated.
 o parseURL(URL, int)
 o reInit()
 o setAuralMode()
Deprecated.
 o setStyle(Class)
 o unsetAuralMode()
Deprecated.

Constructors

 o StyleSheetParser
 public StyleSheetParser()

Methods

 o reInit
 public void reInit()
 o getStyleSheet
 public StyleSheet getStyleSheet()
 o notifyErrors
 public void notifyErrors(Errors errors)
 o notifyWarnings
 public void notifyWarnings(Warnings warnings)
 o handleRule
 public void handleRule(CssSelectors selector,
                        Vector properties)
Adds a vector of properties to a selector.

Parameters:
selector - the selector
declarations - Properties to associate with contexts
 o handleAtRule
 public void handleAtRule(String ident,
                          String string)
Handles an at-rule.

The parameter value can be :

CssString
The value coming from a string.
CssURL
The value coming from an URL.
Vector
The value is a vector of declarations (it contains properties). This feature is not legal, so be careful.

Parameters:
ident - The ident for this at-rule (for example: 'font-face')
string - The string representation if this at-rule
 o parseURL
 public void parseURL(URL url,
                      int origin)
Parameters:
url - the URL containing the style sheet
origin - the origin of the style sheet
Throws: IOException
an IO error
 o parseStyleElement
 public void parseStyleElement(InputStream input,
                               URL url,
                               int lineno)
Parse a style element. The Style element always comes from the user

Parameters:
input - the inputStream containing the style data
url - the name of the file the style element was read in.
Throws: IOException
an IO error
 o parseStyleElement
 public void parseStyleElement(String input,
                               URL url,
                               int lineno)
Note: parseStyleElement() is deprecated. Replaced by parseStyleElement

Parameters:
input - the inputStream containing the style data
url - the name of the file the style element was read in.
Throws: IOException
an IO error
See Also:
parseStyleElement
 o parseStyleAttribute
 public void parseStyleAttribute(InputStream input,
                                 String id,
                                 URL url,
                                 int lineno)
Parse some declarations. All declarations always comes from the user

Parameters:
input - the inputStream containing the style data
id - the uniq id
filename - the name of the file the style element was read in.
Throws: IOException
an IO error
 o parseStyleAttribute
 public void parseStyleAttribute(String input,
                                 String id,
                                 URL url,
                                 int lineno)
Note: parseStyleAttribute() is deprecated. Replaced by parseStyleAttribute

Parameters:
input - the inputStream containing the style data
id - the uniq id
url - the name of the file the style element was read in.
Throws: IOException
an IO error
See Also:
parseStyleAttribute
 o setStyle
 public void setStyle(Class style)
 o setAuralMode
 public void setAuralMode()
Note: setAuralMode() is deprecated.

 o unsetAuralMode
 public void unsetAuralMode()
Note: unsetAuralMode() is deprecated.


All Packages  Class Hierarchy  This Package  Previous  Next  Index