sac-1.3.orig/0000775000175000017500000000000007503372162011535 5ustar renerenesac-1.3.orig/META-INF/0000755000175000017500000000000007136163163012674 5ustar renerenesac-1.3.orig/META-INF/MANIFEST.MF0000755000175000017500000000011007140127036014313 0ustar renereneManifest-Version: 1.0 Created-By: 1.2.2 (Blackdown Java-Linux Team) sac-1.3.orig/org/0000775000175000017500000000000007140126754012325 5ustar renerenesac-1.3.orig/org/w3c/0000775000175000017500000000000007140126754013021 5ustar renerenesac-1.3.orig/org/w3c/css/0000775000175000017500000000000007140126764013612 5ustar renerenesac-1.3.orig/org/w3c/css/sac/0000775000175000017500000000000007503370373014360 5ustar renerenesac-1.3.orig/org/w3c/css/sac/helpers/0000775000175000017500000000000007140127545016020 5ustar renerenesac-1.3.orig/org/w3c/css/sac/helpers/ParserFactory.java0000644000175000017500000000246307250736212021451 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details. * * $Id: ParserFactory.java,v 1.1 2000/02/14 15:54:49 plehegar Exp $ */ package org.w3c.css.sac.helpers; import org.w3c.css.sac.Parser; /** * @version $Revision: 1.1 $ * @author Philippe Le Hegaret */ public class ParserFactory { /** * Create a parser with given selectors factory and conditions factory. */ public Parser makeParser() throws ClassNotFoundException, IllegalAccessException, InstantiationException, NullPointerException, ClassCastException { String className = System.getProperty("org.w3c.css.sac.parser"); if (className == null) { throw new NullPointerException("No value for sac.parser property"); } else { return (Parser)(Class.forName(className).newInstance()); } } } sac-1.3.orig/org/w3c/css/sac/AttributeCondition.java0000644000175000017500000000453607503370341021036 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details. * * $Id: AttributeCondition.java,v 1.5 2002/06/17 14:10:09 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.5 $ * @author Philippe Le Hegaret * @see Condition#SAC_ATTRIBUTE_CONDITION * @see Condition#SAC_ONE_OF_ATTRIBUTE_CONDITION * @see Condition#SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION * @see Condition#SAC_ID_CONDITION * @see Condition#SAC_CLASS_CONDITION * @see Condition#SAC_PSEUDO_CLASS_CONDITION */ public interface AttributeCondition extends Condition { /** * Returns the * namespace * URI of this attribute condition. *

NULL if : *

*/ public String getNamespaceURI(); /** * Returns the * local part * of the * qualified * name of this attribute. *

NULL if : *

*/ public String getLocalName(); /** * Returns true if the attribute must have an explicit value * in the original document, false otherwise. */ public boolean getSpecified(); /** * Returns the value of the attribute. * If this attribute is a class or a pseudo class attribute, you'll get * the class name (or psedo class name) without the '.' or ':'. */ public String getValue(); } sac-1.3.orig/org/w3c/css/sac/CSSException.java0000644000175000017500000000626607503370341017535 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * The original version of this interface comes from SAX : * http://www.megginson.com/SAX/ * * $Id: CSSException.java,v 1.3 2002/06/17 14:09:36 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.3 $ * @author Philippe Le Hegaret */ public class CSSException extends RuntimeException { protected String s; /** * this error is unspecified. */ public static final short SAC_UNSPECIFIED_ERR = 0; /** * If the operation is not supported */ public static final short SAC_NOT_SUPPORTED_ERR = 1; /** * If an invalid or illegal string is specified */ public static final short SAC_SYNTAX_ERR = 2; /* * Default message for unspecified error. */ protected static final String S_SAC_UNSPECIFIED_ERR = "unknown error"; /* * Default message for not supported error. */ protected static final String S_SAC_NOT_SUPPORTED_ERR = "not supported"; /* * Default message for syntax error. */ protected static final String S_SAC_SYNTAX_ERR = "syntax error"; /** * The internal exception. */ protected Exception e; protected short code; /** * Creates a new CSSException */ public CSSException() { } /** * Creates a new CSSException */ public CSSException(String s) { this.code = SAC_UNSPECIFIED_ERR; this.s = s; } /** * Creates a new CSSException with an embeded exception. * @param a the embeded exception. */ public CSSException(Exception e) { this.code = SAC_UNSPECIFIED_ERR; this.e = e; } /** * Creates a new CSSException with a specific code. * @param a the embeded exception. */ public CSSException(short code) { this.code = code; } /** * Creates a new CSSException with an embeded exception and a specified * message. * @param code the specified code. * @param e the embeded exception. */ public CSSException(short code, String s, Exception e) { this.code = code; this.s = s; this.e = e; } /** * Returns the detail message of this throwable object. * * @return the detail message of this Throwable, or null if this Throwable * does not have a detail message. */ public String getMessage() { if (s != null) { return s; } else if (e != null) { return e.getMessage(); } else { switch (code) { case SAC_UNSPECIFIED_ERR: return S_SAC_UNSPECIFIED_ERR; case SAC_NOT_SUPPORTED_ERR: return S_SAC_NOT_SUPPORTED_ERR; case SAC_SYNTAX_ERR: return S_SAC_SYNTAX_ERR; default: return null; } } } /** * returns the error code for this exception. */ public short getCode() { return code; } /** * Returns the internal exception if any, null otherwise. */ public Exception getException() { return e; } } sac-1.3.orig/org/w3c/css/sac/CSSParseException.java0000664000175000017500000001324007503370341020520 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * The original version of this interface comes from SAX : * http://www.megginson.com/SAX/ * * $Id: CSSParseException.java,v 1.3 2000/02/15 02:07:34 plehegar Exp $ */ package org.w3c.css.sac; /** * Encapsulate a CSS parse error or warning. * *

This exception will include information for locating the error * in the original CSS document. Note that although the application * will receive a CSSParseException as the argument to the handlers * in the ErrorHandler interface, the application is not actually * required to throw the exception; instead, it can simply read the * information in it and take a different action.

* *

Since this exception is a subclass of CSSException, it * inherits the ability to wrap another exception.

* * @version $Revision: 1.3 $ * @author Philippe Le Hegaret */ public class CSSParseException extends CSSException { private String uri; private int lineNumber; private int columnNumber; /** * Create a new CSSParseException from a message and a Locator. * *

This constructor is especially useful when an application is * creating its own exception from within a DocumentHandler * callback.

* * @param message The error or warning message. * @param locator The locator object for the error or warning. * @see Locator * @see Parser#setLocale */ public CSSParseException(String message, Locator locator) { super(message); this.code = SAC_SYNTAX_ERR; this.uri = locator.getURI(); this.lineNumber = locator.getLineNumber(); this.columnNumber = locator.getColumnNumber(); } /** * Wrap an existing exception in a CSSParseException. * *

This constructor is especially useful when an application is * creating its own exception from within a DocumentHandler * callback, and needs to wrap an existing exception that is not a * subclass of CSSException.

* * @param message The error or warning message, or null to * use the message from the embedded exception. * @param locator The locator object for the error or warning. * @param e Any exception * @see Locator * @see Parser#setLocale */ public CSSParseException(String message, Locator locator, Exception e) { super(SAC_SYNTAX_ERR, message, e); this.uri = locator.getURI(); this.lineNumber = locator.getLineNumber(); this.columnNumber = locator.getColumnNumber(); } /** * Create a new CSSParseException. * *

This constructor is most useful for parser writers.

* *

the parser must resolve the URI fully before creating the exception.

* * @param message The error or warning message. * @param uri The URI of the document that generated the error or warning. * @param lineNumber The line number of the end of the text that * caused the error or warning. * @param columnNumber The column number of the end of the text that * cause the error or warning. * @see Parser#setLocale */ public CSSParseException(String message, String uri, int lineNumber, int columnNumber) { super(message); this.code = SAC_SYNTAX_ERR; this.uri = uri; this.lineNumber = lineNumber; this.columnNumber = columnNumber; } /** * Create a new CSSParseException with an embedded exception. * *

This constructor is most useful for parser writers who * need to wrap an exception that is not a subclass of * CSSException.

* *

The parser must resolve the URI fully before creating the * exception.

* * @param message The error or warning message, or null to use * the message from the embedded exception. * @param uri The URI of the document that generated * the error or warning. * @param lineNumber The line number of the end of the text that * caused the error or warning. * @param columnNumber The column number of the end of the text that * cause the error or warning. * @param e Another exception to embed in this one. * @see Parser#setLocale */ public CSSParseException(String message, String uri, int lineNumber, int columnNumber, Exception e) { super(SAC_SYNTAX_ERR, message, e); this.uri = uri; this.lineNumber = lineNumber; this.columnNumber = columnNumber; } /** * Get the URI of the document where the exception occurred. * *

The URI will be resolved fully.

* * @return A string containing the URI, or null * if none is available. * @see Locator#getURI */ public String getURI() { return this.uri; } /** * The line number of the end of the text where the exception occurred. * * @return An integer representing the line number, or -1 * if none is available. * @see Locator#getLineNumber */ public int getLineNumber() { return this.lineNumber; } /** * The column number of the end of the text where the exception occurred. * *

The first column in a line is position 1.

* * @return An integer representing the column number, or -1 * if none is available. * @see Locator#getColumnNumber */ public int getColumnNumber() { return this.columnNumber; } } sac-1.3.orig/org/w3c/css/sac/CharacterDataSelector.java0000664000175000017500000000127707503370341021414 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: CharacterDataSelector.java,v 1.3 1999/09/26 10:05:32 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.3 $ * @author Philippe Le Hegaret * @see Selector#SAC_TEXT_NODE_SELECTOR * @see Selector#SAC_CDATA_SECTION_NODE_SELECTOR * @see Selector#SAC_COMMENT_NODE_SELECTOR */ public interface CharacterDataSelector extends SimpleSelector { /** * Returns the character data. */ public String getData(); } sac-1.3.orig/org/w3c/css/sac/CombinatorCondition.java0000664000175000017500000000135407503370341021165 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: CombinatorCondition.java,v 1.3 2000/03/08 20:55:41 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.3 $ * @author Philippe Le Hegaret * @see Condition#SAC_AND_CONDITION * @see Condition#SAC_OR_CONDITION */ public interface CombinatorCondition extends Condition { /** * Returns the first condition. */ public Condition getFirstCondition(); /** * Returns the second condition. */ public Condition getSecondCondition(); } sac-1.3.orig/org/w3c/css/sac/Condition.java0000664000175000017500000000766607503370341017163 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details. * * $Id: Condition.java,v 1.8 2000/02/14 15:54:12 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.8 $ * @author Philippe Le Hegaret */ public interface Condition { /** * This condition checks exactly two conditions. * example: *
     *   .part1:lang(fr)
     * 
* @see CombinatorCondition */ public static final short SAC_AND_CONDITION = 0; /** * This condition checks one of two conditions. * @see CombinatorCondition */ public static final short SAC_OR_CONDITION = 1; /** * This condition checks that a condition can't be applied to a node. * @see NegativeCondition */ public static final short SAC_NEGATIVE_CONDITION = 2; /** * This condition checks a specified position. * example: *
     *   :first-child
     * 
* @see PositionalCondition */ public static final short SAC_POSITIONAL_CONDITION = 3; /** * This condition checks an attribute. * example: *
     *   [simple]
     *   [restart="never"]
     * 
* @see AttributeCondition */ public static final short SAC_ATTRIBUTE_CONDITION = 4; /** * This condition checks an id attribute. * example: *
     *   #myId
     * 
* @see AttributeCondition */ public static final short SAC_ID_CONDITION = 5; /** * This condition checks the language of the node. * example: *
     *   :lang(fr)
     * 
* @see LangCondition */ public static final short SAC_LANG_CONDITION = 6; /** * This condition checks for a value in a space-separated values in a * specified attribute * example: *
     *   [values~="10"]
     * 
* @see AttributeCondition */ public static final short SAC_ONE_OF_ATTRIBUTE_CONDITION = 7; /** * This condition checks if the value is in a hypen-separated list of values * in a specified attribute. * example: *
     *   [languages|="fr"]
     * 
* @see AttributeCondition */ public static final short SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION = 8; /** * This condition checks for a specified class. * example: *
     *   .example
     * 
* @see AttributeCondition */ public static final short SAC_CLASS_CONDITION = 9; /** * This condition checks for the link pseudo class. * example: *
     *   :link
     *   :visited
     *   :hover
     * 
* @see AttributeCondition */ public static final short SAC_PSEUDO_CLASS_CONDITION = 10; /** * This condition checks if a node is the only one in the node list. */ public static final short SAC_ONLY_CHILD_CONDITION = 11; /** * This condition checks if a node is the only one of his type. */ public static final short SAC_ONLY_TYPE_CONDITION = 12; /** * This condition checks the content of a node. * @see ContentCondition */ public static final short SAC_CONTENT_CONDITION = 13; /** * An integer indicating the type of Condition. */ public short getConditionType(); } sac-1.3.orig/org/w3c/css/sac/ConditionFactory.java0000664000175000017500000001502307503370341020475 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details. * * $Id: ConditionFactory.java,v 1.2 2000/02/15 02:07:34 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.2 $ * @author Philippe Le Hegaret */ public interface ConditionFactory { /** * Creates an and condition * * @param first the first condition * @param second the second condition * @return A combinator condition * @exception CSSException if this exception is not supported. */ CombinatorCondition createAndCondition(Condition first, Condition second) throws CSSException; /** * Creates an or condition * * @param first the first condition * @param second the second condition * @return A combinator condition * @exception CSSException if this exception is not supported. */ CombinatorCondition createOrCondition(Condition first, Condition second) throws CSSException; /** * Creates a negative condition * * @param condition the condition * @return A negative condition * @exception CSSException if this exception is not supported. */ NegativeCondition createNegativeCondition(Condition condition) throws CSSException; /** * Creates a positional condition * * @param position the position of the node in the list. * @param typeNode true if the list should contain * only nodes of the same type (element, text node, ...). * @param type true true if the list should contain * only nodes of the same node (for element, same localName * and same namespaceURI). * @return A positional condition * @exception CSSException if this exception is not supported. */ PositionalCondition createPositionalCondition(int position, boolean typeNode, boolean type) throws CSSException; /** * Creates an attribute condition * * @param localName the localName of the attribute * @param namespaceURI the namespace URI of the attribute * @param specified true if the attribute must be specified * in the document. * @param value the value of this attribute. * @return An attribute condition * @exception CSSException if this exception is not supported. */ AttributeCondition createAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException; /** * Creates an id condition * * @param value the value of the id. * @return An Id condition * @exception CSSException if this exception is not supported. */ AttributeCondition createIdCondition(String value) throws CSSException; /** * Creates a lang condition * * @param value the value of the language. * @return A lang condition * @exception CSSException if this exception is not supported. */ LangCondition createLangCondition(String lang) throws CSSException; /** * Creates a "one of" attribute condition * * @param localName the localName of the attribute * @param namespaceURI the namespace URI of the attribute * @param specified true if the attribute must be specified * in the document. * @param value the value of this attribute. * @return A "one of" attribute condition * @exception CSSException if this exception is not supported. */ AttributeCondition createOneOfAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException; /** * Creates a "begin hyphen" attribute condition * * @param localName the localName of the attribute * @param namespaceURI the namespace URI of the attribute * @param specified true if the attribute must be specified * in the document. * @param value the value of this attribute. * @return A "begin hyphen" attribute condition * @exception CSSException if this exception is not supported. */ AttributeCondition createBeginHyphenAttributeCondition(String localName, String namespaceURI, boolean specified, String value) throws CSSException; /** * Creates a class condition * * @param localName the localName of the attribute * @param namespaceURI the namespace URI of the attribute * @param specified true if the attribute must be specified * in the document. * @param value the name of the class. * @return A class condition * @exception CSSException if this exception is not supported. */ AttributeCondition createClassCondition(String namespaceURI, String value) throws CSSException; /** * Creates a pseudo class condition * * @param namespaceURI the namespace URI of the attribute * @param value the name of the pseudo class * @return A pseudo class condition * @exception CSSException if this exception is not supported. */ AttributeCondition createPseudoClassCondition(String namespaceURI, String value) throws CSSException; /** * Creates a "only one" child condition * * @return A "only one" child condition * @exception CSSException if this exception is not supported. */ Condition createOnlyChildCondition() throws CSSException; /** * Creates a "only one" type condition * * @return A "only one" type condition * @exception CSSException if this exception is not supported. */ Condition createOnlyTypeCondition() throws CSSException; /** * Creates a content condition * * @param data the data in the content * @return A content condition * @exception CSSException if this exception is not supported. */ ContentCondition createContentCondition(String data) throws CSSException; } sac-1.3.orig/org/w3c/css/sac/ConditionalSelector.java0000664000175000017500000000150007503370341021156 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: ConditionalSelector.java,v 1.2 1999/09/25 12:32:36 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.2 $ * @author Philippe Le Hegaret * @see Selector#SAC_CONDITIONAL_SELECTOR */ public interface ConditionalSelector extends SimpleSelector { /** * Returns the simple selector. *

The simple selector can't be a ConditionalSelector.

*/ public SimpleSelector getSimpleSelector(); /** * Returns the condition to be applied on the simple selector. */ public Condition getCondition(); } sac-1.3.orig/org/w3c/css/sac/ContentCondition.java0000664000175000017500000000111007503370341020470 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: ContentCondition.java,v 1.1 1999/09/26 09:54:37 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.1 $ * @author Philippe Le Hegaret * @see Condition#SAC_CONTENT_CONDITION */ public interface ContentCondition extends Condition { /** * Returns the content. */ public String getData(); } sac-1.3.orig/org/w3c/css/sac/DescendantSelector.java0000664000175000017500000000136607503370341020775 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: DescendantSelector.java,v 1.1 2000/07/15 22:08:32 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.1 $ * @author Philippe Le Hegaret * @see Selector#SAC_DESCENDANT_SELECTOR * @see Selector#SAC_CHILD_SELECTOR */ public interface DescendantSelector extends Selector { /** * Returns the parent selector. */ public Selector getAncestorSelector(); /* * Returns the simple selector. */ public SimpleSelector getSimpleSelector(); } sac-1.3.orig/org/w3c/css/sac/DocumentHandler.java0000664000175000017500000001643407503370341020302 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: DocumentHandler.java,v 1.4 2000/02/16 21:29:35 plehegar Exp $ */ package org.w3c.css.sac; /** * This is the main interface that most CSS applications implement: if the * application needs to be informed of basic parsing events, it implements this * interface and registers an instance with the CSS parser using the * setCSSHandler method. * * @version $Revision: 1.4 $ * @author Philippe Le Hegaret */ public interface DocumentHandler { /** * Receive notification of the beginning of a style sheet. * * The CSS parser will invoke this method only once, before any other * methods in this interface. * * @param uri The URI of the style sheet. @@TODO can be NULL ! (inline style sheet) * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void startDocument(InputSource source) throws CSSException; /** * Receive notification of the end of a document. * * The CSS parser will invoke this method only once, and it will be the * last method invoked during the parse. The parser shall not invoke this * method until it has either abandoned parsing (because of an * unrecoverable error) or reached the end of input. * * @param uri The URI of the style sheet. * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void endDocument(InputSource source) throws CSSException; /** * Receive notification of a comment. * If the comment appears in a declaration (e.g. color: /* comment * / blue;), * the parser notifies the comment before the declaration. * * @param text The comment. * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void comment(String text) throws CSSException; /** * Receive notification of an unknown rule t-rule not supported by this * parser. * * @param at-rule The complete ignored at-rule. * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void ignorableAtRule(String atRule) throws CSSException; /** * Receive notification of an unknown rule t-rule not supported by this * parser. * * @param prefix null if this is the default namespace * @param uri The URI for this namespace. * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void namespaceDeclaration(String prefix, String uri) throws CSSException; /** * Receive notification of a import statement in the style sheet. * * @param uri The URI of the imported style sheet. * @param media The intended destination media for style information. * @param defaultNamepaceURI The default namespace URI for the imported * style sheet. * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void importStyle(String uri, SACMediaList media, String defaultNamespaceURI) throws CSSException; /** * Receive notification of the beginning of a media statement. * * The Parser will invoke this method at the beginning of every media * statement in the style sheet. there will be a corresponding endMedia() * event for every startElement() event. * * @param media The intended destination media for style information. * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void startMedia(SACMediaList media) throws CSSException; /** * Receive notification of the end of a media statement. * * @param media The intended destination media for style information. * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void endMedia(SACMediaList media) throws CSSException; /** * Receive notification of the beginning of a page statement. * * The Parser will invoke this method at the beginning of every page * statement in the style sheet. there will be a corresponding endPage() * event for every startPage() event. * * @param name the name of the page (if any, null otherwise) * @param pseudo_page the pseudo page (if any, null otherwise) * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void startPage(String name, String pseudo_page) throws CSSException; /** * Receive notification of the end of a media statement. * * @param media The intended destination medium for style information. * @param pseudo_page the pseudo page (if any, null otherwise) * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void endPage(String name, String pseudo_page) throws CSSException; /** * Receive notification of the beginning of a font face statement. * * The Parser will invoke this method at the beginning of every font face * statement in the style sheet. there will be a corresponding endFontFace() * event for every startFontFace() event. * * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void startFontFace() throws CSSException; /** * Receive notification of the end of a font face statement. * * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void endFontFace() throws CSSException; /** * Receive notification of the beginning of a rule statement. * * @param selectors All intended selectors for all declarations. * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void startSelector(SelectorList selectors) throws CSSException; /** * Receive notification of the end of a rule statement. * * @param selectors All intended selectors for all declarations. * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void endSelector(SelectorList selectors) throws CSSException; /** * Receive notification of a declaration. * * @param name the name of the property. * @param value the value of the property. All whitespace are stripped. * @param important is this property important ? * @exception CSSException Any CSS exception, possibly wrapping another * exception. */ public void property(String name, LexicalUnit value, boolean important) throws CSSException; } sac-1.3.orig/org/w3c/css/sac/ElementSelector.java0000664000175000017500000000267207503370341020317 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details. * * $Id: ElementSelector.java,v 1.6 2000/02/14 15:54:12 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.6 $ * @author Philippe Le Hegaret * @see Selector#SAC_ELEMENT_NODE_SELECTOR */ public interface ElementSelector extends SimpleSelector { /** * Returns the * namespace * URI of this element selector. *

NULL if this element selector can match any namespace.

*/ public String getNamespaceURI(); /** * Returns the * local part * of the * qualified * name of this element. *

NULL if this element selector can match any element.

* */ public String getLocalName(); } sac-1.3.orig/org/w3c/css/sac/ErrorHandler.java0000664000175000017500000001050307503370341017604 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * The original version of this interface comes from SAX : * http://www.megginson.com/SAX/ * * $Id: ErrorHandler.java,v 1.2 1999/09/26 10:10:34 plehegar Exp $ */ package org.w3c.css.sac; /** * Basic interface for CSS error handlers. * *

If a CSS application needs to implement customized error * handling, it must implement this interface and then register an * instance with the CSS parser using the parser's setErrorHandler * method. The parser will then report all errors and warnings * through this interface.

* *

The parser shall use this interface instead of throwing an * exception: it is up to the application whether to throw an * exception for different types of errors and warnings. Note, * however, that there is no requirement that the parser continue to * provide useful information after a call to fatalError (in other * words, a CSS driver class could catch an exception and report a * fatalError).

* *

The HandlerBase class provides a default implementation of this * interface, ignoring warnings and recoverable errors and throwing a * SAXParseException for fatal errors. An application may extend * that class rather than implementing the complete interface * itself.

* * @version $Revision: 1.2 $ * @author Philippe Le Hegaret */ public interface ErrorHandler { /** * Receive notification of a warning. * *

CSS parsers will use this method to report conditions that * are not errors or fatal errors as defined by the XML 1.0 * recommendation. The default behaviour is to take no action.

* *

The CSS parser must continue to provide normal parsing events * after invoking this method: it should still be possible for the * application to process the document through to the end.

* * @param exception The warning information encapsulated in a * CSS parse exception. * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @see CSSParseException */ public void warning(CSSParseException exception) throws CSSException; /** * Receive notification of a recoverable error. * *

This corresponds to the definition of "error" in section 1.2 * of the W3C XML 1.0 Recommendation. For example, a validating * parser would use this callback to report the violation of a * validity constraint. The default behaviour is to take no * action.

* *

The CSS parser must continue to provide normal parsing events * after invoking this method: it should still be possible for the * application to process the document through to the end. If the * application cannot do so, then the parser should report a fatal * error even if the XML 1.0 recommendation does not require it to * do so.

* * @param exception The error information encapsulated in a * CSS parse exception. * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @see CSSParseException */ public void error(CSSParseException exception) throws CSSException; /** * Receive notification of a non-recoverable error. * *

This corresponds to the definition of "fatal error" in * section 1.2 of the W3C XML 1.0 Recommendation. For example, a * parser would use this callback to report the violation of a * well-formedness constraint.

* *

The application must assume that the document is unusable * after the parser has invoked this method, and should continue * (if at all) only for the sake of collecting addition error * messages: in fact, CSS parsers are free to stop reporting any * other events once this method has been invoked.

* * @param exception The error information encapsulated in a * CSS parse exception. * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @see CSSParseException */ public void fatalError(CSSParseException exception) throws CSSException; } sac-1.3.orig/org/w3c/css/sac/InputSource.java0000664000175000017500000001672007503370341017504 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * The original version of this interface comes from SAX : * http://www.megginson.com/SAX/ * * $Id: InputSource.java,v 1.2 1999/09/26 10:09:48 plehegar Exp $ */ package org.w3c.css.sac; import java.io.InputStream; import java.io.Reader; /** * A single input source for a CSS source. * *

This class allows a CSS application to encapsulate information about an * input source in a single object, which may include a URI, a byte stream * (possibly with a specified encoding), and/or a character stream.

* *

The CSS parser will use the InputSource object to determine how * to read CSS input. If there is a character stream available, the * parser will read that stream directly; if not, the parser will use * a byte stream, if available; if neither a character stream nor a * byte stream is available, the parser will attempt to open a URI * connection to the resource identified by the URI.

* *

An InputSource object belongs to the application: the CSS parser * shall never modify it in any way (it may modify a copy if * necessary).

* * @version $Revision: 1.2 $ * @author Philippe Le Hegaret */ public class InputSource { private String uri; private InputStream byteStream; private String encoding; private Reader characterStream; private String title; private String media; /** * Zero-argument default constructor. * * @see #setURI * @see #setByteStream * @see #setCharacterStream * @see #setEncoding */ public InputSource() { } /** * Create a new input source with a URI. * *

The URI must be full resolved.

* * @param uri The URI. * @see #setURI * @see #setByteStream * @see #setEncoding * @see #setCharacterStream */ public InputSource(String uri) { setURI(uri); } /** * Create a new input source with a character stream. * *

Application writers may use setURI() to provide a base * for resolving relative URIs, and setPublicId to include a * public identifier.

* *

The character stream shall not include a byte order mark.

* * @see #setURI * @see #setByteStream * @see #setCharacterStream */ public InputSource(Reader characterStream) { setCharacterStream(characterStream); } /** * Set the URI for this input source. * *

The URI is optional if there is a byte stream or a character stream, * but it is still useful to provide one, since the application can use it * to resolve relative URIs and can include it in error messages and * warnings (the parser will attempt to open a connection to the URI only * if there is no byte stream or character stream specified).

* *

If the application knows the character encoding of the * object pointed to by the URI, it can register * the encoding using the setEncoding method.

* *

The URI must be fully resolved.

* * @param uri The URI as a string. * @see #setEncoding * @see #getURI * @see Locator#getURI * @see CSSParseException#getURI */ public void setURI(String uri) { this.uri = uri; } /** * Get the URI for this input source. * *

The getEncoding method will return the character encoding * of the object pointed to, or null if unknown.

* *

The URI will be fully resolved.

* * @return The URI. * @see #setURI * @see #getEncoding */ public String getURI() { return uri; } /** * Set the byte stream for this input source. * *

The SAX parser will ignore this if there is also a character * stream specified, but it will use a byte stream in preference * to opening a URI connection itself.

* *

If the application knows the character encoding of the * byte stream, it should set it with the setEncoding method.

* * @param byteStream A byte stream containing an CSS document or * other entity. * @see #setEncoding * @see #getByteStream * @see #getEncoding */ public void setByteStream(InputStream byteStream) { this.byteStream = byteStream; } /** * Get the byte stream for this input source. * *

The getEncoding method will return the character * encoding for this byte stream, or null if unknown.

* * @return The byte stream, or null if none was supplied. * @see #getEncoding * @see #setByteStream */ public InputStream getByteStream() { return byteStream; } /** * Set the character encoding, if known. * *

The encoding must be a string acceptable for an * CHARSET encoding declaration (see section 4.4 of the CSS * recommendation Level 2).

* *

This method has no effect when the application provides a * character stream.

* * @param encoding A string describing the character encoding. * @see #setURI * @see #setByteStream * @see #getEncoding */ public void setEncoding(String encoding) { this.encoding = encoding; } /** * Get the character encoding for a byte stream or URI. * * @return The encoding, or null if none was supplied. * @see #setByteStream * @see #getURI * @see #getByteStream */ public String getEncoding() { return encoding; } /** * Set the character stream for this input source. * *

If there is a character stream specified, the SAX parser * will ignore any byte stream and will not attempt to open * a URI connection to the URI.

* * @param characterStream The character stream containing the * CSS document or other entity. * @see #getCharacterStream */ public void setCharacterStream(Reader characterStream) { this.characterStream = characterStream; } /** * Get the character stream for this input source. * * @return The character stream, or null if none was supplied. * @see #setCharacterStream */ public Reader getCharacterStream() { return characterStream; } /** * Set the title for this input source. * @param title The advisory title. See the title attribute definition * for the LINK * element in HTML 4.0, and the title pseudo-attribute for the XML * style sheet processing instruction. */ public void setTitle(String title) { this.title = title; } /** * Returns the title for this input source. */ public String getTitle() { return title; } /** * Set the media for this input source. * @param media A comma separated list with all media. */ public void setMedia(String media) { this.media = media; } /** * Returns the media associated to the input source or null * if media are currently unknown. * @return the media associated to this input source. */ public String getMedia() { if (media == null) { return "all"; } return media; } } sac-1.3.orig/org/w3c/css/sac/LangCondition.java0000664000175000017500000000107707503370341017753 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: LangCondition.java,v 1.1 1999/09/26 09:54:37 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.1 $ * @author Philippe Le Hegaret * @see Condition#SAC_LANG_CONDITION */ public interface LangCondition extends Condition { /** * Returns the language */ public String getLang(); } sac-1.3.orig/org/w3c/css/sac/LexicalUnit.java0000664000175000017500000002253007503370341017441 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: LexicalUnit.java,v 1.9 2000/03/08 20:55:33 plehegar Exp $ */ package org.w3c.css.sac; /** * This is a lexical unit for CSS values. *

Remarks: Not all the following lexical units are supported (or * will be supported) by CSS. *

All examples are CSS2 compliant. * * @version $Revision: 1.9 $ * @author Philippe Le Hegaret */ public interface LexicalUnit { /** * , */ public static final short SAC_OPERATOR_COMMA = 0; /** * + */ public static final short SAC_OPERATOR_PLUS = 1; /** * - */ public static final short SAC_OPERATOR_MINUS = 2; /** * * */ public static final short SAC_OPERATOR_MULTIPLY = 3; /** * / */ public static final short SAC_OPERATOR_SLASH = 4; /** * % */ public static final short SAC_OPERATOR_MOD = 5; /** * ^ */ public static final short SAC_OPERATOR_EXP = 6; /** * < */ public static final short SAC_OPERATOR_LT = 7; /** * > */ public static final short SAC_OPERATOR_GT = 8; /** * <= */ public static final short SAC_OPERATOR_LE = 9; /** * >= */ public static final short SAC_OPERATOR_GE = 10; /** * ~ */ public static final short SAC_OPERATOR_TILDE = 11; /** * identifier inherit. */ public static final short SAC_INHERIT = 12; /** * Integers. * @see #getIntegerValue */ public static final short SAC_INTEGER = 13; /** * reals. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_REAL = 14; /** * Relative lengthem. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_EM = 15; /** * Relative lengthex. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_EX = 16; /** * Relative length px. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_PIXEL = 17; /** * Absolute length in. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_INCH = 18; /** * Absolute length cm. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_CENTIMETER = 19; /** * Absolute length mm. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_MILLIMETER = 20; /** * Absolute length pt. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_POINT = 21; /** * Absolute length pc. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_PICA = 22; /** * Percentage. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_PERCENTAGE = 23; /** * URI: uri(...). * @see #getStringValue */ public static final short SAC_URI = 24; /** * function counter. * @see #getFunctionName * @see #getParameters */ public static final short SAC_COUNTER_FUNCTION = 25; /** * function counters. * @see #getFunctionName * @see #getParameters */ public static final short SAC_COUNTERS_FUNCTION = 26; /** * RGB Colors. * rgb(0, 0, 0) and #000 * @see #getFunctionName * @see #getParameters */ public static final short SAC_RGBCOLOR = 27; /** * Angle deg. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_DEGREE = 28; /** * Angle grad. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_GRADIAN = 29; /** * Angle rad. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_RADIAN = 30; /** * Time ms. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_MILLISECOND = 31; /** * Time s. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_SECOND = 32; /** * Frequency Hz. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_HERTZ = 33; /** * Frequency kHz. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_KILOHERTZ = 34; /** * any identifier except inherit. * @see #getStringValue */ public static final short SAC_IDENT = 35; /** * A string. * @see #getStringValue */ public static final short SAC_STRING_VALUE = 36; /** * Attribute: attr(...). * @see #getStringValue */ public static final short SAC_ATTR = 37; /** * function rect. * @see #getFunctionName * @see #getParameters */ public static final short SAC_RECT_FUNCTION = 38; /** * A unicode range. @@TO BE DEFINED */ public static final short SAC_UNICODERANGE = 39; /** * sub expressions * (a) (a + b) (normal/none) * @see #getSubValues */ public static final short SAC_SUB_EXPRESSION = 40; /** * unknown function. * @see #getFunctionName * @see #getParameters */ public static final short SAC_FUNCTION = 41; /** * unknown dimension. * @see #getFloatValue * @see #getDimensionUnitText */ public static final short SAC_DIMENSION = 42; /** * An integer indicating the type of LexicalUnit. */ public short getLexicalUnitType(); /** * Returns the next value or null if any. */ public LexicalUnit getNextLexicalUnit(); /** * Returns the previous value or null if any. */ public LexicalUnit getPreviousLexicalUnit(); /** * Returns the integer value. * @see #SAC_INTEGER */ public int getIntegerValue(); /** * Returns the float value. *

If the type of LexicalUnit is one of SAC_DEGREE, * SAC_GRADIAN, SAC_RADIAN, SAC_MILLISECOND, SAC_SECOND, SAC_HERTZ * or SAC_KILOHERTZ, the value can never be negative.

* * @see #SAC_REAL * @see #SAC_DIMENSION * @see #SAC_EM * @see #SAC_EX * @see #SAC_PIXEL * @see #SAC_INCH * @see #SAC_CENTIMETER * @see #SAC_MILLIMETER * @see #SAC_POINT * @see #SAC_PICA * @see #SAC_PERCENTAGE * @see #SAC_DEGREE * @see #SAC_GRADIAN * @see #SAC_RADIAN * @see #SAC_MILLISECOND * @see #SAC_SECOND * @see #SAC_HERTZ * @see #SAC_KILOHERTZ */ public float getFloatValue(); /** * Returns the string representation of the unit. *

if this lexical unit represents a float, the dimension is an empty * string.

* @see #SAC_REAL * @see #SAC_DIMENSION * @see #SAC_EM * @see #SAC_EX * @see #SAC_PIXEL * @see #SAC_INCH * @see #SAC_CENTIMETER * @see #SAC_MILLIMETER * @see #SAC_POINT * @see #SAC_PICA * @see #SAC_PERCENTAGE * @see #SAC_DEGREE * @see #SAC_GRADIAN * @see #SAC_RADIAN * @see #SAC_MILLISECOND * @see #SAC_SECOND * @see #SAC_HERTZ * @see #SAC_KILOHERTZ */ public String getDimensionUnitText(); /** * Returns the name of the function. * @see #SAC_COUNTER_FUNCTION * @see #SAC_COUNTERS_FUNCTION * @see #SAC_RECT_FUNCTION * @see #SAC_FUNCTION * @see #SAC_RGBCOLOR */ public String getFunctionName(); /** * The function parameters including operators (like the comma). * #000 is converted to rgb(0, 0, 0) * can return null if SAC_FUNCTION. * @see #SAC_COUNTER_FUNCTION * @see #SAC_COUNTERS_FUNCTION * @see #SAC_RECT_FUNCTION * @see #SAC_FUNCTION * @see #SAC_RGBCOLOR */ public LexicalUnit getParameters(); /** * Returns the string value. *

If the type is SAC_URI, the return value doesn't contain * uri(....) or quotes. *

If the type is SAC_ATTR, the return value doesn't contain * attr(....). * * @see #SAC_URI * @see #SAC_ATTR * @see #SAC_IDENT * @see #SAC_STRING_VALUE * @see #SAC_UNICODERANGE @@TO BE DEFINED */ public String getStringValue(); /** * Returns a list of values inside the sub expression. * @see #SAC_SUB_EXPRESSION */ public LexicalUnit getSubValues(); } sac-1.3.orig/org/w3c/css/sac/Locator.java0000664000175000017500000000505307503370341016624 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * The original version of this interface comes from SAX : * http://www.megginson.com/SAX/ * * $Id: Locator.java,v 1.1 1999/09/26 09:58:46 plehegar Exp $ */ package org.w3c.css.sac; /** * Interface for associating a CSS event with a document location. * *

If a SAX parser provides location information to the SAX * application, it does so by implementing this interface and then * passing an instance to the application using the document * handler's setDocumentLocator method. The application can use the * object to obtain the location of any other document handler event * in the CSS source document.

* *

Note that the results returned by the object will be valid only * during the scope of each document handler method: the application * will receive unpredictable results if it attempts to use the * locator at any other time.

* *

CSS parsers are not required to supply a locator, but they are * very strong encouraged to do so. If the parser supplies a * locator, it must do so before reporting any other document events. * If no locator has been set by the time the application receives * the startDocument event, the application should assume that a * locator is not available.

* * @version $Revision: 1.1 $ * @author Philippe Le Hegaret */ public interface Locator { /** * Return the URI for the current document event. * *

The parser must resolve the URI fully before passing it to the * application.

* * @return A string containing the URI, or null * if none is available. */ public String getURI(); /** * Return the line number where the current document event ends. * Note that this is the line position of the first character * after the text associated with the document event. * @return The line number, or -1 if none is available. * @see #getColumnNumber */ public int getLineNumber(); /** * Return the column number where the current document event ends. * Note that this is the column number of the first * character after the text associated with the document * event. The first column in a line is position 1. * @return The column number, or -1 if none is available. * @see #getLineNumber */ public int getColumnNumber(); } sac-1.3.orig/org/w3c/css/sac/NegativeCondition.java0000664000175000017500000000113207503370341020624 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: NegativeCondition.java,v 1.2 1999/09/26 10:15:58 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.2 $ * @author Philippe Le Hegaret * @see Condition#SAC_NEGATIVE_CONDITION */ public interface NegativeCondition extends Condition { /** * Returns the condition. */ public Condition getCondition(); } sac-1.3.orig/org/w3c/css/sac/NegativeSelector.java0000664000175000017500000000115307503370341020461 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: NegativeSelector.java,v 1.2 1999/09/25 12:32:36 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.2 $ * @author Philippe Le Hegaret * @see Selector#SAC_NEGATIVE_SELECTOR */ public interface NegativeSelector extends SimpleSelector { /** * Returns the simple selector. */ public SimpleSelector getSimpleSelector(); } sac-1.3.orig/org/w3c/css/sac/Parser.java0000644000175000017500000002013607503370341016452 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * The original version of this interface comes from SAX : * http://www.megginson.com/SAX/ * * $Id: Parser.java,v 1.13 2000/10/27 20:45:21 plehegar Exp $ */ package org.w3c.css.sac; import java.io.IOException; import java.util.Locale; /** * Basic interface for CSS (Simple API for CSS) parsers. * *

All CSS parsers must implement this basic interface: it allows * applications to register handlers for different types of events * and to initiate a parse from a URI, or a character stream.

* *

All CSS parsers must also implement a zero-argument constructor * (though other constructors are also allowed).

* *

CSS parsers are reusable but not re-entrant: the application * may reuse a parser object (possibly with a different input source) * once the first parse has completed successfully, but it may not * invoke the parse() methods recursively within a parse.

* * @version $Revision: 1.13 $ * @author Philippe Le Hegaret * @see DocumentHandler * @see ErrorHandler * @see InputSource */ public interface Parser { /** * Allow an application to request a locale for errors and warnings. * *

CSS parsers are not required to provide localisation for errors * and warnings; if they cannot support the requested locale, * however, they must throw a CSS exception. Applications may * not request a locale change in the middle of a parse.

* * @param locale A Java Locale object. * @exception CSSException Throws an exception * (using the previous or default locale) if the * requested locale is not supported. * @see CSSException * @see CSSParseException */ public void setLocale(Locale locale) throws CSSException; /** * Allow an application to register a document event handler. * *

If the application does not register a document handler, all * document events reported by the CSS parser will be silently * ignored (this is the default behaviour implemented by * HandlerBase).

* *

Applications may register a new or different handler in the * middle of a parse, and the CSS parser must begin using the new * handler immediately.

* * @param handler The document handler. * @see DocumentHandler */ public void setDocumentHandler(DocumentHandler handler); public void setSelectorFactory(SelectorFactory selectorFactory); public void setConditionFactory(ConditionFactory conditionFactory); /** * Allow an application to register an error event handler. * *

If the application does not register an error event handler, * all error events reported by the CSS parser will be silently * ignored, except for fatalError, which will throw a CSSException * (this is the default behaviour implemented by HandlerBase).

* *

Applications may register a new or different handler in the * middle of a parse, and the CSS parser must begin using the new * handler immediately.

* * @param handler The error handler. * @see ErrorHandler * @see CSSException */ public void setErrorHandler(ErrorHandler handler); /** * Parse a CSS document. * *

The application can use this method to instruct the CSS parser * to begin parsing an CSS document from any valid input * source (a character stream, a byte stream, or a URI).

* *

Applications may not invoke this method while a parse is in * progress (they should create a new Parser instead for each * additional CSS document). Once a parse is complete, an * application may reuse the same Parser object, possibly with a * different input source.

* * @param source The input source for the top-level of the * CSS document. * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @exception java.io.IOException An IO exception from the parser, * possibly from a byte stream or character stream * supplied by the application. * @see InputSource * @see #parseStyleSheet(java.lang.String) * @see #setDocumentHandler * @see #setErrorHandler */ public void parseStyleSheet(InputSource source) throws CSSException, IOException; /** * Parse a CSS document from a URI. * *

This method is a shortcut for the common case of reading a document * from a URI. It is the exact equivalent of the following:

* *
     * parse(new InputSource(uri));
     * 
* *

The URI must be fully resolved by the application before it is passed * to the parser.

* * @param uri The URI. * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @exception java.io.IOException An IO exception from the parser, * possibly from a byte stream or character stream * supplied by the application. * @see #parseStyleSheet(InputSource) */ public void parseStyleSheet(String uri) throws CSSException, IOException; /** * Parse a CSS style declaration (without '{' and '}'). * * @param styleValue The declaration. * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @exception java.io.IOException An IO exception from the parser, * possibly from a byte stream or character stream * supplied by the application. */ public void parseStyleDeclaration(InputSource source) throws CSSException, IOException; /** * Parse a CSS rule. * * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @exception java.io.IOException An IO exception from the parser, * possibly from a byte stream or character stream * supplied by the application. */ public void parseRule(InputSource source) throws CSSException, IOException; /** * Returns a string about which CSS language is supported by this * parser. For CSS Level 1, it returns "http://www.w3.org/TR/REC-CSS1", for * CSS Level 2, it returns "http://www.w3.org/TR/REC-CSS2". Note that a * "CSSx" parser can return lexical unit other than those allowed by CSS * Level x but this usage is not recommended. */ public String getParserVersion(); /** * Parse a comma separated list of selectors. * * * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @exception java.io.IOException An IO exception from the parser, * possibly from a byte stream or character stream * supplied by the application. */ public SelectorList parseSelectors(InputSource source) throws CSSException, IOException; /** * Parse a CSS property value. * * * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @exception java.io.IOException An IO exception from the parser, * possibly from a byte stream or character stream * supplied by the application. */ public LexicalUnit parsePropertyValue(InputSource source) throws CSSException, IOException; /** * Parse a CSS priority value (e.g. "!important"). * * * @exception CSSException Any CSS exception, possibly * wrapping another exception. * @exception java.io.IOException An IO exception from the parser, * possibly from a byte stream or character stream * supplied by the application. */ public boolean parsePriority(InputSource source) throws CSSException, IOException; } sac-1.3.orig/org/w3c/css/sac/PositionalCondition.java0000664000175000017500000000210007503370341021177 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: PositionalCondition.java,v 1.4 2000/02/14 15:54:12 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.4 $ * @author Philippe Le Hegaret * @see Condition#SAC_POSITIONAL_CONDITION */ public interface PositionalCondition extends Condition { /** * Returns the position in the tree. *

A negative value means from the end of the child node list. *

The child node list begins at 0. */ public int getPosition(); /** * true if the child node list only shows nodes of the same * type of the selector (only elements, only PIS, ...) */ public boolean getTypeNode(); /** * true if the node should have the same node type (for * element, same namespaceURI and same localName). */ public boolean getType(); } sac-1.3.orig/org/w3c/css/sac/ProcessingInstructionSelector.java0000664000175000017500000000163107503370341023276 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: ProcessingInstructionSelector.java,v 1.2 1999/09/25 12:32:36 plehegar Exp $ */ package org.w3c.css.sac; /** * This simple matches a * processing instruction. * * @version $Revision: 1.2 $ * @author Philippe Le Hegaret * @see Selector#SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR */ public interface ProcessingInstructionSelector extends SimpleSelector { /** * Returns the target * of the processing instruction. */ public String getTarget(); /** * Returns the character data. */ public String getData(); } sac-1.3.orig/org/w3c/css/sac/SACMediaList.java0000664000175000017500000000127507503370341017425 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: SACMediaList.java,v 1.1 2000/02/16 21:27:32 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.1 $ * @author Philippe Le Hegaret */ public interface SACMediaList { /** * Returns the length of this media list */ public int getLength(); /** * Returns the medium at the specified index, or null if this * is not a valid index. */ public String item(int index); } sac-1.3.orig/org/w3c/css/sac/Selector.java0000664000175000017500000000763707503370341017013 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details. * * $Id: Selector.java,v 1.12 2000/07/15 22:08:45 plehegar Exp $ */ package org.w3c.css.sac; /** * This interface defines a selector. *

Remarks: Not all the following selectors are supported (or will be * supported) by CSS. *

All examples are CSS2 compliant. * * @version $Revision: 1.12 $ * @author Philippe Le Hegaret */ public interface Selector { /* simple selectors */ /** * This is a conditional selector. * example: *

     *   simple[role="private"]
     *   .part1
     *   H1#myId
     *   P:lang(fr).p1
     * 
* * @see ConditionalSelector */ public static final short SAC_CONDITIONAL_SELECTOR = 0; /** * This selector matches any node. * @see SimpleSelector */ public static final short SAC_ANY_NODE_SELECTOR = 1; /** * This selector matches the root node. * @see SimpleSelector */ public static final short SAC_ROOT_NODE_SELECTOR = 2; /** * This selector matches only node that are different from a specified one. * @see NegativeSelector */ public static final short SAC_NEGATIVE_SELECTOR = 3; /** * This selector matches only element node. * example: *
     *   H1
     *   animate
     * 
* @see ElementSelector */ public static final short SAC_ELEMENT_NODE_SELECTOR = 4; /** * This selector matches only text node. * @see CharacterDataSelector */ public static final short SAC_TEXT_NODE_SELECTOR = 5; /** * This selector matches only cdata node. * @see CharacterDataSelector */ public static final short SAC_CDATA_SECTION_NODE_SELECTOR = 6; /** * This selector matches only processing instruction node. * @see ProcessingInstructionSelector */ public static final short SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR = 7; /** * This selector matches only comment node. * @see CharacterDataSelector */ public static final short SAC_COMMENT_NODE_SELECTOR = 8; /** * This selector matches the 'first line' pseudo element. * example: *
     *   :first-line
     * 
* @see ElementSelector */ public static final short SAC_PSEUDO_ELEMENT_SELECTOR = 9; /* combinator selectors */ /** * This selector matches an arbitrary descendant of some ancestor element. * example: *
     *   E F
     * 
* @see DescendantSelector */ public static final short SAC_DESCENDANT_SELECTOR = 10; /** * This selector matches a childhood relationship between two elements. * example: *
     *   E > F
     * 
* @see DescendantSelector */ public static final short SAC_CHILD_SELECTOR = 11; /** * This selector matches two selectors who shared the same parent in the * document tree and the element represented by the first sequence * immediately precedes the element represented by the second one. * example: *
     *   E + F
     * 
* @see SiblingSelector */ public static final short SAC_DIRECT_ADJACENT_SELECTOR = 12; /** * An integer indicating the type of Selector */ public short getSelectorType(); } sac-1.3.orig/org/w3c/css/sac/SelectorFactory.java0000664000175000017500000001270607503370341020334 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. * See W3C License http://www.w3.org/Consortium/Legal/ for more details. * * $Id: SelectorFactory.java,v 1.3 2000/07/27 21:19:21 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.3 $ * @author Philippe Le Hegaret * @see org.w3c.css.sac.Selector */ public interface SelectorFactory { /** * Creates a conditional selector. * * @param selector a selector. * @param condition a condition * @return the conditional selector. * @exception CSSException If this selector is not supported. */ ConditionalSelector createConditionalSelector(SimpleSelector selector, Condition condition) throws CSSException; /** * Creates an any node selector. * * @return the any node selector. * @exception CSSException If this selector is not supported. */ SimpleSelector createAnyNodeSelector() throws CSSException; /** * Creates an root node selector. * * @return the root node selector. * @exception CSSException If this selector is not supported. */ SimpleSelector createRootNodeSelector() throws CSSException; /** * Creates an negative selector. * * @param selector a selector. * @return the negative selector. * @exception CSSException If this selector is not supported. */ NegativeSelector createNegativeSelector(SimpleSelector selector) throws CSSException; /** * Creates an element selector. * * @param namespaceURI the namespace * URI of the element selector. * @param tagName the local * part of the element name. NULL if this element * selector can match any element.

* @return the element selector * @exception CSSException If this selector is not supported. */ ElementSelector createElementSelector(String namespaceURI, String tagName) throws CSSException; /** * Creates a text node selector. * * @param data the data * @return the text node selector * @exception CSSException If this selector is not supported. */ CharacterDataSelector createTextNodeSelector(String data) throws CSSException; /** * Creates a cdata section node selector. * * @param data the data * @return the cdata section node selector * @exception CSSException If this selector is not supported. */ CharacterDataSelector createCDataSectionSelector(String data) throws CSSException; /** * Creates a processing instruction node selector. * * @param target the target * @param data the data * @return the processing instruction node selector * @exception CSSException If this selector is not supported. */ ProcessingInstructionSelector createProcessingInstructionSelector(String target, String data) throws CSSException; /** * Creates a comment node selector. * * @param data the data * @return the comment node selector * @exception CSSException If this selector is not supported. */ CharacterDataSelector createCommentSelector(String data) throws CSSException; /** * Creates a pseudo element selector. * * @param pseudoName the pseudo element name. NULL if this * element selector can match any pseudo element.

* @return the element selector * @exception CSSException If this selector is not supported. */ ElementSelector createPseudoElementSelector(String namespaceURI, String pseudoName) throws CSSException; /** * Creates a descendant selector. * * @param parent the parent selector * @param descendant the descendant selector * @return the combinator selector. * @exception CSSException If this selector is not supported. */ DescendantSelector createDescendantSelector(Selector parent, SimpleSelector descendant) throws CSSException; /** * Creates a child selector. * * @param parent the parent selector * @param child the child selector * @return the combinator selector. * @exception CSSException If this selector is not supported. */ DescendantSelector createChildSelector(Selector parent, SimpleSelector child) throws CSSException; /** * Creates a sibling selector. * * @param nodeType the type of nodes in the siblings list. * @param child the child selector * @param adjacent the direct adjacent selector * @return the sibling selector with nodeType equals to org.w3c.dom.Node.ELEMENT_NODE * @exception CSSException If this selector is not supported. */ SiblingSelector createDirectAdjacentSelector(short nodeType, Selector child, SimpleSelector directAdjacent) throws CSSException; } sac-1.3.orig/org/w3c/css/sac/SelectorList.java0000664000175000017500000000156007503370341017634 0ustar renerene/* * Copyright (c) 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: SelectorList.java,v 1.1 1999/09/26 10:06:45 plehegar Exp $ */ package org.w3c.css.sac; /** * The SelectorList interface provides the abstraction of an ordered collection * of selectors, without defining or constraining how this collection is * implemented. * * @version $Revision: 1.1 $ * @author Philippe Le Hegaret */ public interface SelectorList { /** * Returns the length of this selector list */ public int getLength(); /** * Returns the selector at the specified index, or null if this * is not a valid index. */ public Selector item(int index); } sac-1.3.orig/org/w3c/css/sac/SiblingSelector.java0000664000175000017500000000175507503370341020316 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: SiblingSelector.java,v 1.3 2000/07/27 21:19:21 plehegar Exp $ */ package org.w3c.css.sac; /** * @version $Revision: 1.3 $ * @author Philippe Le Hegaret * @see Selector#SAC_DIRECT_ADJACENT_SELECTOR */ public interface SiblingSelector extends Selector { public static final short ANY_NODE = 201; /** * The node type to considered in the siblings list. * All DOM node types are supported. In order to support the "any" node * type, the code ANY_NODE is added to the DOM node types. */ public short getNodeType(); /** * Returns the first selector. */ public Selector getSelector(); /* * Returns the second selector. */ public SimpleSelector getSiblingSelector(); } sac-1.3.orig/org/w3c/css/sac/SimpleSelector.java0000664000175000017500000000120507503370341020146 0ustar renerene/* * (c) COPYRIGHT 1999 World Wide Web Consortium * (Massachusetts Institute of Technology, Institut National de Recherche * en Informatique et en Automatique, Keio University). * All Rights Reserved. http://www.w3.org/Consortium/Legal/ * * $Id: SimpleSelector.java,v 1.2 1999/09/30 16:54:22 plehegar Exp $ */ package org.w3c.css.sac; /** * This interface is only for constraints on selectors. * *

A ConditionalSelector can only accept a simple selector or a * negative selector.

* * @version $Revision: 1.2 $ * @author Philippe Le Hegaret */ public interface SimpleSelector extends Selector { // empty } sac-1.3.orig/doc/0000775000175000017500000000000007503400060012267 5ustar renerenesac-1.3.orig/doc/overview-tree.html0000664000175000017500000002113107503400056015763 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Class Hierarchy
W3C logo

Hierarchy For All Packages

Package Hierarchies:
org.w3c.css.sac, org.w3c.css.sac.helpers

Class Hierarchy

Interface Hierarchy



Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/index-all.html0000664000175000017500000021531307503400056015044 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Index
W3C logo
A C D E F G I L M N O P S W

A

ANY_NODE - Static variable in interface org.w3c.css.sac.SiblingSelector
 
AttributeCondition - interface org.w3c.css.sac.AttributeCondition.
 

C

CharacterDataSelector - interface org.w3c.css.sac.CharacterDataSelector.
 
code - Variable in class org.w3c.css.sac.CSSException
 
CombinatorCondition - interface org.w3c.css.sac.CombinatorCondition.
 
comment(String) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of a comment.
Condition - interface org.w3c.css.sac.Condition.
 
ConditionalSelector - interface org.w3c.css.sac.ConditionalSelector.
 
ConditionFactory - interface org.w3c.css.sac.ConditionFactory.
 
ContentCondition - interface org.w3c.css.sac.ContentCondition.
 
createAndCondition(Condition, Condition) - Method in interface org.w3c.css.sac.ConditionFactory
Creates an and condition
createAnyNodeSelector() - Method in interface org.w3c.css.sac.SelectorFactory
Creates an any node selector.
createAttributeCondition(String, String, boolean, String) - Method in interface org.w3c.css.sac.ConditionFactory
Creates an attribute condition
createBeginHyphenAttributeCondition(String, String, boolean, String) - Method in interface org.w3c.css.sac.ConditionFactory
Creates a "begin hyphen" attribute condition
createCDataSectionSelector(String) - Method in interface org.w3c.css.sac.SelectorFactory
Creates a cdata section node selector.
createChildSelector(Selector, SimpleSelector) - Method in interface org.w3c.css.sac.SelectorFactory
Creates a child selector.
createClassCondition(String, String) - Method in interface org.w3c.css.sac.ConditionFactory
Creates a class condition
createCommentSelector(String) - Method in interface org.w3c.css.sac.SelectorFactory
Creates a comment node selector.
createConditionalSelector(SimpleSelector, Condition) - Method in interface org.w3c.css.sac.SelectorFactory
Creates a conditional selector.
createContentCondition(String) - Method in interface org.w3c.css.sac.ConditionFactory
Creates a content condition
createDescendantSelector(Selector, SimpleSelector) - Method in interface org.w3c.css.sac.SelectorFactory
Creates a descendant selector.
createDirectAdjacentSelector(short, Selector, SimpleSelector) - Method in interface org.w3c.css.sac.SelectorFactory
Creates a sibling selector.
createElementSelector(String, String) - Method in interface org.w3c.css.sac.SelectorFactory
Creates an element selector.
createIdCondition(String) - Method in interface org.w3c.css.sac.ConditionFactory
Creates an id condition
createLangCondition(String) - Method in interface org.w3c.css.sac.ConditionFactory
Creates a lang condition
createNegativeCondition(Condition) - Method in interface org.w3c.css.sac.ConditionFactory
Creates a negative condition
createNegativeSelector(SimpleSelector) - Method in interface org.w3c.css.sac.SelectorFactory
Creates an negative selector.
createOneOfAttributeCondition(String, String, boolean, String) - Method in interface org.w3c.css.sac.ConditionFactory
Creates a "one of" attribute condition
createOnlyChildCondition() - Method in interface org.w3c.css.sac.ConditionFactory
Creates a "only one" child condition
createOnlyTypeCondition() - Method in interface org.w3c.css.sac.ConditionFactory
Creates a "only one" type condition
createOrCondition(Condition, Condition) - Method in interface org.w3c.css.sac.ConditionFactory
Creates an or condition
createPositionalCondition(int, boolean, boolean) - Method in interface org.w3c.css.sac.ConditionFactory
Creates a positional condition
createProcessingInstructionSelector(String, String) - Method in interface org.w3c.css.sac.SelectorFactory
Creates a processing instruction node selector.
createPseudoClassCondition(String, String) - Method in interface org.w3c.css.sac.ConditionFactory
Creates a pseudo class condition
createPseudoElementSelector(String, String) - Method in interface org.w3c.css.sac.SelectorFactory
Creates a pseudo element selector.
createRootNodeSelector() - Method in interface org.w3c.css.sac.SelectorFactory
Creates an root node selector.
createTextNodeSelector(String) - Method in interface org.w3c.css.sac.SelectorFactory
Creates a text node selector.
CSSException - exception org.w3c.css.sac.CSSException.
 
CSSException() - Constructor for class org.w3c.css.sac.CSSException
Creates a new CSSException
CSSException(Exception) - Constructor for class org.w3c.css.sac.CSSException
Creates a new CSSException with an embeded exception.
CSSException(short) - Constructor for class org.w3c.css.sac.CSSException
Creates a new CSSException with a specific code.
CSSException(short, String, Exception) - Constructor for class org.w3c.css.sac.CSSException
Creates a new CSSException with an embeded exception and a specified message.
CSSException(String) - Constructor for class org.w3c.css.sac.CSSException
Creates a new CSSException
CSSParseException - exception org.w3c.css.sac.CSSParseException.
Encapsulate a CSS parse error or warning.
CSSParseException(String, Locator) - Constructor for class org.w3c.css.sac.CSSParseException
Create a new CSSParseException from a message and a Locator.
CSSParseException(String, Locator, Exception) - Constructor for class org.w3c.css.sac.CSSParseException
Wrap an existing exception in a CSSParseException.
CSSParseException(String, String, int, int) - Constructor for class org.w3c.css.sac.CSSParseException
Create a new CSSParseException.
CSSParseException(String, String, int, int, Exception) - Constructor for class org.w3c.css.sac.CSSParseException
Create a new CSSParseException with an embedded exception.

D

DescendantSelector - interface org.w3c.css.sac.DescendantSelector.
 
DocumentHandler - interface org.w3c.css.sac.DocumentHandler.
This is the main interface that most CSS applications implement: if the application needs to be informed of basic parsing events, it implements this interface and registers an instance with the CSS parser using the setCSSHandler method.

E

e - Variable in class org.w3c.css.sac.CSSException
The internal exception.
ElementSelector - interface org.w3c.css.sac.ElementSelector.
 
endDocument(InputSource) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the end of a document.
endFontFace() - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the end of a font face statement.
endMedia(SACMediaList) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the end of a media statement.
endPage(String, String) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the end of a media statement.
endSelector(SelectorList) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the end of a rule statement.
error(CSSParseException) - Method in interface org.w3c.css.sac.ErrorHandler
Receive notification of a recoverable error.
ErrorHandler - interface org.w3c.css.sac.ErrorHandler.
Basic interface for CSS error handlers.

F

fatalError(CSSParseException) - Method in interface org.w3c.css.sac.ErrorHandler
Receive notification of a non-recoverable error.

G

getAncestorSelector() - Method in interface org.w3c.css.sac.DescendantSelector
Returns the parent selector.
getByteStream() - Method in class org.w3c.css.sac.InputSource
Get the byte stream for this input source.
getCharacterStream() - Method in class org.w3c.css.sac.InputSource
Get the character stream for this input source.
getCode() - Method in class org.w3c.css.sac.CSSException
returns the error code for this exception.
getColumnNumber() - Method in class org.w3c.css.sac.CSSParseException
The column number of the end of the text where the exception occurred.
getColumnNumber() - Method in interface org.w3c.css.sac.Locator
Return the column number where the current document event ends.
getCondition() - Method in interface org.w3c.css.sac.ConditionalSelector
Returns the condition to be applied on the simple selector.
getCondition() - Method in interface org.w3c.css.sac.NegativeCondition
Returns the condition.
getConditionType() - Method in interface org.w3c.css.sac.Condition
An integer indicating the type of Condition.
getData() - Method in interface org.w3c.css.sac.ProcessingInstructionSelector
Returns the character data.
getData() - Method in interface org.w3c.css.sac.CharacterDataSelector
Returns the character data.
getData() - Method in interface org.w3c.css.sac.ContentCondition
Returns the content.
getDimensionUnitText() - Method in interface org.w3c.css.sac.LexicalUnit
Returns the string representation of the unit.
getEncoding() - Method in class org.w3c.css.sac.InputSource
Get the character encoding for a byte stream or URI.
getException() - Method in class org.w3c.css.sac.CSSException
Returns the internal exception if any, null otherwise.
getFirstCondition() - Method in interface org.w3c.css.sac.CombinatorCondition
Returns the first condition.
getFloatValue() - Method in interface org.w3c.css.sac.LexicalUnit
Returns the float value.
getFunctionName() - Method in interface org.w3c.css.sac.LexicalUnit
Returns the name of the function.
getIntegerValue() - Method in interface org.w3c.css.sac.LexicalUnit
Returns the integer value.
getLang() - Method in interface org.w3c.css.sac.LangCondition
Returns the language
getLength() - Method in interface org.w3c.css.sac.SelectorList
Returns the length of this selector list
getLength() - Method in interface org.w3c.css.sac.SACMediaList
Returns the length of this media list
getLexicalUnitType() - Method in interface org.w3c.css.sac.LexicalUnit
An integer indicating the type of LexicalUnit.
getLineNumber() - Method in class org.w3c.css.sac.CSSParseException
The line number of the end of the text where the exception occurred.
getLineNumber() - Method in interface org.w3c.css.sac.Locator
Return the line number where the current document event ends.
getLocalName() - Method in interface org.w3c.css.sac.ElementSelector
Returns the local part of the qualified name of this element.
getLocalName() - Method in interface org.w3c.css.sac.AttributeCondition
Returns the local part of the qualified name of this attribute.
getMedia() - Method in class org.w3c.css.sac.InputSource
Returns the media associated to the input source or null if media are currently unknown.
getMessage() - Method in class org.w3c.css.sac.CSSException
Returns the detail message of this throwable object.
getNamespaceURI() - Method in interface org.w3c.css.sac.ElementSelector
Returns the namespace URI of this element selector.
getNamespaceURI() - Method in interface org.w3c.css.sac.AttributeCondition
Returns the namespace URI of this attribute condition.
getNextLexicalUnit() - Method in interface org.w3c.css.sac.LexicalUnit
Returns the next value or null if any.
getNodeType() - Method in interface org.w3c.css.sac.SiblingSelector
The node type to considered in the siblings list.
getParameters() - Method in interface org.w3c.css.sac.LexicalUnit
The function parameters including operators (like the comma).
getParserVersion() - Method in interface org.w3c.css.sac.Parser
Returns a string about which CSS language is supported by this parser.
getPosition() - Method in interface org.w3c.css.sac.PositionalCondition
Returns the position in the tree.
getPreviousLexicalUnit() - Method in interface org.w3c.css.sac.LexicalUnit
Returns the previous value or null if any.
getSecondCondition() - Method in interface org.w3c.css.sac.CombinatorCondition
Returns the second condition.
getSelector() - Method in interface org.w3c.css.sac.SiblingSelector
Returns the first selector.
getSelectorType() - Method in interface org.w3c.css.sac.Selector
An integer indicating the type of Selector
getSiblingSelector() - Method in interface org.w3c.css.sac.SiblingSelector
 
getSimpleSelector() - Method in interface org.w3c.css.sac.DescendantSelector
 
getSimpleSelector() - Method in interface org.w3c.css.sac.ConditionalSelector
Returns the simple selector.
getSimpleSelector() - Method in interface org.w3c.css.sac.NegativeSelector
Returns the simple selector.
getSpecified() - Method in interface org.w3c.css.sac.AttributeCondition
Returns true if the attribute must have an explicit value in the original document, false otherwise.
getStringValue() - Method in interface org.w3c.css.sac.LexicalUnit
Returns the string value.
getSubValues() - Method in interface org.w3c.css.sac.LexicalUnit
Returns a list of values inside the sub expression.
getTarget() - Method in interface org.w3c.css.sac.ProcessingInstructionSelector
Returns the target of the processing instruction.
getTitle() - Method in class org.w3c.css.sac.InputSource
Returns the title for this input source.
getType() - Method in interface org.w3c.css.sac.PositionalCondition
true if the node should have the same node type (for element, same namespaceURI and same localName).
getTypeNode() - Method in interface org.w3c.css.sac.PositionalCondition
true if the child node list only shows nodes of the same type of the selector (only elements, only PIS, ...)
getURI() - Method in class org.w3c.css.sac.CSSParseException
Get the URI of the document where the exception occurred.
getURI() - Method in class org.w3c.css.sac.InputSource
Get the URI for this input source.
getURI() - Method in interface org.w3c.css.sac.Locator
Return the URI for the current document event.
getValue() - Method in interface org.w3c.css.sac.AttributeCondition
Returns the value of the attribute.

I

ignorableAtRule(String) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of an unknown rule t-rule not supported by this parser.
importStyle(String, SACMediaList, String) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of a import statement in the style sheet.
InputSource - class org.w3c.css.sac.InputSource.
A single input source for a CSS source.
InputSource() - Constructor for class org.w3c.css.sac.InputSource
Zero-argument default constructor.
InputSource(Reader) - Constructor for class org.w3c.css.sac.InputSource
Create a new input source with a character stream.
InputSource(String) - Constructor for class org.w3c.css.sac.InputSource
Create a new input source with a URI.
item(int) - Method in interface org.w3c.css.sac.SelectorList
Returns the selector at the specified index, or null if this is not a valid index.
item(int) - Method in interface org.w3c.css.sac.SACMediaList
Returns the medium at the specified index, or null if this is not a valid index.

L

LangCondition - interface org.w3c.css.sac.LangCondition.
 
LexicalUnit - interface org.w3c.css.sac.LexicalUnit.
This is a lexical unit for CSS values.
Locator - interface org.w3c.css.sac.Locator.
Interface for associating a CSS event with a document location.

M

makeParser() - Method in class org.w3c.css.sac.helpers.ParserFactory
Create a parser with given selectors factory and conditions factory.

N

namespaceDeclaration(String, String) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of an unknown rule t-rule not supported by this parser.
NegativeCondition - interface org.w3c.css.sac.NegativeCondition.
 
NegativeSelector - interface org.w3c.css.sac.NegativeSelector.
 

O

org.w3c.css.sac - package org.w3c.css.sac
 
org.w3c.css.sac.helpers - package org.w3c.css.sac.helpers
 

P

parsePriority(InputSource) - Method in interface org.w3c.css.sac.Parser
Parse a CSS priority value (e.g.
parsePropertyValue(InputSource) - Method in interface org.w3c.css.sac.Parser
Parse a CSS property value.
Parser - interface org.w3c.css.sac.Parser.
Basic interface for CSS (Simple API for CSS) parsers.
ParserFactory - class org.w3c.css.sac.helpers.ParserFactory.
 
ParserFactory() - Constructor for class org.w3c.css.sac.helpers.ParserFactory
 
parseRule(InputSource) - Method in interface org.w3c.css.sac.Parser
Parse a CSS rule.
parseSelectors(InputSource) - Method in interface org.w3c.css.sac.Parser
Parse a comma separated list of selectors.
parseStyleDeclaration(InputSource) - Method in interface org.w3c.css.sac.Parser
Parse a CSS style declaration (without '{' and '}').
parseStyleSheet(InputSource) - Method in interface org.w3c.css.sac.Parser
Parse a CSS document.
parseStyleSheet(String) - Method in interface org.w3c.css.sac.Parser
Parse a CSS document from a URI.
PositionalCondition - interface org.w3c.css.sac.PositionalCondition.
 
ProcessingInstructionSelector - interface org.w3c.css.sac.ProcessingInstructionSelector.
This simple matches a processing instruction.
property(String, LexicalUnit, boolean) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of a declaration.

S

s - Variable in class org.w3c.css.sac.CSSException
 
S_SAC_NOT_SUPPORTED_ERR - Static variable in class org.w3c.css.sac.CSSException
 
S_SAC_SYNTAX_ERR - Static variable in class org.w3c.css.sac.CSSException
 
S_SAC_UNSPECIFIED_ERR - Static variable in class org.w3c.css.sac.CSSException
 
SAC_AND_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks exactly two conditions. example:
   .part1:lang(fr)
 
SAC_ANY_NODE_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches any node.
SAC_ATTR - Static variable in interface org.w3c.css.sac.LexicalUnit
Attribute: attr(...).
SAC_ATTRIBUTE_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks an attribute. example:
   [simple]
   [restart="never"]
 
SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks if the value is in a hypen-separated list of values in a specified attribute. example:
   [languages|="fr"]
 
SAC_CDATA_SECTION_NODE_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches only cdata node.
SAC_CENTIMETER - Static variable in interface org.w3c.css.sac.LexicalUnit
Absolute length cm.
SAC_CHILD_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches a childhood relationship between two elements. example:
   E > F
 
SAC_CLASS_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks for a specified class. example:
   .example
 
SAC_COMMENT_NODE_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches only comment node.
SAC_CONDITIONAL_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This is a conditional selector. example:
   simple[role="private"]
   .part1
   H1#myId
   P:lang(fr).p1
 
SAC_CONTENT_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks the content of a node.
SAC_COUNTER_FUNCTION - Static variable in interface org.w3c.css.sac.LexicalUnit
function counter.
SAC_COUNTERS_FUNCTION - Static variable in interface org.w3c.css.sac.LexicalUnit
function counters.
SAC_DEGREE - Static variable in interface org.w3c.css.sac.LexicalUnit
Angle deg.
SAC_DESCENDANT_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches an arbitrary descendant of some ancestor element. example:
   E F
 
SAC_DIMENSION - Static variable in interface org.w3c.css.sac.LexicalUnit
unknown dimension.
SAC_DIRECT_ADJACENT_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches two selectors who shared the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one. example:
   E + F
 
SAC_ELEMENT_NODE_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches only element node. example:
   H1
   animate
 
SAC_EM - Static variable in interface org.w3c.css.sac.LexicalUnit
Relative lengthem.
SAC_EX - Static variable in interface org.w3c.css.sac.LexicalUnit
Relative lengthex.
SAC_FUNCTION - Static variable in interface org.w3c.css.sac.LexicalUnit
unknown function.
SAC_GRADIAN - Static variable in interface org.w3c.css.sac.LexicalUnit
Angle grad.
SAC_HERTZ - Static variable in interface org.w3c.css.sac.LexicalUnit
Frequency Hz.
SAC_ID_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks an id attribute. example:
   #myId
 
SAC_IDENT - Static variable in interface org.w3c.css.sac.LexicalUnit
any identifier except inherit.
SAC_INCH - Static variable in interface org.w3c.css.sac.LexicalUnit
Absolute length in.
SAC_INHERIT - Static variable in interface org.w3c.css.sac.LexicalUnit
identifier inherit.
SAC_INTEGER - Static variable in interface org.w3c.css.sac.LexicalUnit
Integers.
SAC_KILOHERTZ - Static variable in interface org.w3c.css.sac.LexicalUnit
Frequency kHz.
SAC_LANG_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks the language of the node. example:
   :lang(fr)
 
SAC_MILLIMETER - Static variable in interface org.w3c.css.sac.LexicalUnit
Absolute length mm.
SAC_MILLISECOND - Static variable in interface org.w3c.css.sac.LexicalUnit
Time ms.
SAC_NEGATIVE_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks that a condition can't be applied to a node.
SAC_NEGATIVE_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches only node that are different from a specified one.
SAC_NOT_SUPPORTED_ERR - Static variable in class org.w3c.css.sac.CSSException
If the operation is not supported
SAC_ONE_OF_ATTRIBUTE_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks for a value in a space-separated values in a specified attribute example:
   [values~="10"]
 
SAC_ONLY_CHILD_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks if a node is the only one in the node list.
SAC_ONLY_TYPE_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks if a node is the only one of his type.
SAC_OPERATOR_COMMA - Static variable in interface org.w3c.css.sac.LexicalUnit
,
SAC_OPERATOR_EXP - Static variable in interface org.w3c.css.sac.LexicalUnit
^
SAC_OPERATOR_GE - Static variable in interface org.w3c.css.sac.LexicalUnit
>=
SAC_OPERATOR_GT - Static variable in interface org.w3c.css.sac.LexicalUnit
>
SAC_OPERATOR_LE - Static variable in interface org.w3c.css.sac.LexicalUnit
<=
SAC_OPERATOR_LT - Static variable in interface org.w3c.css.sac.LexicalUnit
<
SAC_OPERATOR_MINUS - Static variable in interface org.w3c.css.sac.LexicalUnit
-
SAC_OPERATOR_MOD - Static variable in interface org.w3c.css.sac.LexicalUnit
%
SAC_OPERATOR_MULTIPLY - Static variable in interface org.w3c.css.sac.LexicalUnit
*
SAC_OPERATOR_PLUS - Static variable in interface org.w3c.css.sac.LexicalUnit
+
SAC_OPERATOR_SLASH - Static variable in interface org.w3c.css.sac.LexicalUnit
/
SAC_OPERATOR_TILDE - Static variable in interface org.w3c.css.sac.LexicalUnit
~
SAC_OR_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks one of two conditions.
SAC_PERCENTAGE - Static variable in interface org.w3c.css.sac.LexicalUnit
Percentage.
SAC_PICA - Static variable in interface org.w3c.css.sac.LexicalUnit
Absolute length pc.
SAC_PIXEL - Static variable in interface org.w3c.css.sac.LexicalUnit
Relative length px.
SAC_POINT - Static variable in interface org.w3c.css.sac.LexicalUnit
Absolute length pt.
SAC_POSITIONAL_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks a specified position. example:
   :first-child
 
SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches only processing instruction node.
SAC_PSEUDO_CLASS_CONDITION - Static variable in interface org.w3c.css.sac.Condition
This condition checks for the link pseudo class. example:
   :link
   :visited
   :hover
 
SAC_PSEUDO_ELEMENT_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches the 'first line' pseudo element. example:
   :first-line
 
SAC_RADIAN - Static variable in interface org.w3c.css.sac.LexicalUnit
Angle rad.
SAC_REAL - Static variable in interface org.w3c.css.sac.LexicalUnit
reals.
SAC_RECT_FUNCTION - Static variable in interface org.w3c.css.sac.LexicalUnit
function rect.
SAC_RGBCOLOR - Static variable in interface org.w3c.css.sac.LexicalUnit
RGB Colors.
SAC_ROOT_NODE_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches the root node.
SAC_SECOND - Static variable in interface org.w3c.css.sac.LexicalUnit
Time s.
SAC_STRING_VALUE - Static variable in interface org.w3c.css.sac.LexicalUnit
A string.
SAC_SUB_EXPRESSION - Static variable in interface org.w3c.css.sac.LexicalUnit
sub expressions (a) (a + b) (normal/none)
SAC_SYNTAX_ERR - Static variable in class org.w3c.css.sac.CSSException
If an invalid or illegal string is specified
SAC_TEXT_NODE_SELECTOR - Static variable in interface org.w3c.css.sac.Selector
This selector matches only text node.
SAC_UNICODERANGE - Static variable in interface org.w3c.css.sac.LexicalUnit
A unicode range.
SAC_UNSPECIFIED_ERR - Static variable in class org.w3c.css.sac.CSSException
this error is unspecified.
SAC_URI - Static variable in interface org.w3c.css.sac.LexicalUnit
URI: uri(...).
SACMediaList - interface org.w3c.css.sac.SACMediaList.
 
Selector - interface org.w3c.css.sac.Selector.
This interface defines a selector.
SelectorFactory - interface org.w3c.css.sac.SelectorFactory.
 
SelectorList - interface org.w3c.css.sac.SelectorList.
The SelectorList interface provides the abstraction of an ordered collection of selectors, without defining or constraining how this collection is implemented.
setByteStream(InputStream) - Method in class org.w3c.css.sac.InputSource
Set the byte stream for this input source.
setCharacterStream(Reader) - Method in class org.w3c.css.sac.InputSource
Set the character stream for this input source.
setConditionFactory(ConditionFactory) - Method in interface org.w3c.css.sac.Parser
 
setDocumentHandler(DocumentHandler) - Method in interface org.w3c.css.sac.Parser
Allow an application to register a document event handler.
setEncoding(String) - Method in class org.w3c.css.sac.InputSource
Set the character encoding, if known.
setErrorHandler(ErrorHandler) - Method in interface org.w3c.css.sac.Parser
Allow an application to register an error event handler.
setLocale(Locale) - Method in interface org.w3c.css.sac.Parser
Allow an application to request a locale for errors and warnings.
setMedia(String) - Method in class org.w3c.css.sac.InputSource
Set the media for this input source.
setSelectorFactory(SelectorFactory) - Method in interface org.w3c.css.sac.Parser
 
setTitle(String) - Method in class org.w3c.css.sac.InputSource
Set the title for this input source.
setURI(String) - Method in class org.w3c.css.sac.InputSource
Set the URI for this input source.
SiblingSelector - interface org.w3c.css.sac.SiblingSelector.
 
SimpleSelector - interface org.w3c.css.sac.SimpleSelector.
This interface is only for constraints on selectors.
startDocument(InputSource) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the beginning of a style sheet.
startFontFace() - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the beginning of a font face statement.
startMedia(SACMediaList) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the beginning of a media statement.
startPage(String, String) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the beginning of a page statement.
startSelector(SelectorList) - Method in interface org.w3c.css.sac.DocumentHandler
Receive notification of the beginning of a rule statement.


W

warning(CSSParseException) - Method in interface org.w3c.css.sac.ErrorHandler
Receive notification of a warning.

A C D E F G I L M N O P S W 






Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.
sac-1.3.orig/doc/allclasses-frame.html0000664000175000017500000000663307503400056016410 0ustar renerene All Classes All Classes
AttributeCondition
CharacterDataSelector
CombinatorCondition
Condition
ConditionalSelector
ConditionFactory
ContentCondition
CSSException
CSSParseException
DescendantSelector
DocumentHandler
ElementSelector
ErrorHandler
InputSource
LangCondition
LexicalUnit
Locator
NegativeCondition
NegativeSelector
Parser
ParserFactory
PositionalCondition
ProcessingInstructionSelector
SACMediaList
Selector
SelectorFactory
SelectorList
SiblingSelector
SimpleSelector
sac-1.3.orig/doc/index.html0000664000175000017500000001175307503400056014300 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Overview
W3C logo

W3C Simple API for CSS (SAC) version 1.3

Packages
org.w3c.css.sac  
org.w3c.css.sac.helpers  

 



Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/packages.html0000664000175000017500000000113607503400056014741 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API


The front page has been relocated.Please see:

Overview.
sac-1.3.orig/doc/org/0000775000175000017500000000000007503370726013075 5ustar renerenesac-1.3.orig/doc/org/w3c/0000775000175000017500000000000007503370726013571 5ustar renerenesac-1.3.orig/doc/org/w3c/css/0000775000175000017500000000000007503370726014361 5ustar renerenesac-1.3.orig/doc/org/w3c/css/sac/0000775000175000017500000000000007503400060015110 5ustar renerenesac-1.3.orig/doc/org/w3c/css/sac/package-summary.html0000664000175000017500000002435107503400056021076 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Package org.w3c.css.sac
W3C logo

Package org.w3c.css.sac

Interface Summary
AttributeCondition  
CharacterDataSelector  
CombinatorCondition  
Condition  
ConditionalSelector  
ConditionFactory  
ContentCondition  
DescendantSelector  
DocumentHandler This is the main interface that most CSS applications implement: if the application needs to be informed of basic parsing events, it implements this interface and registers an instance with the CSS parser using the setCSSHandler method.
ElementSelector  
ErrorHandler Basic interface for CSS error handlers.
LangCondition  
LexicalUnit This is a lexical unit for CSS values.
Locator Interface for associating a CSS event with a document location.
NegativeCondition  
NegativeSelector  
Parser Basic interface for CSS (Simple API for CSS) parsers.
PositionalCondition  
ProcessingInstructionSelector This simple matches a processing instruction.
SACMediaList  
Selector This interface defines a selector.
SelectorFactory  
SelectorList The SelectorList interface provides the abstraction of an ordered collection of selectors, without defining or constraining how this collection is implemented.
SiblingSelector  
SimpleSelector This interface is only for constraints on selectors.
 
Class Summary
InputSource A single input source for a CSS source.
 
Exception Summary
CSSException  
CSSParseException Encapsulate a CSS parse error or warning.
 

Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/package-tree.html0000664000175000017500000002205107503400056020333 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: org.w3c.css.sac Class Hierarchy
W3C logo

Hierarchy For Package org.w3c.css.sac

Package Hierarchies:
All Packages

Class Hierarchy

Interface Hierarchy



Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/package-frame.html0000664000175000017500000000641407503400056020473 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Package org.w3c.css.sac org.w3c.css.sac
Interfaces 
AttributeCondition
CharacterDataSelector
CombinatorCondition
Condition
ConditionalSelector
ConditionFactory
ContentCondition
DescendantSelector
DocumentHandler
ElementSelector
ErrorHandler
LangCondition
LexicalUnit
Locator
NegativeCondition
NegativeSelector
Parser
PositionalCondition
ProcessingInstructionSelector
SACMediaList
Selector
SelectorFactory
SelectorList
SiblingSelector
SimpleSelector
Classes 
InputSource
Exceptions 
CSSException
CSSParseException
sac-1.3.orig/doc/org/w3c/css/sac/AttributeCondition.html0000664000175000017500000003263007503400056021621 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface AttributeCondition
W3C logo

org.w3c.css.sac
Interface AttributeCondition

All Superinterfaces:
Condition

public interface AttributeCondition
extends Condition
Version:
$Revision: 1.5 $
See Also:
Condition.SAC_ATTRIBUTE_CONDITION, Condition.SAC_ONE_OF_ATTRIBUTE_CONDITION, Condition.SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, Condition.SAC_ID_CONDITION, Condition.SAC_CLASS_CONDITION, Condition.SAC_PSEUDO_CLASS_CONDITION

Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
 
Method Summary
 java.lang.String getLocalName()
          Returns the local part of the qualified name of this attribute.
 java.lang.String getNamespaceURI()
          Returns the namespace URI of this attribute condition.
 boolean getSpecified()
          Returns true if the attribute must have an explicit value in the original document, false otherwise.
 java.lang.String getValue()
          Returns the value of the attribute.
 
Methods inherited from interface org.w3c.css.sac.Condition
getConditionType
 

Method Detail

getLocalName

public java.lang.String getLocalName()
Returns the local part of the qualified name of this attribute.

NULL if :


getNamespaceURI

public java.lang.String getNamespaceURI()
Returns the namespace URI of this attribute condition.

NULL if :


getSpecified

public boolean getSpecified()
Returns true if the attribute must have an explicit value in the original document, false otherwise.

getValue

public java.lang.String getValue()
Returns the value of the attribute. If this attribute is a class or a pseudo class attribute, you'll get the class name (or psedo class name) without the '.' or ':'.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/CharacterDataSelector.html0000664000175000017500000002445607503400056022205 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface CharacterDataSelector
W3C logo

org.w3c.css.sac
Interface CharacterDataSelector

All Superinterfaces:
Selector, SimpleSelector

public interface CharacterDataSelector
extends SimpleSelector
Version:
$Revision: 1.3 $
See Also:
Selector.SAC_TEXT_NODE_SELECTOR, Selector.SAC_CDATA_SECTION_NODE_SELECTOR, Selector.SAC_COMMENT_NODE_SELECTOR

Fields inherited from interface org.w3c.css.sac.Selector
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR
 
Method Summary
 java.lang.String getData()
          Returns the character data.
 
Methods inherited from interface org.w3c.css.sac.Selector
getSelectorType
 

Method Detail

getData

public java.lang.String getData()
Returns the character data.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/CombinatorCondition.html0000664000175000017500000002566407503400056021764 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface CombinatorCondition
W3C logo

org.w3c.css.sac
Interface CombinatorCondition

All Superinterfaces:
Condition

public interface CombinatorCondition
extends Condition
Version:
$Revision: 1.3 $
See Also:
Condition.SAC_AND_CONDITION, Condition.SAC_OR_CONDITION

Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
 
Method Summary
 Condition getFirstCondition()
          Returns the first condition.
 Condition getSecondCondition()
          Returns the second condition.
 
Methods inherited from interface org.w3c.css.sac.Condition
getConditionType
 

Method Detail

getFirstCondition

public Condition getFirstCondition()
Returns the first condition.

getSecondCondition

public Condition getSecondCondition()
Returns the second condition.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/Condition.html0000664000175000017500000005015407503400056017736 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface Condition
W3C logo

org.w3c.css.sac
Interface Condition

All Known Subinterfaces:
AttributeCondition, CombinatorCondition, ContentCondition, LangCondition, NegativeCondition, PositionalCondition

public interface Condition
Version:
$Revision: 1.8 $

Field Summary
static short SAC_AND_CONDITION
          This condition checks exactly two conditions. example:
   .part1:lang(fr)
static short SAC_ATTRIBUTE_CONDITION
          This condition checks an attribute. example:
   [simple]
   [restart="never"]
static short SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION
          This condition checks if the value is in a hypen-separated list of values in a specified attribute. example:
   [languages|="fr"]
static short SAC_CLASS_CONDITION
          This condition checks for a specified class. example:
   .example
static short SAC_CONTENT_CONDITION
          This condition checks the content of a node.
static short SAC_ID_CONDITION
          This condition checks an id attribute. example:
   #myId
static short SAC_LANG_CONDITION
          This condition checks the language of the node. example:
   :lang(fr)
static short SAC_NEGATIVE_CONDITION
          This condition checks that a condition can't be applied to a node.
static short SAC_ONE_OF_ATTRIBUTE_CONDITION
          This condition checks for a value in a space-separated values in a specified attribute example:
   [values~="10"]
static short SAC_ONLY_CHILD_CONDITION
          This condition checks if a node is the only one in the node list.
static short SAC_ONLY_TYPE_CONDITION
          This condition checks if a node is the only one of his type.
static short SAC_OR_CONDITION
          This condition checks one of two conditions.
static short SAC_POSITIONAL_CONDITION
          This condition checks a specified position. example:
   :first-child
static short SAC_PSEUDO_CLASS_CONDITION
          This condition checks for the link pseudo class. example:
   :link
   :visited
   :hover
 
Method Summary
 short getConditionType()
          An integer indicating the type of Condition.
 

Field Detail

SAC_AND_CONDITION

public static final short SAC_AND_CONDITION
This condition checks exactly two conditions. example:
   .part1:lang(fr)
See Also:
CombinatorCondition

SAC_ATTRIBUTE_CONDITION

public static final short SAC_ATTRIBUTE_CONDITION
This condition checks an attribute. example:
   [simple]
   [restart="never"]
See Also:
AttributeCondition

SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION

public static final short SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION
This condition checks if the value is in a hypen-separated list of values in a specified attribute. example:
   [languages|="fr"]
See Also:
AttributeCondition

SAC_CLASS_CONDITION

public static final short SAC_CLASS_CONDITION
This condition checks for a specified class. example:
   .example
See Also:
AttributeCondition

SAC_CONTENT_CONDITION

public static final short SAC_CONTENT_CONDITION
This condition checks the content of a node.
See Also:
ContentCondition

SAC_ID_CONDITION

public static final short SAC_ID_CONDITION
This condition checks an id attribute. example:
   #myId
See Also:
AttributeCondition

SAC_LANG_CONDITION

public static final short SAC_LANG_CONDITION
This condition checks the language of the node. example:
   :lang(fr)
See Also:
LangCondition

SAC_NEGATIVE_CONDITION

public static final short SAC_NEGATIVE_CONDITION
This condition checks that a condition can't be applied to a node.
See Also:
NegativeCondition

SAC_ONE_OF_ATTRIBUTE_CONDITION

public static final short SAC_ONE_OF_ATTRIBUTE_CONDITION
This condition checks for a value in a space-separated values in a specified attribute example:
   [values~="10"]
See Also:
AttributeCondition

SAC_ONLY_CHILD_CONDITION

public static final short SAC_ONLY_CHILD_CONDITION
This condition checks if a node is the only one in the node list.

SAC_ONLY_TYPE_CONDITION

public static final short SAC_ONLY_TYPE_CONDITION
This condition checks if a node is the only one of his type.

SAC_OR_CONDITION

public static final short SAC_OR_CONDITION
This condition checks one of two conditions.
See Also:
CombinatorCondition

SAC_POSITIONAL_CONDITION

public static final short SAC_POSITIONAL_CONDITION
This condition checks a specified position. example:
   :first-child
See Also:
PositionalCondition

SAC_PSEUDO_CLASS_CONDITION

public static final short SAC_PSEUDO_CLASS_CONDITION
This condition checks for the link pseudo class. example:
   :link
   :visited
   :hover
See Also:
AttributeCondition
Method Detail

getConditionType

public short getConditionType()
An integer indicating the type of Condition.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/ConditionalSelector.html0000664000175000017500000002572007503400056021755 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface ConditionalSelector
W3C logo

org.w3c.css.sac
Interface ConditionalSelector

All Superinterfaces:
Selector, SimpleSelector

public interface ConditionalSelector
extends SimpleSelector
Version:
$Revision: 1.2 $
See Also:
Selector.SAC_CONDITIONAL_SELECTOR

Fields inherited from interface org.w3c.css.sac.Selector
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR
 
Method Summary
 Condition getCondition()
          Returns the condition to be applied on the simple selector.
 SimpleSelector getSimpleSelector()
          Returns the simple selector.
 
Methods inherited from interface org.w3c.css.sac.Selector
getSelectorType
 

Method Detail

getCondition

public Condition getCondition()
Returns the condition to be applied on the simple selector.

getSimpleSelector

public SimpleSelector getSimpleSelector()
Returns the simple selector.

The simple selector can't be a ConditionalSelector.



Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/ConditionFactory.html0000664000175000017500000007052607503400056021273 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface ConditionFactory
W3C logo

org.w3c.css.sac
Interface ConditionFactory


public interface ConditionFactory
Version:
$Revision: 1.2 $

Method Summary
 CombinatorCondition createAndCondition(Condition first, Condition second)
          Creates an and condition
 AttributeCondition createAttributeCondition(java.lang.String localName, java.lang.String namespaceURI, boolean specified, java.lang.String value)
          Creates an attribute condition
 AttributeCondition createBeginHyphenAttributeCondition(java.lang.String localName, java.lang.String namespaceURI, boolean specified, java.lang.String value)
          Creates a "begin hyphen" attribute condition
 AttributeCondition createClassCondition(java.lang.String namespaceURI, java.lang.String value)
          Creates a class condition
 ContentCondition createContentCondition(java.lang.String data)
          Creates a content condition
 AttributeCondition createIdCondition(java.lang.String value)
          Creates an id condition
 LangCondition createLangCondition(java.lang.String lang)
          Creates a lang condition
 NegativeCondition createNegativeCondition(Condition condition)
          Creates a negative condition
 AttributeCondition createOneOfAttributeCondition(java.lang.String localName, java.lang.String namespaceURI, boolean specified, java.lang.String value)
          Creates a "one of" attribute condition
 Condition createOnlyChildCondition()
          Creates a "only one" child condition
 Condition createOnlyTypeCondition()
          Creates a "only one" type condition
 CombinatorCondition createOrCondition(Condition first, Condition second)
          Creates an or condition
 PositionalCondition createPositionalCondition(int position, boolean typeNode, boolean type)
          Creates a positional condition
 AttributeCondition createPseudoClassCondition(java.lang.String namespaceURI, java.lang.String value)
          Creates a pseudo class condition
 

Method Detail

createAndCondition

public CombinatorCondition createAndCondition(Condition first,
                                              Condition second)
                                       throws CSSException
Creates an and condition
Parameters:
first - the first condition
second - the second condition
Returns:
A combinator condition
Throws:
CSSException - if this exception is not supported.

createAttributeCondition

public AttributeCondition createAttributeCondition(java.lang.String localName,
                                                   java.lang.String namespaceURI,
                                                   boolean specified,
                                                   java.lang.String value)
                                            throws CSSException
Creates an attribute condition
Parameters:
localName - the localName of the attribute
namespaceURI - the namespace URI of the attribute
specified - true if the attribute must be specified in the document.
value - the value of this attribute.
Returns:
An attribute condition
Throws:
CSSException - if this exception is not supported.

createBeginHyphenAttributeCondition

public AttributeCondition createBeginHyphenAttributeCondition(java.lang.String localName,
                                                              java.lang.String namespaceURI,
                                                              boolean specified,
                                                              java.lang.String value)
                                                       throws CSSException
Creates a "begin hyphen" attribute condition
Parameters:
localName - the localName of the attribute
namespaceURI - the namespace URI of the attribute
specified - true if the attribute must be specified in the document.
value - the value of this attribute.
Returns:
A "begin hyphen" attribute condition
Throws:
CSSException - if this exception is not supported.

createClassCondition

public AttributeCondition createClassCondition(java.lang.String namespaceURI,
                                               java.lang.String value)
                                        throws CSSException
Creates a class condition
Parameters:
localName - the localName of the attribute
namespaceURI - the namespace URI of the attribute
specified - true if the attribute must be specified in the document.
value - the name of the class.
Returns:
A class condition
Throws:
CSSException - if this exception is not supported.

createContentCondition

public ContentCondition createContentCondition(java.lang.String data)
                                        throws CSSException
Creates a content condition
Parameters:
data - the data in the content
Returns:
A content condition
Throws:
CSSException - if this exception is not supported.

createIdCondition

public AttributeCondition createIdCondition(java.lang.String value)
                                     throws CSSException
Creates an id condition
Parameters:
value - the value of the id.
Returns:
An Id condition
Throws:
CSSException - if this exception is not supported.

createLangCondition

public LangCondition createLangCondition(java.lang.String lang)
                                  throws CSSException
Creates a lang condition
Parameters:
value - the value of the language.
Returns:
A lang condition
Throws:
CSSException - if this exception is not supported.

createNegativeCondition

public NegativeCondition createNegativeCondition(Condition condition)
                                          throws CSSException
Creates a negative condition
Parameters:
condition - the condition
Returns:
A negative condition
Throws:
CSSException - if this exception is not supported.

createOneOfAttributeCondition

public AttributeCondition createOneOfAttributeCondition(java.lang.String localName,
                                                        java.lang.String namespaceURI,
                                                        boolean specified,
                                                        java.lang.String value)
                                                 throws CSSException
Creates a "one of" attribute condition
Parameters:
localName - the localName of the attribute
namespaceURI - the namespace URI of the attribute
specified - true if the attribute must be specified in the document.
value - the value of this attribute.
Returns:
A "one of" attribute condition
Throws:
CSSException - if this exception is not supported.

createOnlyChildCondition

public Condition createOnlyChildCondition()
                                   throws CSSException
Creates a "only one" child condition
Returns:
A "only one" child condition
Throws:
CSSException - if this exception is not supported.

createOnlyTypeCondition

public Condition createOnlyTypeCondition()
                                  throws CSSException
Creates a "only one" type condition
Returns:
A "only one" type condition
Throws:
CSSException - if this exception is not supported.

createOrCondition

public CombinatorCondition createOrCondition(Condition first,
                                             Condition second)
                                      throws CSSException
Creates an or condition
Parameters:
first - the first condition
second - the second condition
Returns:
A combinator condition
Throws:
CSSException - if this exception is not supported.

createPositionalCondition

public PositionalCondition createPositionalCondition(int position,
                                                     boolean typeNode,
                                                     boolean type)
                                              throws CSSException
Creates a positional condition
Parameters:
position - the position of the node in the list.
typeNode - true if the list should contain only nodes of the same type (element, text node, ...).
type - true true if the list should contain only nodes of the same node (for element, same localName and same namespaceURI).
Returns:
A positional condition
Throws:
CSSException - if this exception is not supported.

createPseudoClassCondition

public AttributeCondition createPseudoClassCondition(java.lang.String namespaceURI,
                                                     java.lang.String value)
                                              throws CSSException
Creates a pseudo class condition
Parameters:
namespaceURI - the namespace URI of the attribute
value - the name of the pseudo class
Returns:
A pseudo class condition
Throws:
CSSException - if this exception is not supported.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/ContentCondition.html0000664000175000017500000002372707503400056021277 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface ContentCondition
W3C logo

org.w3c.css.sac
Interface ContentCondition

All Superinterfaces:
Condition

public interface ContentCondition
extends Condition
Version:
$Revision: 1.1 $
See Also:
Condition.SAC_CONTENT_CONDITION

Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
 
Method Summary
 java.lang.String getData()
          Returns the content.
 
Methods inherited from interface org.w3c.css.sac.Condition
getConditionType
 

Method Detail

getData

public java.lang.String getData()
Returns the content.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/DescendantSelector.html0000664000175000017500000002550707503400057021566 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface DescendantSelector
W3C logo

org.w3c.css.sac
Interface DescendantSelector

All Superinterfaces:
Selector

public interface DescendantSelector
extends Selector
Version:
$Revision: 1.1 $
See Also:
Selector.SAC_DESCENDANT_SELECTOR, Selector.SAC_CHILD_SELECTOR

Fields inherited from interface org.w3c.css.sac.Selector
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR
 
Method Summary
 Selector getAncestorSelector()
          Returns the parent selector.
 SimpleSelector getSimpleSelector()
           
 
Methods inherited from interface org.w3c.css.sac.Selector
getSelectorType
 

Method Detail

getAncestorSelector

public Selector getAncestorSelector()
Returns the parent selector.

getSimpleSelector

public SimpleSelector getSimpleSelector()


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/DocumentHandler.html0000664000175000017500000006360507503400057021072 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface DocumentHandler
W3C logo

org.w3c.css.sac
Interface DocumentHandler


public interface DocumentHandler

This is the main interface that most CSS applications implement: if the application needs to be informed of basic parsing events, it implements this interface and registers an instance with the CSS parser using the setCSSHandler method.

Version:
$Revision: 1.4 $

Method Summary
 void comment(java.lang.String text)
          Receive notification of a comment.
 void endDocument(InputSource source)
          Receive notification of the end of a document.
 void endFontFace()
          Receive notification of the end of a font face statement.
 void endMedia(SACMediaList media)
          Receive notification of the end of a media statement.
 void endPage(java.lang.String name, java.lang.String pseudo_page)
          Receive notification of the end of a media statement.
 void endSelector(SelectorList selectors)
          Receive notification of the end of a rule statement.
 void ignorableAtRule(java.lang.String atRule)
          Receive notification of an unknown rule t-rule not supported by this parser.
 void importStyle(java.lang.String uri, SACMediaList media, java.lang.String defaultNamespaceURI)
          Receive notification of a import statement in the style sheet.
 void namespaceDeclaration(java.lang.String prefix, java.lang.String uri)
          Receive notification of an unknown rule t-rule not supported by this parser.
 void property(java.lang.String name, LexicalUnit value, boolean important)
          Receive notification of a declaration.
 void startDocument(InputSource source)
          Receive notification of the beginning of a style sheet.
 void startFontFace()
          Receive notification of the beginning of a font face statement.
 void startMedia(SACMediaList media)
          Receive notification of the beginning of a media statement.
 void startPage(java.lang.String name, java.lang.String pseudo_page)
          Receive notification of the beginning of a page statement.
 void startSelector(SelectorList selectors)
          Receive notification of the beginning of a rule statement.
 

Method Detail

comment

public void comment(java.lang.String text)
             throws CSSException
Receive notification of a comment. If the comment appears in a declaration (e.g. color: /* comment * / blue;), the parser notifies the comment before the declaration.
Parameters:
text - The comment.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

endDocument

public void endDocument(InputSource source)
                 throws CSSException
Receive notification of the end of a document. The CSS parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.
Parameters:
uri - The URI of the style sheet.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

endFontFace

public void endFontFace()
                 throws CSSException
Receive notification of the end of a font face statement.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

endMedia

public void endMedia(SACMediaList media)
              throws CSSException
Receive notification of the end of a media statement.
Parameters:
media - The intended destination media for style information.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

endPage

public void endPage(java.lang.String name,
                    java.lang.String pseudo_page)
             throws CSSException
Receive notification of the end of a media statement.
Parameters:
media - The intended destination medium for style information.
pseudo_page - the pseudo page (if any, null otherwise)
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

endSelector

public void endSelector(SelectorList selectors)
                 throws CSSException
Receive notification of the end of a rule statement.
Parameters:
selectors - All intended selectors for all declarations.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

ignorableAtRule

public void ignorableAtRule(java.lang.String atRule)
                     throws CSSException
Receive notification of an unknown rule t-rule not supported by this parser.
Parameters:
at-rule - The complete ignored at-rule.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

importStyle

public void importStyle(java.lang.String uri,
                        SACMediaList media,
                        java.lang.String defaultNamespaceURI)
                 throws CSSException
Receive notification of a import statement in the style sheet.
Parameters:
uri - The URI of the imported style sheet.
media - The intended destination media for style information.
defaultNamepaceURI - The default namespace URI for the imported style sheet.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

namespaceDeclaration

public void namespaceDeclaration(java.lang.String prefix,
                                 java.lang.String uri)
                          throws CSSException
Receive notification of an unknown rule t-rule not supported by this parser.
Parameters:
prefix - null if this is the default namespace
uri - The URI for this namespace.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

property

public void property(java.lang.String name,
                     LexicalUnit value,
                     boolean important)
              throws CSSException
Receive notification of a declaration.
Parameters:
name - the name of the property.
value - the value of the property. All whitespace are stripped.
important - is this property important ?
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

startDocument

public void startDocument(InputSource source)
                   throws CSSException
Receive notification of the beginning of a style sheet. The CSS parser will invoke this method only once, before any other methods in this interface.
Parameters:
uri - The URI of the style sheet. @@TODO can be NULL ! (inline style sheet)
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

startFontFace

public void startFontFace()
                   throws CSSException
Receive notification of the beginning of a font face statement. The Parser will invoke this method at the beginning of every font face statement in the style sheet. there will be a corresponding endFontFace() event for every startFontFace() event.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

startMedia

public void startMedia(SACMediaList media)
                throws CSSException
Receive notification of the beginning of a media statement. The Parser will invoke this method at the beginning of every media statement in the style sheet. there will be a corresponding endMedia() event for every startElement() event.
Parameters:
media - The intended destination media for style information.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

startPage

public void startPage(java.lang.String name,
                      java.lang.String pseudo_page)
               throws CSSException
Receive notification of the beginning of a page statement. The Parser will invoke this method at the beginning of every page statement in the style sheet. there will be a corresponding endPage() event for every startPage() event.
Parameters:
name - the name of the page (if any, null otherwise)
pseudo_page - the pseudo page (if any, null otherwise)
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.

startSelector

public void startSelector(SelectorList selectors)
                   throws CSSException
Receive notification of the beginning of a rule statement.
Parameters:
selectors - All intended selectors for all declarations.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/ElementSelector.html0000664000175000017500000002632207503400057021103 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface ElementSelector
W3C logo

org.w3c.css.sac
Interface ElementSelector

All Superinterfaces:
Selector, SimpleSelector

public interface ElementSelector
extends SimpleSelector
Version:
$Revision: 1.6 $
See Also:
Selector.SAC_ELEMENT_NODE_SELECTOR

Fields inherited from interface org.w3c.css.sac.Selector
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR
 
Method Summary
 java.lang.String getLocalName()
          Returns the local part of the qualified name of this element.
 java.lang.String getNamespaceURI()
          Returns the namespace URI of this element selector.
 
Methods inherited from interface org.w3c.css.sac.Selector
getSelectorType
 

Method Detail

getLocalName

public java.lang.String getLocalName()
Returns the local part of the qualified name of this element.

NULL if this element selector can match any element.


getNamespaceURI

public java.lang.String getNamespaceURI()
Returns the namespace URI of this element selector.

NULL if this element selector can match any namespace.



Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/ErrorHandler.html0000664000175000017500000003201307503400057020372 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface ErrorHandler
W3C logo

org.w3c.css.sac
Interface ErrorHandler


public interface ErrorHandler

Basic interface for CSS error handlers.

If a CSS application needs to implement customized error handling, it must implement this interface and then register an instance with the CSS parser using the parser's setErrorHandler method. The parser will then report all errors and warnings through this interface.

The parser shall use this interface instead of throwing an exception: it is up to the application whether to throw an exception for different types of errors and warnings. Note, however, that there is no requirement that the parser continue to provide useful information after a call to fatalError (in other words, a CSS driver class could catch an exception and report a fatalError).

The HandlerBase class provides a default implementation of this interface, ignoring warnings and recoverable errors and throwing a SAXParseException for fatal errors. An application may extend that class rather than implementing the complete interface itself.

Version:
$Revision: 1.2 $

Method Summary
 void error(CSSParseException exception)
          Receive notification of a recoverable error.
 void fatalError(CSSParseException exception)
          Receive notification of a non-recoverable error.
 void warning(CSSParseException exception)
          Receive notification of a warning.
 

Method Detail

error

public void error(CSSParseException exception)
           throws CSSException
Receive notification of a recoverable error.

This corresponds to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a validating parser would use this callback to report the violation of a validity constraint. The default behaviour is to take no action.

The CSS parser must continue to provide normal parsing events after invoking this method: it should still be possible for the application to process the document through to the end. If the application cannot do so, then the parser should report a fatal error even if the XML 1.0 recommendation does not require it to do so.

Parameters:
exception - The error information encapsulated in a CSS parse exception.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
See Also:
CSSParseException

fatalError

public void fatalError(CSSParseException exception)
                throws CSSException
Receive notification of a non-recoverable error.

This corresponds to the definition of "fatal error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a parser would use this callback to report the violation of a well-formedness constraint.

The application must assume that the document is unusable after the parser has invoked this method, and should continue (if at all) only for the sake of collecting addition error messages: in fact, CSS parsers are free to stop reporting any other events once this method has been invoked.

Parameters:
exception - The error information encapsulated in a CSS parse exception.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
See Also:
CSSParseException

warning

public void warning(CSSParseException exception)
             throws CSSException
Receive notification of a warning.

CSS parsers will use this method to report conditions that are not errors or fatal errors as defined by the XML 1.0 recommendation. The default behaviour is to take no action.

The CSS parser must continue to provide normal parsing events after invoking this method: it should still be possible for the application to process the document through to the end.

Parameters:
exception - The warning information encapsulated in a CSS parse exception.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
See Also:
CSSParseException


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/LangCondition.html0000664000175000017500000002365707503400057020551 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface LangCondition
W3C logo

org.w3c.css.sac
Interface LangCondition

All Superinterfaces:
Condition

public interface LangCondition
extends Condition
Version:
$Revision: 1.1 $
See Also:
Condition.SAC_LANG_CONDITION

Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
 
Method Summary
 java.lang.String getLang()
          Returns the language
 
Methods inherited from interface org.w3c.css.sac.Condition
getConditionType
 

Method Detail

getLang

public java.lang.String getLang()
Returns the language


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/LexicalUnit.html0000664000175000017500000014242607503400057020236 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface LexicalUnit
W3C logo

org.w3c.css.sac
Interface LexicalUnit


public interface LexicalUnit

This is a lexical unit for CSS values.

Remarks: Not all the following lexical units are supported (or will be supported) by CSS.

All examples are CSS2 compliant.

Version:
$Revision: 1.9 $

Field Summary
static short SAC_ATTR
          Attribute: attr(...).
static short SAC_CENTIMETER
          Absolute length cm.
static short SAC_COUNTER_FUNCTION
          function counter.
static short SAC_COUNTERS_FUNCTION
          function counters.
static short SAC_DEGREE
          Angle deg.
static short SAC_DIMENSION
          unknown dimension.
static short SAC_EM
          Relative lengthem.
static short SAC_EX
          Relative lengthex.
static short SAC_FUNCTION
          unknown function.
static short SAC_GRADIAN
          Angle grad.
static short SAC_HERTZ
          Frequency Hz.
static short SAC_IDENT
          any identifier except inherit.
static short SAC_INCH
          Absolute length in.
static short SAC_INHERIT
          identifier inherit.
static short SAC_INTEGER
          Integers.
static short SAC_KILOHERTZ
          Frequency kHz.
static short SAC_MILLIMETER
          Absolute length mm.
static short SAC_MILLISECOND
          Time ms.
static short SAC_OPERATOR_COMMA
          ,
static short SAC_OPERATOR_EXP
          ^
static short SAC_OPERATOR_GE
          >=
static short SAC_OPERATOR_GT
          >
static short SAC_OPERATOR_LE
          <=
static short SAC_OPERATOR_LT
          <</TD>
static short SAC_OPERATOR_MINUS
          -
static short SAC_OPERATOR_MOD
          %
static short SAC_OPERATOR_MULTIPLY
          *
static short SAC_OPERATOR_PLUS
          +
static short SAC_OPERATOR_SLASH
          /
static short SAC_OPERATOR_TILDE
          ~
static short SAC_PERCENTAGE
          Percentage.
static short SAC_PICA
          Absolute length pc.
static short SAC_PIXEL
          Relative length px.
static short SAC_POINT
          Absolute length pt.
static short SAC_RADIAN
          Angle rad.
static short SAC_REAL
          reals.
static short SAC_RECT_FUNCTION
          function rect.
static short SAC_RGBCOLOR
          RGB Colors.
static short SAC_SECOND
          Time s.
static short SAC_STRING_VALUE
          A string.
static short SAC_SUB_EXPRESSION
          sub expressions (a) (a + b) (normal/none)
static short SAC_UNICODERANGE
          A unicode range.
static short SAC_URI
          URI: uri(...).
 
Method Summary
 java.lang.String getDimensionUnitText()
          Returns the string representation of the unit.
 float getFloatValue()
          Returns the float value.
 java.lang.String getFunctionName()
          Returns the name of the function.
 int getIntegerValue()
          Returns the integer value.
 short getLexicalUnitType()
          An integer indicating the type of LexicalUnit.
 LexicalUnit getNextLexicalUnit()
          Returns the next value or null if any.
 LexicalUnit getParameters()
          The function parameters including operators (like the comma).
 LexicalUnit getPreviousLexicalUnit()
          Returns the previous value or null if any.
 java.lang.String getStringValue()
          Returns the string value.
 LexicalUnit getSubValues()
          Returns a list of values inside the sub expression.
 

Field Detail

SAC_ATTR

public static final short SAC_ATTR
Attribute: attr(...).
See Also:
getStringValue()

SAC_CENTIMETER

public static final short SAC_CENTIMETER
Absolute length cm.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_COUNTER_FUNCTION

public static final short SAC_COUNTER_FUNCTION
function counter.
See Also:
getFunctionName(), getParameters()

SAC_COUNTERS_FUNCTION

public static final short SAC_COUNTERS_FUNCTION
function counters.
See Also:
getFunctionName(), getParameters()

SAC_DEGREE

public static final short SAC_DEGREE
Angle deg.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_DIMENSION

public static final short SAC_DIMENSION
unknown dimension.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_EM

public static final short SAC_EM
Relative lengthem.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_EX

public static final short SAC_EX
Relative lengthex.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_FUNCTION

public static final short SAC_FUNCTION
unknown function.
See Also:
getFunctionName(), getParameters()

SAC_GRADIAN

public static final short SAC_GRADIAN
Angle grad.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_HERTZ

public static final short SAC_HERTZ
Frequency Hz.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_IDENT

public static final short SAC_IDENT
any identifier except inherit.
See Also:
getStringValue()

SAC_INCH

public static final short SAC_INCH
Absolute length in.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_INHERIT

public static final short SAC_INHERIT
identifier inherit.

SAC_INTEGER

public static final short SAC_INTEGER
Integers.
See Also:
getIntegerValue()

SAC_KILOHERTZ

public static final short SAC_KILOHERTZ
Frequency kHz.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_MILLIMETER

public static final short SAC_MILLIMETER
Absolute length mm.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_MILLISECOND

public static final short SAC_MILLISECOND
Time ms.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_OPERATOR_COMMA

public static final short SAC_OPERATOR_COMMA
,

SAC_OPERATOR_EXP

public static final short SAC_OPERATOR_EXP
^

SAC_OPERATOR_GE

public static final short SAC_OPERATOR_GE
>=

SAC_OPERATOR_GT

public static final short SAC_OPERATOR_GT
>

SAC_OPERATOR_LE

public static final short SAC_OPERATOR_LE
<=

SAC_OPERATOR_LT

public static final short SAC_OPERATOR_LT
<</DL>

SAC_OPERATOR_MINUS

public static final short SAC_OPERATOR_MINUS
-

SAC_OPERATOR_MOD

public static final short SAC_OPERATOR_MOD
%

SAC_OPERATOR_MULTIPLY

public static final short SAC_OPERATOR_MULTIPLY
*

SAC_OPERATOR_PLUS

public static final short SAC_OPERATOR_PLUS
+

SAC_OPERATOR_SLASH

public static final short SAC_OPERATOR_SLASH
/

SAC_OPERATOR_TILDE

public static final short SAC_OPERATOR_TILDE
~

SAC_PERCENTAGE

public static final short SAC_PERCENTAGE
Percentage.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_PICA

public static final short SAC_PICA
Absolute length pc.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_PIXEL

public static final short SAC_PIXEL
Relative length px.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_POINT

public static final short SAC_POINT
Absolute length pt.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_RADIAN

public static final short SAC_RADIAN
Angle rad.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_REAL

public static final short SAC_REAL
reals.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_RECT_FUNCTION

public static final short SAC_RECT_FUNCTION
function rect.
See Also:
getFunctionName(), getParameters()

SAC_RGBCOLOR

public static final short SAC_RGBCOLOR
RGB Colors. rgb(0, 0, 0) and #000
See Also:
getFunctionName(), getParameters()

SAC_SECOND

public static final short SAC_SECOND
Time s.
See Also:
getFloatValue(), getDimensionUnitText()

SAC_STRING_VALUE

public static final short SAC_STRING_VALUE
A string.
See Also:
getStringValue()

SAC_SUB_EXPRESSION

public static final short SAC_SUB_EXPRESSION
sub expressions (a) (a + b) (normal/none)
See Also:
getSubValues()

SAC_UNICODERANGE

public static final short SAC_UNICODERANGE
A unicode range. @@TO BE DEFINED

SAC_URI

public static final short SAC_URI
URI: uri(...).
See Also:
getStringValue()
Method Detail

getDimensionUnitText

public java.lang.String getDimensionUnitText()
Returns the string representation of the unit.

if this lexical unit represents a float, the dimension is an empty string.

See Also:
SAC_REAL, SAC_DIMENSION, SAC_EM, SAC_EX, SAC_PIXEL, SAC_INCH, SAC_CENTIMETER, SAC_MILLIMETER, SAC_POINT, SAC_PICA, SAC_PERCENTAGE, SAC_DEGREE, SAC_GRADIAN, SAC_RADIAN, SAC_MILLISECOND, SAC_SECOND, SAC_HERTZ, SAC_KILOHERTZ

getFloatValue

public float getFloatValue()
Returns the float value.

If the type of LexicalUnit is one of SAC_DEGREE, SAC_GRADIAN, SAC_RADIAN, SAC_MILLISECOND, SAC_SECOND, SAC_HERTZ or SAC_KILOHERTZ, the value can never be negative.

See Also:
SAC_REAL, SAC_DIMENSION, SAC_EM, SAC_EX, SAC_PIXEL, SAC_INCH, SAC_CENTIMETER, SAC_MILLIMETER, SAC_POINT, SAC_PICA, SAC_PERCENTAGE, SAC_DEGREE, SAC_GRADIAN, SAC_RADIAN, SAC_MILLISECOND, SAC_SECOND, SAC_HERTZ, SAC_KILOHERTZ

getFunctionName

public java.lang.String getFunctionName()
Returns the name of the function.
See Also:
SAC_COUNTER_FUNCTION, SAC_COUNTERS_FUNCTION, SAC_RECT_FUNCTION, SAC_FUNCTION, SAC_RGBCOLOR

getIntegerValue

public int getIntegerValue()
Returns the integer value.
See Also:
SAC_INTEGER

getLexicalUnitType

public short getLexicalUnitType()
An integer indicating the type of LexicalUnit.

getNextLexicalUnit

public LexicalUnit getNextLexicalUnit()
Returns the next value or null if any.

getParameters

public LexicalUnit getParameters()
The function parameters including operators (like the comma). #000 is converted to rgb(0, 0, 0) can return null if SAC_FUNCTION.
See Also:
SAC_COUNTER_FUNCTION, SAC_COUNTERS_FUNCTION, SAC_RECT_FUNCTION, SAC_FUNCTION, SAC_RGBCOLOR

getPreviousLexicalUnit

public LexicalUnit getPreviousLexicalUnit()
Returns the previous value or null if any.

getStringValue

public java.lang.String getStringValue()
Returns the string value.

If the type is SAC_URI, the return value doesn't contain uri(....) or quotes.

If the type is SAC_ATTR, the return value doesn't contain attr(....).

See Also:
SAC_URI, SAC_ATTR, SAC_IDENT, SAC_STRING_VALUE, @@TO BE DEFINED

getSubValues

public LexicalUnit getSubValues()
Returns a list of values inside the sub expression.
See Also:
SAC_SUB_EXPRESSION


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/Locator.html0000664000175000017500000002425307503400057017415 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface Locator
W3C logo

org.w3c.css.sac
Interface Locator


public interface Locator

Interface for associating a CSS event with a document location.

If a SAX parser provides location information to the SAX application, it does so by implementing this interface and then passing an instance to the application using the document handler's setDocumentLocator method. The application can use the object to obtain the location of any other document handler event in the CSS source document.

Note that the results returned by the object will be valid only during the scope of each document handler method: the application will receive unpredictable results if it attempts to use the locator at any other time.

CSS parsers are not required to supply a locator, but they are very strong encouraged to do so. If the parser supplies a locator, it must do so before reporting any other document events. If no locator has been set by the time the application receives the startDocument event, the application should assume that a locator is not available.

Version:
$Revision: 1.1 $

Method Summary
 int getColumnNumber()
          Return the column number where the current document event ends.
 int getLineNumber()
          Return the line number where the current document event ends.
 java.lang.String getURI()
          Return the URI for the current document event.
 

Method Detail

getColumnNumber

public int getColumnNumber()
Return the column number where the current document event ends. Note that this is the column number of the first character after the text associated with the document event. The first column in a line is position 1.
Returns:
The column number, or -1 if none is available.
See Also:
getLineNumber()

getLineNumber

public int getLineNumber()
Return the line number where the current document event ends. Note that this is the line position of the first character after the text associated with the document event.
Returns:
The line number, or -1 if none is available.
See Also:
getColumnNumber()

getURI

public java.lang.String getURI()
Return the URI for the current document event.

The parser must resolve the URI fully before passing it to the application.

Returns:
A string containing the URI, or null if none is available.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/NegativeCondition.html0000664000175000017500000002411707503400057021422 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface NegativeCondition
W3C logo

org.w3c.css.sac
Interface NegativeCondition

All Superinterfaces:
Condition

public interface NegativeCondition
extends Condition
Version:
$Revision: 1.2 $
See Also:
Condition.SAC_NEGATIVE_CONDITION

Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
 
Method Summary
 Condition getCondition()
          Returns the condition.
 
Methods inherited from interface org.w3c.css.sac.Condition
getConditionType
 

Method Detail

getCondition

public Condition getCondition()
Returns the condition.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/NegativeSelector.html0000664000175000017500000002423607503400057021256 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface NegativeSelector
W3C logo

org.w3c.css.sac
Interface NegativeSelector

All Superinterfaces:
Selector, SimpleSelector

public interface NegativeSelector
extends SimpleSelector
Version:
$Revision: 1.2 $
See Also:
Selector.SAC_NEGATIVE_SELECTOR

Fields inherited from interface org.w3c.css.sac.Selector
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR
 
Method Summary
 SimpleSelector getSimpleSelector()
          Returns the simple selector.
 
Methods inherited from interface org.w3c.css.sac.Selector
getSelectorType
 

Method Detail

getSimpleSelector

public SimpleSelector getSimpleSelector()
Returns the simple selector.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/Parser.html0000664000175000017500000006226007503400057017246 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface Parser
W3C logo

org.w3c.css.sac
Interface Parser


public interface Parser

Basic interface for CSS (Simple API for CSS) parsers.

All CSS parsers must implement this basic interface: it allows applications to register handlers for different types of events and to initiate a parse from a URI, or a character stream.

All CSS parsers must also implement a zero-argument constructor (though other constructors are also allowed).

CSS parsers are reusable but not re-entrant: the application may reuse a parser object (possibly with a different input source) once the first parse has completed successfully, but it may not invoke the parse() methods recursively within a parse.

Version:
$Revision: 1.13 $
See Also:
DocumentHandler, ErrorHandler, InputSource

Method Summary
 java.lang.String getParserVersion()
          Returns a string about which CSS language is supported by this parser.
 boolean parsePriority(InputSource source)
          Parse a CSS priority value (e.g.
 LexicalUnit parsePropertyValue(InputSource source)
          Parse a CSS property value.
 void parseRule(InputSource source)
          Parse a CSS rule.
 SelectorList parseSelectors(InputSource source)
          Parse a comma separated list of selectors.
 void parseStyleDeclaration(InputSource source)
          Parse a CSS style declaration (without '{' and '}').
 void parseStyleSheet(InputSource source)
          Parse a CSS document.
 void parseStyleSheet(java.lang.String uri)
          Parse a CSS document from a URI.
 void setConditionFactory(ConditionFactory conditionFactory)
           
 void setDocumentHandler(DocumentHandler handler)
          Allow an application to register a document event handler.
 void setErrorHandler(ErrorHandler handler)
          Allow an application to register an error event handler.
 void setLocale(java.util.Locale locale)
          Allow an application to request a locale for errors and warnings.
 void setSelectorFactory(SelectorFactory selectorFactory)
           
 

Method Detail

getParserVersion

public java.lang.String getParserVersion()
Returns a string about which CSS language is supported by this parser. For CSS Level 1, it returns "http://www.w3.org/TR/REC-CSS1", for CSS Level 2, it returns "http://www.w3.org/TR/REC-CSS2". Note that a "CSSx" parser can return lexical unit other than those allowed by CSS Level x but this usage is not recommended.

parsePriority

public boolean parsePriority(InputSource source)
                      throws CSSException,
                             java.io.IOException
Parse a CSS priority value (e.g. "!important").
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
java.io.IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parsePropertyValue

public LexicalUnit parsePropertyValue(InputSource source)
                               throws CSSException,
                                      java.io.IOException
Parse a CSS property value.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
java.io.IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parseRule

public void parseRule(InputSource source)
               throws CSSException,
                      java.io.IOException
Parse a CSS rule.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
java.io.IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parseSelectors

public SelectorList parseSelectors(InputSource source)
                            throws CSSException,
                                   java.io.IOException
Parse a comma separated list of selectors.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
java.io.IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parseStyleDeclaration

public void parseStyleDeclaration(InputSource source)
                           throws CSSException,
                                  java.io.IOException
Parse a CSS style declaration (without '{' and '}').
Parameters:
styleValue - The declaration.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
java.io.IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

parseStyleSheet

public void parseStyleSheet(InputSource source)
                     throws CSSException,
                            java.io.IOException
Parse a CSS document.

The application can use this method to instruct the CSS parser to begin parsing an CSS document from any valid input source (a character stream, a byte stream, or a URI).

Applications may not invoke this method while a parse is in progress (they should create a new Parser instead for each additional CSS document). Once a parse is complete, an application may reuse the same Parser object, possibly with a different input source.

Parameters:
source - The input source for the top-level of the CSS document.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
java.io.IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
See Also:
InputSource, parseStyleSheet(java.lang.String), setDocumentHandler(org.w3c.css.sac.DocumentHandler), setErrorHandler(org.w3c.css.sac.ErrorHandler)

parseStyleSheet

public void parseStyleSheet(java.lang.String uri)
                     throws CSSException,
                            java.io.IOException
Parse a CSS document from a URI.

This method is a shortcut for the common case of reading a document from a URI. It is the exact equivalent of the following:

 parse(new InputSource(uri));

The URI must be fully resolved by the application before it is passed to the parser.

Parameters:
uri - The URI.
Throws:
CSSException - Any CSS exception, possibly wrapping another exception.
java.io.IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
See Also:
parseStyleSheet(InputSource)

setConditionFactory

public void setConditionFactory(ConditionFactory conditionFactory)

setDocumentHandler

public void setDocumentHandler(DocumentHandler handler)
Allow an application to register a document event handler.

If the application does not register a document handler, all document events reported by the CSS parser will be silently ignored (this is the default behaviour implemented by HandlerBase).

Applications may register a new or different handler in the middle of a parse, and the CSS parser must begin using the new handler immediately.

Parameters:
handler - The document handler.
See Also:
DocumentHandler

setErrorHandler

public void setErrorHandler(ErrorHandler handler)
Allow an application to register an error event handler.

If the application does not register an error event handler, all error events reported by the CSS parser will be silently ignored, except for fatalError, which will throw a CSSException (this is the default behaviour implemented by HandlerBase).

Applications may register a new or different handler in the middle of a parse, and the CSS parser must begin using the new handler immediately.

Parameters:
handler - The error handler.
See Also:
ErrorHandler, CSSException

setLocale

public void setLocale(java.util.Locale locale)
               throws CSSException
Allow an application to request a locale for errors and warnings.

CSS parsers are not required to provide localisation for errors and warnings; if they cannot support the requested locale, however, they must throw a CSS exception. Applications may not request a locale change in the middle of a parse.

Parameters:
locale - A Java Locale object.
Throws:
CSSException - Throws an exception (using the previous or default locale) if the requested locale is not supported.
See Also:
CSSException, CSSParseException

setSelectorFactory

public void setSelectorFactory(SelectorFactory selectorFactory)


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/PositionalCondition.html0000664000175000017500000002675407503400057022012 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface PositionalCondition
W3C logo

org.w3c.css.sac
Interface PositionalCondition

All Superinterfaces:
Condition

public interface PositionalCondition
extends Condition
Version:
$Revision: 1.4 $
See Also:
Condition.SAC_POSITIONAL_CONDITION

Fields inherited from interface org.w3c.css.sac.Condition
SAC_AND_CONDITION, SAC_ATTRIBUTE_CONDITION, SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION, SAC_CLASS_CONDITION, SAC_CONTENT_CONDITION, SAC_ID_CONDITION, SAC_LANG_CONDITION, SAC_NEGATIVE_CONDITION, SAC_ONE_OF_ATTRIBUTE_CONDITION, SAC_ONLY_CHILD_CONDITION, SAC_ONLY_TYPE_CONDITION, SAC_OR_CONDITION, SAC_POSITIONAL_CONDITION, SAC_PSEUDO_CLASS_CONDITION
 
Method Summary
 int getPosition()
          Returns the position in the tree.
 boolean getType()
          true if the node should have the same node type (for element, same namespaceURI and same localName).
 boolean getTypeNode()
          true if the child node list only shows nodes of the same type of the selector (only elements, only PIS, ...)
 
Methods inherited from interface org.w3c.css.sac.Condition
getConditionType
 

Method Detail

getPosition

public int getPosition()
Returns the position in the tree.

A negative value means from the end of the child node list.

The child node list begins at 0.


getType

public boolean getType()
true if the node should have the same node type (for element, same namespaceURI and same localName).

getTypeNode

public boolean getTypeNode()
true if the child node list only shows nodes of the same type of the selector (only elements, only PIS, ...)


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/ProcessingInstructionSelector.html0000664000175000017500000002557107503400057024075 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface ProcessingInstructionSelector
W3C logo

org.w3c.css.sac
Interface ProcessingInstructionSelector

All Superinterfaces:
Selector, SimpleSelector

public interface ProcessingInstructionSelector
extends SimpleSelector

This simple matches a processing instruction.

Version:
$Revision: 1.2 $
See Also:
Selector.SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR

Fields inherited from interface org.w3c.css.sac.Selector
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR
 
Method Summary
 java.lang.String getData()
          Returns the character data.
 java.lang.String getTarget()
          Returns the target of the processing instruction.
 
Methods inherited from interface org.w3c.css.sac.Selector
getSelectorType
 

Method Detail

getData

public java.lang.String getData()
Returns the character data.

getTarget

public java.lang.String getTarget()
Returns the target of the processing instruction.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/SACMediaList.html0000664000175000017500000001741207503400057020213 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface SACMediaList
W3C logo

org.w3c.css.sac
Interface SACMediaList


public interface SACMediaList
Version:
$Revision: 1.1 $

Method Summary
 int getLength()
          Returns the length of this media list
 java.lang.String item(int index)
          Returns the medium at the specified index, or null if this is not a valid index.
 

Method Detail

getLength

public int getLength()
Returns the length of this media list

item

public java.lang.String item(int index)
Returns the medium at the specified index, or null if this is not a valid index.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/Selector.html0000664000175000017500000004771507503400057017602 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface Selector
W3C logo

org.w3c.css.sac
Interface Selector

All Known Subinterfaces:
CharacterDataSelector, ConditionalSelector, DescendantSelector, ElementSelector, NegativeSelector, ProcessingInstructionSelector, SiblingSelector, SimpleSelector

public interface Selector

This interface defines a selector.

Remarks: Not all the following selectors are supported (or will be supported) by CSS.

All examples are CSS2 compliant.

Version:
$Revision: 1.12 $

Field Summary
static short SAC_ANY_NODE_SELECTOR
          This selector matches any node.
static short SAC_CDATA_SECTION_NODE_SELECTOR
          This selector matches only cdata node.
static short SAC_CHILD_SELECTOR
          This selector matches a childhood relationship between two elements. example:
   E > F
static short SAC_COMMENT_NODE_SELECTOR
          This selector matches only comment node.
static short SAC_CONDITIONAL_SELECTOR
          This is a conditional selector. example:
   simple[role="private"]
   .part1
   H1#myId
   P:lang(fr).p1
static short SAC_DESCENDANT_SELECTOR
          This selector matches an arbitrary descendant of some ancestor element. example:
   E F
static short SAC_DIRECT_ADJACENT_SELECTOR
          This selector matches two selectors who shared the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one. example:
   E + F
static short SAC_ELEMENT_NODE_SELECTOR
          This selector matches only element node. example:
   H1
   animate
static short SAC_NEGATIVE_SELECTOR
          This selector matches only node that are different from a specified one.
static short SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR
          This selector matches only processing instruction node.
static short SAC_PSEUDO_ELEMENT_SELECTOR
          This selector matches the 'first line' pseudo element. example:
   :first-line
static short SAC_ROOT_NODE_SELECTOR
          This selector matches the root node.
static short SAC_TEXT_NODE_SELECTOR
          This selector matches only text node.
 
Method Summary
 short getSelectorType()
          An integer indicating the type of Selector
 

Field Detail

SAC_ANY_NODE_SELECTOR

public static final short SAC_ANY_NODE_SELECTOR
This selector matches any node.
See Also:
SimpleSelector

SAC_CDATA_SECTION_NODE_SELECTOR

public static final short SAC_CDATA_SECTION_NODE_SELECTOR
This selector matches only cdata node.
See Also:
CharacterDataSelector

SAC_CHILD_SELECTOR

public static final short SAC_CHILD_SELECTOR
This selector matches a childhood relationship between two elements. example:
   E > F
See Also:
DescendantSelector

SAC_COMMENT_NODE_SELECTOR

public static final short SAC_COMMENT_NODE_SELECTOR
This selector matches only comment node.
See Also:
CharacterDataSelector

SAC_CONDITIONAL_SELECTOR

public static final short SAC_CONDITIONAL_SELECTOR
This is a conditional selector. example:
   simple[role="private"]
   .part1
   H1#myId
   P:lang(fr).p1
See Also:
ConditionalSelector

SAC_DESCENDANT_SELECTOR

public static final short SAC_DESCENDANT_SELECTOR
This selector matches an arbitrary descendant of some ancestor element. example:
   E F
See Also:
DescendantSelector

SAC_DIRECT_ADJACENT_SELECTOR

public static final short SAC_DIRECT_ADJACENT_SELECTOR
This selector matches two selectors who shared the same parent in the document tree and the element represented by the first sequence immediately precedes the element represented by the second one. example:
   E + F
See Also:
SiblingSelector

SAC_ELEMENT_NODE_SELECTOR

public static final short SAC_ELEMENT_NODE_SELECTOR
This selector matches only element node. example:
   H1
   animate
See Also:
ElementSelector

SAC_NEGATIVE_SELECTOR

public static final short SAC_NEGATIVE_SELECTOR
This selector matches only node that are different from a specified one.
See Also:
NegativeSelector

SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR

public static final short SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR
This selector matches only processing instruction node.
See Also:
ProcessingInstructionSelector

SAC_PSEUDO_ELEMENT_SELECTOR

public static final short SAC_PSEUDO_ELEMENT_SELECTOR
This selector matches the 'first line' pseudo element. example:
   :first-line
See Also:
ElementSelector

SAC_ROOT_NODE_SELECTOR

public static final short SAC_ROOT_NODE_SELECTOR
This selector matches the root node.
See Also:
SimpleSelector

SAC_TEXT_NODE_SELECTOR

public static final short SAC_TEXT_NODE_SELECTOR
This selector matches only text node.
See Also:
CharacterDataSelector
Method Detail

getSelectorType

public short getSelectorType()
An integer indicating the type of Selector


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/SelectorFactory.html0000664000175000017500000006457007503400057021130 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface SelectorFactory
W3C logo

org.w3c.css.sac
Interface SelectorFactory


public interface SelectorFactory
Version:
$Revision: 1.3 $
See Also:
Selector

Method Summary
 SimpleSelector createAnyNodeSelector()
          Creates an any node selector.
 CharacterDataSelector createCDataSectionSelector(java.lang.String data)
          Creates a cdata section node selector.
 DescendantSelector createChildSelector(Selector parent, SimpleSelector child)
          Creates a child selector.
 CharacterDataSelector createCommentSelector(java.lang.String data)
          Creates a comment node selector.
 ConditionalSelector createConditionalSelector(SimpleSelector selector, Condition condition)
          Creates a conditional selector.
 DescendantSelector createDescendantSelector(Selector parent, SimpleSelector descendant)
          Creates a descendant selector.
 SiblingSelector createDirectAdjacentSelector(short nodeType, Selector child, SimpleSelector directAdjacent)
          Creates a sibling selector.
 ElementSelector createElementSelector(java.lang.String namespaceURI, java.lang.String tagName)
          Creates an element selector.
 NegativeSelector createNegativeSelector(SimpleSelector selector)
          Creates an negative selector.
 ProcessingInstructionSelector createProcessingInstructionSelector(java.lang.String target, java.lang.String data)
          Creates a processing instruction node selector.
 ElementSelector createPseudoElementSelector(java.lang.String namespaceURI, java.lang.String pseudoName)
          Creates a pseudo element selector.
 SimpleSelector createRootNodeSelector()
          Creates an root node selector.
 CharacterDataSelector createTextNodeSelector(java.lang.String data)
          Creates a text node selector.
 

Method Detail

createAnyNodeSelector

public SimpleSelector createAnyNodeSelector()
                                     throws CSSException
Creates an any node selector.
Returns:
the any node selector.
Throws:
CSSException - If this selector is not supported.

createCDataSectionSelector

public CharacterDataSelector createCDataSectionSelector(java.lang.String data)
                                                 throws CSSException
Creates a cdata section node selector.
Parameters:
data - the data
Returns:
the cdata section node selector
Throws:
CSSException - If this selector is not supported.

createChildSelector

public DescendantSelector createChildSelector(Selector parent,
                                              SimpleSelector child)
                                       throws CSSException
Creates a child selector.
Parameters:
parent - the parent selector
child - the child selector
Returns:
the combinator selector.
Throws:
CSSException - If this selector is not supported.

createCommentSelector

public CharacterDataSelector createCommentSelector(java.lang.String data)
                                            throws CSSException
Creates a comment node selector.
Parameters:
data - the data
Returns:
the comment node selector
Throws:
CSSException - If this selector is not supported.

createConditionalSelector

public ConditionalSelector createConditionalSelector(SimpleSelector selector,
                                                     Condition condition)
                                              throws CSSException
Creates a conditional selector.
Parameters:
selector - a selector.
condition - a condition
Returns:
the conditional selector.
Throws:
CSSException - If this selector is not supported.

createDescendantSelector

public DescendantSelector createDescendantSelector(Selector parent,
                                                   SimpleSelector descendant)
                                            throws CSSException
Creates a descendant selector.
Parameters:
parent - the parent selector
descendant - the descendant selector
Returns:
the combinator selector.
Throws:
CSSException - If this selector is not supported.

createDirectAdjacentSelector

public SiblingSelector createDirectAdjacentSelector(short nodeType,
                                                    Selector child,
                                                    SimpleSelector directAdjacent)
                                             throws CSSException
Creates a sibling selector.
Parameters:
nodeType - the type of nodes in the siblings list.
child - the child selector
adjacent - the direct adjacent selector
Returns:
the sibling selector with nodeType equals to org.w3c.dom.Node.ELEMENT_NODE
Throws:
CSSException - If this selector is not supported.

createElementSelector

public ElementSelector createElementSelector(java.lang.String namespaceURI,
                                             java.lang.String tagName)
                                      throws CSSException
Creates an element selector.
Parameters:
namespaceURI - the namespace URI of the element selector.
tagName - the local part of the element name. NULL if this element selector can match any element.

Returns:
the element selector
Throws:
CSSException - If this selector is not supported.

createNegativeSelector

public NegativeSelector createNegativeSelector(SimpleSelector selector)
                                        throws CSSException
Creates an negative selector.
Parameters:
selector - a selector.
Returns:
the negative selector.
Throws:
CSSException - If this selector is not supported.

createProcessingInstructionSelector

public ProcessingInstructionSelector createProcessingInstructionSelector(java.lang.String target,
                                                                         java.lang.String data)
                                                                  throws CSSException
Creates a processing instruction node selector.
Parameters:
target - the target
data - the data
Returns:
the processing instruction node selector
Throws:
CSSException - If this selector is not supported.

createPseudoElementSelector

public ElementSelector createPseudoElementSelector(java.lang.String namespaceURI,
                                                   java.lang.String pseudoName)
                                            throws CSSException
Creates a pseudo element selector.
Parameters:
pseudoName - the pseudo element name. NULL if this element selector can match any pseudo element.

Returns:
the element selector
Throws:
CSSException - If this selector is not supported.

createRootNodeSelector

public SimpleSelector createRootNodeSelector()
                                      throws CSSException
Creates an root node selector.
Returns:
the root node selector.
Throws:
CSSException - If this selector is not supported.

createTextNodeSelector

public CharacterDataSelector createTextNodeSelector(java.lang.String data)
                                             throws CSSException
Creates a text node selector.
Parameters:
data - the data
Returns:
the text node selector
Throws:
CSSException - If this selector is not supported.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/SelectorList.html0000664000175000017500000002001507503400057020416 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface SelectorList
W3C logo

org.w3c.css.sac
Interface SelectorList


public interface SelectorList

The SelectorList interface provides the abstraction of an ordered collection of selectors, without defining or constraining how this collection is implemented.

Version:
$Revision: 1.1 $

Method Summary
 int getLength()
          Returns the length of this selector list
 Selector item(int index)
          Returns the selector at the specified index, or null if this is not a valid index.
 

Method Detail

getLength

public int getLength()
Returns the length of this selector list

item

public Selector item(int index)
Returns the selector at the specified index, or null if this is not a valid index.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/SiblingSelector.html0000664000175000017500000003047707503400060021101 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface SiblingSelector
W3C logo

org.w3c.css.sac
Interface SiblingSelector

All Superinterfaces:
Selector

public interface SiblingSelector
extends Selector
Version:
$Revision: 1.3 $
See Also:
Selector.SAC_DIRECT_ADJACENT_SELECTOR

Field Summary
static short ANY_NODE
           
 
Fields inherited from interface org.w3c.css.sac.Selector
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR
 
Method Summary
 short getNodeType()
          The node type to considered in the siblings list.
 Selector getSelector()
          Returns the first selector.
 SimpleSelector getSiblingSelector()
           
 
Methods inherited from interface org.w3c.css.sac.Selector
getSelectorType
 

Field Detail

ANY_NODE

public static final short ANY_NODE
Method Detail

getNodeType

public short getNodeType()
The node type to considered in the siblings list. All DOM node types are supported. In order to support the "any" node type, the code ANY_NODE is added to the DOM node types.

getSelector

public Selector getSelector()
Returns the first selector.

getSiblingSelector

public SimpleSelector getSiblingSelector()


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/SimpleSelector.html0000664000175000017500000002230007503400060020725 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Interface SimpleSelector
W3C logo

org.w3c.css.sac
Interface SimpleSelector

All Superinterfaces:
Selector
All Known Subinterfaces:
CharacterDataSelector, ConditionalSelector, ElementSelector, NegativeSelector, ProcessingInstructionSelector

public interface SimpleSelector
extends Selector

This interface is only for constraints on selectors.

A ConditionalSelector can only accept a simple selector or a negative selector.

Version:
$Revision: 1.2 $

Fields inherited from interface org.w3c.css.sac.Selector
SAC_ANY_NODE_SELECTOR, SAC_CDATA_SECTION_NODE_SELECTOR, SAC_CHILD_SELECTOR, SAC_COMMENT_NODE_SELECTOR, SAC_CONDITIONAL_SELECTOR, SAC_DESCENDANT_SELECTOR, SAC_DIRECT_ADJACENT_SELECTOR, SAC_ELEMENT_NODE_SELECTOR, SAC_NEGATIVE_SELECTOR, SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR, SAC_PSEUDO_ELEMENT_SELECTOR, SAC_ROOT_NODE_SELECTOR, SAC_TEXT_NODE_SELECTOR
 
Methods inherited from interface org.w3c.css.sac.Selector
getSelectorType
 



Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/InputSource.html0000664000175000017500000006055507503400060020271 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Class InputSource
W3C logo

org.w3c.css.sac
Class InputSource

java.lang.Object
  |
  +--org.w3c.css.sac.InputSource

public class InputSource
extends java.lang.Object

A single input source for a CSS source.

This class allows a CSS application to encapsulate information about an input source in a single object, which may include a URI, a byte stream (possibly with a specified encoding), and/or a character stream.

The CSS parser will use the InputSource object to determine how to read CSS input. If there is a character stream available, the parser will read that stream directly; if not, the parser will use a byte stream, if available; if neither a character stream nor a byte stream is available, the parser will attempt to open a URI connection to the resource identified by the URI.

An InputSource object belongs to the application: the CSS parser shall never modify it in any way (it may modify a copy if necessary).

Version:
$Revision: 1.2 $

Constructor Summary
InputSource()
          Zero-argument default constructor.
InputSource(java.io.Reader characterStream)
          Create a new input source with a character stream.
InputSource(java.lang.String uri)
          Create a new input source with a URI.
 
Method Summary
 java.io.InputStream getByteStream()
          Get the byte stream for this input source.
 java.io.Reader getCharacterStream()
          Get the character stream for this input source.
 java.lang.String getEncoding()
          Get the character encoding for a byte stream or URI.
 java.lang.String getMedia()
          Returns the media associated to the input source or null if media are currently unknown.
 java.lang.String getTitle()
          Returns the title for this input source.
 java.lang.String getURI()
          Get the URI for this input source.
 void setByteStream(java.io.InputStream byteStream)
          Set the byte stream for this input source.
 void setCharacterStream(java.io.Reader characterStream)
          Set the character stream for this input source.
 void setEncoding(java.lang.String encoding)
          Set the character encoding, if known.
 void setMedia(java.lang.String media)
          Set the media for this input source.
 void setTitle(java.lang.String title)
          Set the title for this input source.
 void setURI(java.lang.String uri)
          Set the URI for this input source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputSource

public InputSource()
Zero-argument default constructor.
See Also:
setURI(java.lang.String), setByteStream(java.io.InputStream), setCharacterStream(java.io.Reader), setEncoding(java.lang.String)

InputSource

public InputSource(java.io.Reader characterStream)
Create a new input source with a character stream.

Application writers may use setURI() to provide a base for resolving relative URIs, and setPublicId to include a public identifier.

The character stream shall not include a byte order mark.

See Also:
setURI(java.lang.String), setByteStream(java.io.InputStream), setCharacterStream(java.io.Reader)

InputSource

public InputSource(java.lang.String uri)
Create a new input source with a URI.

The URI must be full resolved.

Parameters:
uri - The URI.
See Also:
setURI(java.lang.String), setByteStream(java.io.InputStream), setEncoding(java.lang.String), setCharacterStream(java.io.Reader)
Method Detail

getByteStream

public java.io.InputStream getByteStream()
Get the byte stream for this input source.

The getEncoding method will return the character encoding for this byte stream, or null if unknown.

Returns:
The byte stream, or null if none was supplied.
See Also:
getEncoding(), setByteStream(java.io.InputStream)

getCharacterStream

public java.io.Reader getCharacterStream()
Get the character stream for this input source.
Returns:
The character stream, or null if none was supplied.
See Also:
setCharacterStream(java.io.Reader)

getEncoding

public java.lang.String getEncoding()
Get the character encoding for a byte stream or URI.
Returns:
The encoding, or null if none was supplied.
See Also:
setByteStream(java.io.InputStream), getURI(), getByteStream()

getMedia

public java.lang.String getMedia()
Returns the media associated to the input source or null if media are currently unknown.
Returns:
the media associated to this input source.

getTitle

public java.lang.String getTitle()
Returns the title for this input source.

getURI

public java.lang.String getURI()
Get the URI for this input source.

The getEncoding method will return the character encoding of the object pointed to, or null if unknown.

The URI will be fully resolved.

Returns:
The URI.
See Also:
setURI(java.lang.String), getEncoding()

setByteStream

public void setByteStream(java.io.InputStream byteStream)
Set the byte stream for this input source.

The SAX parser will ignore this if there is also a character stream specified, but it will use a byte stream in preference to opening a URI connection itself.

If the application knows the character encoding of the byte stream, it should set it with the setEncoding method.

Parameters:
byteStream - A byte stream containing an CSS document or other entity.
See Also:
setEncoding(java.lang.String), getByteStream(), getEncoding()

setCharacterStream

public void setCharacterStream(java.io.Reader characterStream)
Set the character stream for this input source.

If there is a character stream specified, the SAX parser will ignore any byte stream and will not attempt to open a URI connection to the URI.

Parameters:
characterStream - The character stream containing the CSS document or other entity.
See Also:
getCharacterStream()

setEncoding

public void setEncoding(java.lang.String encoding)
Set the character encoding, if known.

The encoding must be a string acceptable for an CHARSET encoding declaration (see section 4.4 of the CSS recommendation Level 2).

This method has no effect when the application provides a character stream.

Parameters:
encoding - A string describing the character encoding.
See Also:
setURI(java.lang.String), setByteStream(java.io.InputStream), getEncoding()

setMedia

public void setMedia(java.lang.String media)
Set the media for this input source.
Parameters:
media - A comma separated list with all media.

setTitle

public void setTitle(java.lang.String title)
Set the title for this input source.
Parameters:
title - The advisory title. See the title attribute definition for the LINK element in HTML 4.0, and the title pseudo-attribute for the XML style sheet processing instruction.

setURI

public void setURI(java.lang.String uri)
Set the URI for this input source.

The URI is optional if there is a byte stream or a character stream, but it is still useful to provide one, since the application can use it to resolve relative URIs and can include it in error messages and warnings (the parser will attempt to open a connection to the URI only if there is no byte stream or character stream specified).

If the application knows the character encoding of the object pointed to by the URI, it can register the encoding using the setEncoding method.

The URI must be fully resolved.

Parameters:
uri - The URI as a string.
See Also:
setEncoding(java.lang.String), getURI(), Locator.getURI(), CSSParseException.getURI()


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/CSSException.html0000664000175000017500000004577307503400060020325 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Class CSSException
W3C logo

org.w3c.css.sac
Class CSSException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.w3c.css.sac.CSSException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CSSParseException

public class CSSException
extends java.lang.RuntimeException
Version:
$Revision: 1.3 $
See Also:
Serialized Form

Field Summary
protected  short code
           
protected  java.lang.Exception e
          The internal exception.
protected  java.lang.String s
           
protected static java.lang.String S_SAC_NOT_SUPPORTED_ERR
           
protected static java.lang.String S_SAC_SYNTAX_ERR
           
protected static java.lang.String S_SAC_UNSPECIFIED_ERR
           
static short SAC_NOT_SUPPORTED_ERR
          If the operation is not supported
static short SAC_SYNTAX_ERR
          If an invalid or illegal string is specified
static short SAC_UNSPECIFIED_ERR
          this error is unspecified.
 
Constructor Summary
CSSException()
          Creates a new CSSException
CSSException(java.lang.Exception e)
          Creates a new CSSException with an embeded exception.
CSSException(short code)
          Creates a new CSSException with a specific code.
CSSException(short code, java.lang.String s, java.lang.Exception e)
          Creates a new CSSException with an embeded exception and a specified message.
CSSException(java.lang.String s)
          Creates a new CSSException
 
Method Summary
 short getCode()
          returns the error code for this exception.
 java.lang.Exception getException()
          Returns the internal exception if any, null otherwise.
 java.lang.String getMessage()
          Returns the detail message of this throwable object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

code

protected short code

e

protected java.lang.Exception e
The internal exception.

s

protected java.lang.String s

S_SAC_NOT_SUPPORTED_ERR

protected static final java.lang.String S_SAC_NOT_SUPPORTED_ERR

S_SAC_SYNTAX_ERR

protected static final java.lang.String S_SAC_SYNTAX_ERR

S_SAC_UNSPECIFIED_ERR

protected static final java.lang.String S_SAC_UNSPECIFIED_ERR

SAC_NOT_SUPPORTED_ERR

public static final short SAC_NOT_SUPPORTED_ERR
If the operation is not supported

SAC_SYNTAX_ERR

public static final short SAC_SYNTAX_ERR
If an invalid or illegal string is specified

SAC_UNSPECIFIED_ERR

public static final short SAC_UNSPECIFIED_ERR
this error is unspecified.
Constructor Detail

CSSException

public CSSException()
Creates a new CSSException

CSSException

public CSSException(java.lang.Exception e)
Creates a new CSSException with an embeded exception.
Parameters:
a - the embeded exception.

CSSException

public CSSException(short code)
Creates a new CSSException with a specific code.
Parameters:
a - the embeded exception.

CSSException

public CSSException(short code,
                    java.lang.String s,
                    java.lang.Exception e)
Creates a new CSSException with an embeded exception and a specified message.
Parameters:
code - the specified code.
e - the embeded exception.

CSSException

public CSSException(java.lang.String s)
Creates a new CSSException
Method Detail

getCode

public short getCode()
returns the error code for this exception.

getException

public java.lang.Exception getException()
Returns the internal exception if any, null otherwise.

getMessage

public java.lang.String getMessage()
Returns the detail message of this throwable object.
Overrides:
getMessage in class java.lang.Throwable
Returns:
the detail message of this Throwable, or null if this Throwable does not have a detail message.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/CSSParseException.html0000664000175000017500000005140507503400060021305 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Class CSSParseException
W3C logo

org.w3c.css.sac
Class CSSParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.w3c.css.sac.CSSException
                          |
                          +--org.w3c.css.sac.CSSParseException
All Implemented Interfaces:
java.io.Serializable

public class CSSParseException
extends CSSException

Encapsulate a CSS parse error or warning.

This exception will include information for locating the error in the original CSS document. Note that although the application will receive a CSSParseException as the argument to the handlers in the ErrorHandler interface, the application is not actually required to throw the exception; instead, it can simply read the information in it and take a different action.

Since this exception is a subclass of CSSException, it inherits the ability to wrap another exception.

Version:
$Revision: 1.3 $
See Also:
Serialized Form

Fields inherited from class org.w3c.css.sac.CSSException
code, e, s, S_SAC_NOT_SUPPORTED_ERR, S_SAC_SYNTAX_ERR, S_SAC_UNSPECIFIED_ERR, SAC_NOT_SUPPORTED_ERR, SAC_SYNTAX_ERR, SAC_UNSPECIFIED_ERR
 
Constructor Summary
CSSParseException(java.lang.String message, Locator locator)
          Create a new CSSParseException from a message and a Locator.
CSSParseException(java.lang.String message, Locator locator, java.lang.Exception e)
          Wrap an existing exception in a CSSParseException.
CSSParseException(java.lang.String message, java.lang.String uri, int lineNumber, int columnNumber)
          Create a new CSSParseException.
CSSParseException(java.lang.String message, java.lang.String uri, int lineNumber, int columnNumber, java.lang.Exception e)
          Create a new CSSParseException with an embedded exception.
 
Method Summary
 int getColumnNumber()
          The column number of the end of the text where the exception occurred.
 int getLineNumber()
          The line number of the end of the text where the exception occurred.
 java.lang.String getURI()
          Get the URI of the document where the exception occurred.
 
Methods inherited from class org.w3c.css.sac.CSSException
getCode, getException, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSParseException

public CSSParseException(java.lang.String message,
                         Locator locator)
Create a new CSSParseException from a message and a Locator.

This constructor is especially useful when an application is creating its own exception from within a DocumentHandler callback.

Parameters:
message - The error or warning message.
locator - The locator object for the error or warning.
See Also:
Locator, Parser.setLocale(java.util.Locale)

CSSParseException

public CSSParseException(java.lang.String message,
                         Locator locator,
                         java.lang.Exception e)
Wrap an existing exception in a CSSParseException.

This constructor is especially useful when an application is creating its own exception from within a DocumentHandler callback, and needs to wrap an existing exception that is not a subclass of CSSException.

Parameters:
message - The error or warning message, or null to use the message from the embedded exception.
locator - The locator object for the error or warning.
e - Any exception
See Also:
Locator, Parser.setLocale(java.util.Locale)

CSSParseException

public CSSParseException(java.lang.String message,
                         java.lang.String uri,
                         int lineNumber,
                         int columnNumber)
Create a new CSSParseException.

This constructor is most useful for parser writers.

the parser must resolve the URI fully before creating the exception.

Parameters:
message - The error or warning message.
uri - The URI of the document that generated the error or warning.
lineNumber - The line number of the end of the text that caused the error or warning.
columnNumber - The column number of the end of the text that cause the error or warning.
See Also:
Parser.setLocale(java.util.Locale)

CSSParseException

public CSSParseException(java.lang.String message,
                         java.lang.String uri,
                         int lineNumber,
                         int columnNumber,
                         java.lang.Exception e)
Create a new CSSParseException with an embedded exception.

This constructor is most useful for parser writers who need to wrap an exception that is not a subclass of CSSException.

The parser must resolve the URI fully before creating the exception.

Parameters:
message - The error or warning message, or null to use the message from the embedded exception.
uri - The URI of the document that generated the error or warning.
lineNumber - The line number of the end of the text that caused the error or warning.
columnNumber - The column number of the end of the text that cause the error or warning.
e - Another exception to embed in this one.
See Also:
Parser.setLocale(java.util.Locale)
Method Detail

getColumnNumber

public int getColumnNumber()
The column number of the end of the text where the exception occurred.

The first column in a line is position 1.

Returns:
An integer representing the column number, or -1 if none is available.
See Also:
Locator.getColumnNumber()

getLineNumber

public int getLineNumber()
The line number of the end of the text where the exception occurred.
Returns:
An integer representing the line number, or -1 if none is available.
See Also:
Locator.getLineNumber()

getURI

public java.lang.String getURI()
Get the URI of the document where the exception occurred.

The URI will be resolved fully.

Returns:
A string containing the URI, or null if none is available.
See Also:
Locator.getURI()


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/helpers/0000775000175000017500000000000007503400060016552 5ustar renerenesac-1.3.orig/doc/org/w3c/css/sac/helpers/package-summary.html0000664000175000017500000001217407503400060022533 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Package org.w3c.css.sac.helpers
W3C logo

Package org.w3c.css.sac.helpers

Class Summary
ParserFactory  
 

Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/helpers/package-tree.html0000664000175000017500000001226707503400060022000 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: org.w3c.css.sac.helpers Class Hierarchy
W3C logo

Hierarchy For Package org.w3c.css.sac.helpers

Package Hierarchies:
All Packages

Class Hierarchy



Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/org/w3c/css/sac/helpers/package-frame.html0000664000175000017500000000150107503400060022120 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Package org.w3c.css.sac.helpers org.w3c.css.sac.helpers
Classes 
ParserFactory
sac-1.3.orig/doc/org/w3c/css/sac/helpers/ParserFactory.html0000664000175000017500000002165207503400060022232 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Class ParserFactory
W3C logo

org.w3c.css.sac.helpers
Class ParserFactory

java.lang.Object
  |
  +--org.w3c.css.sac.helpers.ParserFactory

public class ParserFactory
extends java.lang.Object
Version:
$Revision: 1.1 $

Constructor Summary
ParserFactory()
           
 
Method Summary
 Parser makeParser()
          Create a parser with given selectors factory and conditions factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserFactory

public ParserFactory()
Method Detail

makeParser

public Parser makeParser()
                  throws java.lang.ClassNotFoundException,
                         java.lang.IllegalAccessException,
                         java.lang.InstantiationException,
                         java.lang.NullPointerException,
                         java.lang.ClassCastException
Create a parser with given selectors factory and conditions factory.


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/serialized-form.html0000664000175000017500000001435607503400060016262 0ustar renerene Serialized Form
W3C logo

Serialized Form


Package org.w3c.css.sac

Class org.w3c.css.sac.CSSException implements Serializable

Serialized Fields

s

java.lang.String s

e

java.lang.Exception e
The internal exception.

code

short code

Class org.w3c.css.sac.CSSParseException implements Serializable

Serialized Fields

uri

java.lang.String uri

lineNumber

int lineNumber

columnNumber

int columnNumber


Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/package-list0000664000175000017500000000005007503371236014565 0ustar renereneorg.w3c.css.sac org.w3c.css.sac.helpers sac-1.3.orig/doc/help-doc.html0000664000175000017500000001717707503400060014665 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: API Help
W3C logo

How This API Document Is Organized

This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

Overview

The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

Package

Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

Class/Interface

Each class, interface, inner class and inner interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

Tree (Class Hierarchy)

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

Index

The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

Prev/Next

These links take you to the next or previous class, interface, package, or related page.

Frames/No Frames

These links show and hide the HTML frames. All pages are available with or without frames.

Serialized Form

Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

This help file applies to API documentation generated using the standard doclet.



Copyright © 2002 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

sac-1.3.orig/doc/stylesheet.css0000664000175000017500000000233007503371236015204 0ustar renerene/* Javadoc style sheet */ /* Define colors, fonts and other style attributes here to override the defaults */ /* Page background color */ body { background-color: #FFFFFF } /* Table colors */ .TableHeadingColor { background: #CCCCFF } /* Dark mauve */ .TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ .TableRowColor { background: #FFFFFF } /* White */ /* Font used in left-hand frame lists */ .FrameTitleFont { font-size: normal; font-family: normal } .FrameHeadingFont { font-size: normal; font-family: normal } .FrameItemFont { font-size: normal; font-family: normal } /* Example of smaller, sans-serif font in frames */ /* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */ /* Navigation bar fonts and colors */ .NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */ .NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */ .NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} .NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} .NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} .NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} sac-1.3.orig/doc/overview-frame.html0000664000175000017500000000220407503400060016111 0ustar renerene W3C Simple API for CSS (SAC) version 1.3 - Java API: Overview
W3C logo
All Classes

Packages
org.w3c.css.sac
org.w3c.css.sac.helpers

 

sac-1.3.orig/COPYRIGHT.html0000664000175000017500000000726307503371435014005 0ustar renerene W3C IPR SOFTWARE NOTICE

W3C IPR SOFTWARE NOTICE

Copyright 2002 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.

Note: The original version of the W3C Software Copyright Notice and License could be found at http://www.w3.org/Consortium/Legal/copyright-software-19980720

Copyright 1994-2002 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/

This W3C work (including software, documents, or other related items) is being provided by the copyright holders under the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:

Permission to use, copy, and modify this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make:

  1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
  2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright 2002 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/"
  3. Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)

THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.

COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.

The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.

sac-1.3.orig/sac.jar0000664000175000017500000003427607503372143013014 0ustar renerenePKT, META-INF/PKPKT,META-INF/MANIFEST.MFMLK-. K-*ϳR03r.JM,IMu )h8$&g)x%%dV(&jrrPK)HHPK sT,org/PK sT,org/w3c/PK T, org/w3c/css/PK T,org/w3c/css/sac/PK T,org/w3c/css/sac/helpers/PKZT,+org/w3c/css/sac/helpers/ParserFactory.classS]o0=^?\ڎ 6:ڕ%PE%TBLHv7M oH(MPõ}9 }QV56Hc3[qQf> >fHU/ u$ZA$~WR&oeGh#5jRogMjuB>}ˁ Td8v9rT8T8TCf&#X"gX!f]bv{Epa#{z^{DV UZigJ HmG>[E<É%b(ȐX wo41mej%N!PD1DƊ"$ k3B alv82V =i;aJ@^wa2 ŒNw}7w!kLn-s`qPJu34!K E\-1Ad9RwFU)s9G =rۤ%)R:K PKxaPKZT,(org/w3c/css/sac/AttributeCondition.classej@cRcT+],t%ꢻqHH2օC'Z\ss90@;@3@+k7o_sND\fxDh2Z%hY$x7ŹL #[dJEwx͢pݦKM «bsK%b#]*Pa>'_ P;R3Wg_APK*IOPKZT,org/w3c/css/sac/Condition.classuN@g(|>\h/|R*4iv]Ijjmռ|(lCpKwٙOH5\,G7\5\%,A$aLЇa~:"Ț.wNvO T+qoYQחRu֌;+5M!TlZmu-M#dְulj[;|hY]hYB##_t Qm΄D&x W43? i}y^=hn}͟Lk)#4!([-OhYNVS 3 gW^#),P8O\PH\RxpqMmw'>Pe?PK1-h3PKZT,"org/w3c/css/sac/CSSException.class}SKOa=ZR_UGU|%Ԣ&Xj LjfBܺ5M\d2oZ];{{X2:ЁyaYǭnp' qOdKnk(U*e }Z"R'd&tUBW4lG3mԭtz3DPAu7]9; Je%1 =HS <%hB o3ܾR4Ϊlv {hne!<Awbps12$;/t ,m5 sj}iDwA"|^ɠ׃}܏q wۉ=8He&1J ]3W`)M ) (u@߽"w]7S筐%/*x("83go! yTLyGqt i cvc: xۃ]/b`m OJ~M¨c>pM3{kZhSȐn{Cxv) {@I*vsȝZLx MOrq@_npMPj='yZM.buhdTqe*fU, *q4aeܼ aj']LpH<+ S7% (M4:' kqۡDn )c+$99R8pLdz(KP(^KTtr+pU(Kl#Mf!rG/2pH*B4ԾEsV%>Wqb:aQ?C.g,:&Ǘl}C#vir5ZOHH@U>QS&Rk͗PKr7PKZT,org/w3c/css/sac/Locator.classE @O2ACǎAHA"nz*Z?3?+>Ks9(NJ~MR&6OF:D-ϬSUW7??HU$(JL-k`ߘ0/R v .`96FVPK/PKZT,org/w3c/css/sac/Selector.classuN1gDQ< ^^Mhv!zY7!`5>enT}3v 2p 9†fe#M!ԌW\hГ:sj*PN jtweaX\.%+.CAO.>0N:$^LfWн~u(TrGOͽo;ϧ /a8Nm;itYJ=DY3N"Y'@f]Nv6vvvFҢT̜TF܂Ԝ"IJDFtrdbd}TU  u9yIY@AF =Pl L@ ,@PKwPKZT,)org/w3c/css/sac/CombinatorCondition.classu1@Ej% 'X Ylx(b1ɛ'<_Äa1 \D׍MuVlO lɻ0wTIG~JQjnT.ak+aM)BaݿS V楨r~ %-a@` t/PK} PKZT,&org/w3c/css/sac/ConditionFactory.class[K0O:]|Aa/PRfj~?ƤJ ?&|{1؃- 5@d3rB-,f9]qM =l豵i'Է(fx!(d,< 6,Et\rȮLթ%( P FSeR|P%c1{6vj6US[oCk(%gFPG qz=)ܧf;Ӣ4Ыecefmӆ,[trzŮJQWe2pir\p5ȹer ~@F~#1gw\J*xNp)d$RiD`^" (%%jY!+PHI!eHdU!UX k=/PKH_PKZT,'org/w3c/css/sac/NegativeCondition.class;o>f]nvvNv.F̒]tVv tTri 7B?([<YWDɂ-~:qC ZQ7v?PKu PKZT,#org/w3c/css/sac/LangCondition.class] 0okuqqpA38: N>A!Pb(:qu c!È"0B-&̖WXyzcP5Ku0"Lwlqvp߶K@xj 䃗BP`PKEPKZT,&org/w3c/css/sac/ContentCondition.classm0 @ H{R& P-8?;?b@_` P5SPV8o7 F a 6Ύ]nAZKJ_0~OLY}@HZ(#du y PKѷ PKZT,)org/w3c/css/sac/ConditionalSelector.class}@oKUͅQ$qiڬŻ9x% d\a !2JG",MNM\/̒dLLF|ԶŃȜr։V~,%oЭ`E."aO 8\GBhV:ZOPKn%PKZT,(org/w3c/css/sac/DescendantSelector.classu= @$1ѨXhaenai%`b"٨wJA+ooz)|M-B/b*E2I',eZhD]F 121F+^G +֊ӽL ,ͭC$S"i(ؔ]2c`҅gBxPKg3x#PKZT,%org/w3c/css/sac/DocumentHandler.classO0_*Fx8r"qуRdKW5QnS,{7H9-8(,UGɘr /Mb LkO#&#\wJ5yʇ ql4#msvd܍BG~Qe41J<,q(tr<B*GB8+}yC YPEԓ%d$ע;z,c+vOp"H7>(QB.Ou9O*,">jQ=pZOQ{,Zn0zT^ᆠ|;T̠KǙM |=>UMšAr u` E(d3A: R& A'oE)8PKjc?PKZT,!org/w3c/css/sac/InputSource.classuMOQKi;~PZA>DT¨G\H&v:S;& W&t^W.u)0-qs{s=~ s*RЅ\H\rIȼBBq\ct!m<5Ѵ ױ FͰ[jsvmJJ٪QC|l8r(sʏ[6x6vvoQ#-RF5uUlU_,mQ ;`} 7)v3GJ̴u8uxd&).cIY<-s[af?_7LXܻy ՍV1-Rr=gN`5ðqjƘ42iQC "*"C?Q3K6of S߯ns}mOр[=]_,htvS2Zc`o(`8NR:(Q?L8QEz^M/2լ ;^"r=Grr; 98Oynx I CdKB"gc25Ma3]+2t0C踌JoŹt\F'-w?Ю2i9ѿ J}tPꮈztc*yPK+QPKZT,"org/w3c/css/sac/SACMediaList.classM1@D`B2&&$ N?]nCi&yy|qkv7]~8iKQFuBRNL݁Fƺ`mcVXĿC6 C?{'hPKWҞPKZT,"org/w3c/css/sac/SelectorList.classu0Ewa&$$CBr̿PKZЗPKZT,!org/w3c/css/sac/LexicalUnit.class}vFq$ʹtO[Hcg,ZBԑ{l[^@/'9<7?7`Y^b;l%Њn8;yH m ?ΖGZn&A gkčePʼnnkErns8 T>H*.UO}Zx:_e,]GWf9UPGPEM(٤)-Pii@ xtfe[xx0y֤|Fkf@ږ醍~/pVRiJŋ{ ijc{aޮE#K}Wl69Q#г]6V -GZh\5oF/۰ekfxK\=V3t`nkšMnX/ŽGz xopw݉=uUCEǶ9:ʎYw6!YfZ"hPw6_d3)_Y77,#ϟYgӴոؿPKrks#PKZT,%org/w3c/css/sac/ElementSelector.class] @U2k[E$=4\DPwkPѸp>}/X!0{& GsSIŗ.Q&RhY$"nH RIݭ ~\jT4\1kVmY;0/D<6JT7#LN@¬/i^i9.`X0viq PKIPPKZT,"org/w3c/css/sac/ErrorHandler.class;o>f]>vnvFĢ̼tF5 trdbd}ĢT׊Ԃ+ـ"""@ d31pPK|W&PKZT,&org/w3c/css/sac/NegativeSelector.class;o>f]nvvNv.FԒ܂Ԝ"F% Mtrdbd}T5֌ \Eɩn9 ~%epzYe ƠcdIKO 22ᷜ YXXA,6 PK. PKZT,org/w3c/css/sac/Parser.classSN04le)}_r8'Q)R+"zf\Ɓcj)!y3i