sac-1.3.orig/ 0000775 0001750 0001750 00000000000 07503372162 011535 5 ustar rene rene sac-1.3.orig/META-INF/ 0000755 0001750 0001750 00000000000 07136163163 012674 5 ustar rene rene sac-1.3.orig/META-INF/MANIFEST.MF 0000755 0001750 0001750 00000000110 07140127036 014313 0 ustar rene rene Manifest-Version: 1.0 Created-By: 1.2.2 (Blackdown Java-Linux Team) sac-1.3.orig/org/ 0000775 0001750 0001750 00000000000 07140126754 012325 5 ustar rene rene sac-1.3.orig/org/w3c/ 0000775 0001750 0001750 00000000000 07140126754 013021 5 ustar rene rene sac-1.3.orig/org/w3c/css/ 0000775 0001750 0001750 00000000000 07140126764 013612 5 ustar rene rene sac-1.3.orig/org/w3c/css/sac/ 0000775 0001750 0001750 00000000000 07503370373 014360 5 ustar rene rene sac-1.3.orig/org/w3c/css/sac/helpers/ 0000775 0001750 0001750 00000000000 07140127545 016020 5 ustar rene rene sac-1.3.orig/org/w3c/css/sac/helpers/ParserFactory.java 0000644 0001750 0001750 00000002463 07250736212 021451 0 ustar rene rene /* * 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.java 0000644 0001750 0001750 00000004536 07503370341 021036 0 ustar rene rene /* * 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 :
*
NULL
if :
*
this attribute condition can match any attribute. *
this attribute is a class attribute. *
this attribute is an id attribute. *
this attribute is a pseudo-class attribute. *
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.java 0000644 0001750 0001750 00000006266 07503370341 017535 0 ustar rene rene /*
* 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.java 0000664 0001750 0001750 00000013240 07503370341 020520 0 ustar rene rene /*
* 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.java 0000664 0001750 0001750 00000001277 07503370341 021414 0 ustar rene rene /* * (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.java 0000664 0001750 0001750 00000001354 07503370341 021165 0 ustar rene rene /* * (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.java 0000664 0001750 0001750 00000007666 07503370341 017163 0 ustar rene rene /* * 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.java 0000664 0001750 0001750 00000015023 07503370341 020475 0 ustar rene rene /*
* 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.java 0000664 0001750 0001750 00000001500 07503370341 021156 0 ustar rene rene /*
* (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
.
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.java 0000664 0001750 0001750 00000002672 07503370341 020317 0 ustar rene rene /*
* 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.
NULL
if this element selector can match any element.
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.java 0000664 0001750 0001750 00000016720 07503370341 017504 0 ustar rene rene /* * 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 ornull
* 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.java 0000664 0001750 0001750 00000001077 07503370341 017753 0 ustar rene rene /*
* (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.java 0000664 0001750 0001750 00000022530 07503370341 017441 0 ustar rene rene /*
* 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.
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.java 0000664 0001750 0001750 00000005053 07503370341 016624 0 ustar rene rene /*
* 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.java 0000664 0001750 0001750 00000001132 07503370341 020624 0 ustar rene rene /* * (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.java 0000664 0001750 0001750 00000001153 07503370341 020461 0 ustar rene rene /* * (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.java 0000644 0001750 0001750 00000020136 07503370341 016452 0 ustar rene rene /* * 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.java 0000664 0001750 0001750 00000002100 07503370341 021177 0 ustar rene rene /* * (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.java 0000664 0001750 0001750 00000001631 07503370341 023276 0 ustar rene rene /*
* (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.java 0000664 0001750 0001750 00000001275 07503370341 017425 0 ustar rene rene /*
* (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.java 0000664 0001750 0001750 00000007637 07503370341 017013 0 ustar rene rene /*
* 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.java 0000664 0001750 0001750 00000012706 07503370341 020334 0 ustar rene rene /*
* 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.java 0000664 0001750 0001750 00000001560 07503370341 017634 0 ustar rene rene /*
* 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.java 0000664 0001750 0001750 00000001755 07503370341 020316 0 ustar rene rene /*
* (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.java 0000664 0001750 0001750 00000001205 07503370341 020146 0 ustar rene rene /*
* (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.
|
||||||||
PREV NEXT |
|
||||||||
PREV NEXT |
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.html 0000664 0001750 0001750 00000215313 07503400056 015044 0 ustar rene rene
|
||||||||
PREV NEXT |
Condition
.LexicalUnit
.null
if media are currently unknown.null
if any.null
if any.Selector
true
if the attribute must have an
explicit value in the original document, false
otherwise.true
if the node should have the same node type
(for element, same namespaceURI and same localName).true
if the child node list only shows nodes of
the same type of the selector (only elements, only PIS, ...)null
if this is not a valid index.null
if this is not a valid index..part1:lang(fr)
attr(...)
.[simple] [restart="never"]
[languages|="fr"]
cm
.E > F
.example
simple[role="private"] .part1 H1#myId P:lang(fr).p1
counter
.counters
.deg
.E F
E + F
H1 animate
em
.ex
.grad
.Hz
.#myId
inherit
.in
.inherit
.kHz
.:lang(fr)
mm
.ms
.[values~="10"]
pc
.px
.pt
.:first-child
:link :visited :hover
:first-line
rad
.rect
.s
.(a)
(a + b)
(normal/none)
uri(...)
.A C D E F G I L M N O P S W
|
||||||||
PREV NEXT |
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.
|
||||||||
PREV NEXT |
Packages | |
org.w3c.css.sac | |
org.w3c.css.sac.helpers |
|
||||||||
PREV NEXT |
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.html 0000664 0001750 0001750 00000001136 07503400056 014741 0 ustar rene rene
|
||||||||
PREV PACKAGE NEXT PACKAGE |
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. |
|
||||||||
PREV PACKAGE NEXT PACKAGE |
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.html 0000664 0001750 0001750 00000022051 07503400056 020333 0 ustar rene rene
|
||||||||
PREV NEXT |
|
||||||||
PREV NEXT |
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.html 0000664 0001750 0001750 00000006414 07503400056 020473 0 ustar rene reneClasses InputSource |
Exceptions CSSException CSSParseException |
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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 |
public java.lang.String getLocalName()
NULL
if :
this attribute condition can match any attribute.
this attribute is a class attribute.
this attribute is an id attribute.
this attribute is a pseudo-class attribute.
public java.lang.String getNamespaceURI()
NULL
if :
public boolean getSpecified()
true
if the attribute must have an
explicit value in the original document, false
otherwise.public java.lang.String getValue()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000024456 07503400056 022205 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Selector.SAC_TEXT_NODE_SELECTOR
,
Selector.SAC_CDATA_SECTION_NODE_SELECTOR
,
Selector.SAC_COMMENT_NODE_SELECTOR
Method Summary | |
java.lang.String |
getData()
Returns the character data. |
Methods inherited from interface org.w3c.css.sac.Selector |
getSelectorType |
Method Detail |
public java.lang.String getData()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000025664 07503400056 021764 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Condition.SAC_AND_CONDITION
,
Condition.SAC_OR_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 |
public Condition getFirstCondition()
public Condition getSecondCondition()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000050154 07503400056 017736 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public static final short SAC_AND_CONDITION
.part1:lang(fr)
CombinatorCondition
public static final short SAC_ATTRIBUTE_CONDITION
[simple] [restart="never"]
AttributeCondition
public static final short SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION
[languages|="fr"]
AttributeCondition
public static final short SAC_CLASS_CONDITION
.example
AttributeCondition
public static final short SAC_CONTENT_CONDITION
ContentCondition
public static final short SAC_ID_CONDITION
#myId
AttributeCondition
public static final short SAC_LANG_CONDITION
:lang(fr)
LangCondition
public static final short SAC_NEGATIVE_CONDITION
NegativeCondition
public static final short SAC_ONE_OF_ATTRIBUTE_CONDITION
[values~="10"]
AttributeCondition
public static final short SAC_ONLY_CHILD_CONDITION
public static final short SAC_ONLY_TYPE_CONDITION
public static final short SAC_OR_CONDITION
CombinatorCondition
public static final short SAC_POSITIONAL_CONDITION
:first-child
PositionalCondition
public static final short SAC_PSEUDO_CLASS_CONDITION
:link :visited :hover
AttributeCondition
Method Detail |
public short getConditionType()
Condition
.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000025720 07503400056 021755 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Selector.SAC_CONDITIONAL_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 |
public Condition getCondition()
public SimpleSelector getSimpleSelector()
The simple selector can't be a
ConditionalSelector
.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000070526 07503400056 021273 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public CombinatorCondition createAndCondition(Condition first, Condition second) throws CSSException
first
- the first conditionsecond
- the second conditionCSSException
- if this exception is not supported.public AttributeCondition createAttributeCondition(java.lang.String localName, java.lang.String namespaceURI, boolean specified, java.lang.String value) throws CSSException
localName
- the localName of the attributenamespaceURI
- the namespace URI of the
attributespecified
- true
if the attribute
must be specified in the document.value
- the value of this attribute.CSSException
- if this exception is not supported.public AttributeCondition createBeginHyphenAttributeCondition(java.lang.String localName, java.lang.String namespaceURI, boolean specified, java.lang.String value) throws CSSException
localName
- the localName of the attributenamespaceURI
- the namespace URI of the
attributespecified
- true
if the attribute
must be specified in the document.value
- the value of this attribute.CSSException
- if this exception is not supported.public AttributeCondition createClassCondition(java.lang.String namespaceURI, java.lang.String value) throws CSSException
localName
- the localName of the attributenamespaceURI
- the namespace URI of the
attributespecified
- true
if the attribute
must be specified in the document.value
- the name of the class.CSSException
- if this exception is not supported.public ContentCondition createContentCondition(java.lang.String data) throws CSSException
data
- the data in the contentCSSException
- if this exception is not supported.public AttributeCondition createIdCondition(java.lang.String value) throws CSSException
value
- the value of the id.CSSException
- if this exception is not supported.public LangCondition createLangCondition(java.lang.String lang) throws CSSException
value
- the value of the language.CSSException
- if this exception is not supported.public NegativeCondition createNegativeCondition(Condition condition) throws CSSException
condition
- the conditionCSSException
- if this exception is not supported.public AttributeCondition createOneOfAttributeCondition(java.lang.String localName, java.lang.String namespaceURI, boolean specified, java.lang.String value) throws CSSException
localName
- the localName of the attributenamespaceURI
- the namespace URI of the
attributespecified
- true
if the attribute
must be specified in the document.value
- the value of this attribute.CSSException
- if this exception is not supported.public Condition createOnlyChildCondition() throws CSSException
CSSException
- if this exception is not supported.public Condition createOnlyTypeCondition() throws CSSException
CSSException
- if this exception is not supported.public CombinatorCondition createOrCondition(Condition first, Condition second) throws CSSException
first
- the first conditionsecond
- the second conditionCSSException
- if this exception is not supported.public PositionalCondition createPositionalCondition(int position, boolean typeNode, boolean type) throws CSSException
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).CSSException
- if this exception is not supported.public AttributeCondition createPseudoClassCondition(java.lang.String namespaceURI, java.lang.String value) throws CSSException
namespaceURI
- the namespace URI of the
attributevalue
- the name of the pseudo classCSSException
- if this exception is not supported.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000023727 07503400056 021277 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Condition.SAC_CONTENT_CONDITION
Method Summary | |
java.lang.String |
getData()
Returns the content. |
Methods inherited from interface org.w3c.css.sac.Condition |
getConditionType |
Method Detail |
public java.lang.String getData()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000025507 07503400057 021566 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Selector.SAC_DESCENDANT_SELECTOR
,
Selector.SAC_CHILD_SELECTOR
Method Summary | |
Selector |
getAncestorSelector() Returns the parent selector. |
SimpleSelector |
getSimpleSelector() |
Methods inherited from interface org.w3c.css.sac.Selector |
getSelectorType |
Method Detail |
public Selector getAncestorSelector()
public SimpleSelector getSimpleSelector()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000063605 07503400057 021072 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public void comment(java.lang.String text) throws CSSException
text
- The comment.CSSException
- Any CSS exception, possibly wrapping another exception.public void endDocument(InputSource source) throws CSSException
uri
- The URI of the style sheet.CSSException
- Any CSS exception, possibly wrapping another exception.public void endFontFace() throws CSSException
CSSException
- Any CSS exception, possibly wrapping another exception.public void endMedia(SACMediaList media) throws CSSException
media
- The intended destination media for style
information.CSSException
- Any CSS exception, possibly wrapping another exception.public void endPage(java.lang.String name, java.lang.String pseudo_page) throws CSSException
media
- The intended destination medium for style
information.pseudo_page
- the pseudo page (if any, null
otherwise)CSSException
- Any CSS exception, possibly wrapping another exception.public void endSelector(SelectorList selectors) throws CSSException
selectors
- All intended selectors for all
declarations.CSSException
- Any CSS exception, possibly wrapping another exception.public void ignorableAtRule(java.lang.String atRule) throws CSSException
at-rule
- The complete ignored at-rule.CSSException
- Any CSS exception, possibly wrapping another exception.public void importStyle(java.lang.String uri, SACMediaList media, java.lang.String defaultNamespaceURI) throws CSSException
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.CSSException
- Any CSS exception, possibly wrapping another exception.public void namespaceDeclaration(java.lang.String prefix, java.lang.String uri) throws CSSException
prefix
- null
if this is the default
namespaceuri
- The URI for this namespace.CSSException
- Any CSS exception, possibly wrapping another exception.public void property(java.lang.String name, LexicalUnit value, boolean important) throws CSSException
name
- the name of the property.value
- the value of the property. All whitespace
are stripped.important
- is this property important ?CSSException
- Any CSS exception, possibly wrapping another exception.public void startDocument(InputSource source) throws CSSException
uri
- The URI of the style sheet. @@TODO can be
NULL ! (inline style sheet)CSSException
- Any CSS exception, possibly wrapping another exception.public void startFontFace() throws CSSException
CSSException
- Any CSS exception, possibly wrapping another exception.public void startMedia(SACMediaList media) throws CSSException
media
- The intended destination media for style
information.CSSException
- Any CSS exception, possibly wrapping another exception.public void startPage(java.lang.String name, java.lang.String pseudo_page) throws CSSException
name
- the name of the page (if any, null
otherwise)pseudo_page
- the pseudo page (if any, null
otherwise)CSSException
- Any CSS exception, possibly wrapping another exception.public void startSelector(SelectorList selectors) throws CSSException
selectors
- All intended selectors for all
declarations.CSSException
- Any CSS exception, possibly wrapping another exception.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000026322 07503400057 021103 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Selector.SAC_ELEMENT_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 |
public java.lang.String getLocalName()
NULL
if this element selector can match any
element.
public java.lang.String getNamespaceURI()
NULL
if this element selector can match any
namespace.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000032013 07503400057 020372 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public void error(CSSParseException exception) throws CSSException
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.
exception
- The error information encapsulated in
a CSS parse exception.CSSException
- Any CSS exception, possibly wrapping another exception.CSSParseException
public void fatalError(CSSParseException exception) throws CSSException
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.
exception
- The error information encapsulated in
a CSS parse exception.CSSException
- Any CSS exception, possibly wrapping another exception.CSSParseException
public void warning(CSSParseException exception) throws CSSException
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.
exception
- The warning information encapsulated
in a CSS parse exception.CSSException
- Any CSS exception, possibly wrapping another exception.CSSParseException
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000023657 07503400057 020551 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Condition.SAC_LANG_CONDITION
Method Summary | |
java.lang.String |
getLang()
Returns the language |
Methods inherited from interface org.w3c.css.sac.Condition |
getConditionType |
Method Detail |
public java.lang.String getLang()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000142426 07503400057 020236 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 length em . |
static short |
SAC_EX
Relative length ex . |
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 |
public static final short SAC_ATTR
attr(...)
.
getStringValue()
public static final short SAC_CENTIMETER
cm
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_COUNTER_FUNCTION
counter
.
getFunctionName()
,
getParameters()
public static final short SAC_COUNTERS_FUNCTION
counters
.
getFunctionName()
,
getParameters()
public static final short SAC_DEGREE
deg
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_DIMENSION
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_EM
em
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_EX
ex
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_FUNCTION
getFunctionName()
,
getParameters()
public static final short SAC_GRADIAN
grad
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_HERTZ
Hz
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_IDENT
inherit
.
getStringValue()
public static final short SAC_INCH
in
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_INHERIT
inherit
.public static final short SAC_INTEGER
getIntegerValue()
public static final short SAC_KILOHERTZ
kHz
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_MILLIMETER
mm
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_MILLISECOND
ms
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_OPERATOR_COMMA
public static final short SAC_OPERATOR_EXP
public static final short SAC_OPERATOR_GE
public static final short SAC_OPERATOR_GT
public static final short SAC_OPERATOR_LE
public static final short SAC_OPERATOR_LT
public static final short SAC_OPERATOR_MINUS
public static final short SAC_OPERATOR_MOD
public static final short SAC_OPERATOR_MULTIPLY
public static final short SAC_OPERATOR_PLUS
public static final short SAC_OPERATOR_SLASH
public static final short SAC_OPERATOR_TILDE
public static final short SAC_PERCENTAGE
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_PICA
pc
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_PIXEL
px
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_POINT
pt
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_RADIAN
rad
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_REAL
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_RECT_FUNCTION
rect
.
getFunctionName()
,
getParameters()
public static final short SAC_RGBCOLOR
rgb(0, 0, 0)
and
#000
getFunctionName()
,
getParameters()
public static final short SAC_SECOND
s
.
getFloatValue()
,
getDimensionUnitText()
public static final short SAC_STRING_VALUE
getStringValue()
public static final short SAC_SUB_EXPRESSION
(a)
(a + b)
(normal/none)
getSubValues()
public static final short SAC_UNICODERANGE
public static final short SAC_URI
uri(...)
.
getStringValue()
Method Detail |
public java.lang.String getDimensionUnitText()
if this lexical unit represents a float, the dimension is an empty string.
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
public float getFloatValue()
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.
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
public java.lang.String getFunctionName()
SAC_COUNTER_FUNCTION
,
SAC_COUNTERS_FUNCTION
,
SAC_RECT_FUNCTION
, SAC_FUNCTION
,
SAC_RGBCOLOR
public int getIntegerValue()
SAC_INTEGER
public short getLexicalUnitType()
LexicalUnit
.public LexicalUnit getNextLexicalUnit()
null
if any.public LexicalUnit getParameters()
#000
is converted to rgb(0, 0, 0)
can
return null
if SAC_FUNCTION
.SAC_COUNTER_FUNCTION
,
SAC_COUNTERS_FUNCTION
,
SAC_RECT_FUNCTION
, SAC_FUNCTION
,
SAC_RGBCOLOR
public LexicalUnit getPreviousLexicalUnit()
null
if any.public java.lang.String getStringValue()
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(....)
.
SAC_URI
,
SAC_ATTR
,
SAC_IDENT
,
SAC_STRING_VALUE
,
@@TO BE DEFINED
public LexicalUnit getSubValues()
SAC_SUB_EXPRESSION
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public int getColumnNumber()
getLineNumber()
public int getLineNumber()
getColumnNumber()
public java.lang.String getURI()
The parser must resolve the URI fully before passing it to the application.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000024117 07503400057 021422 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Condition.SAC_NEGATIVE_CONDITION
Method Summary | |
Condition |
getCondition() Returns the condition. |
Methods inherited from interface org.w3c.css.sac.Condition |
getConditionType |
Method Detail |
public Condition getCondition()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000024236 07503400057 021256 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Selector.SAC_NEGATIVE_SELECTOR
Method Summary | |
SimpleSelector |
getSimpleSelector() Returns the simple selector. |
Methods inherited from interface org.w3c.css.sac.Selector |
getSelectorType |
Method Detail |
public SimpleSelector getSimpleSelector()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000062260 07503400057 017246 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public java.lang.String getParserVersion()
public boolean parsePriority(InputSource source) throws CSSException, java.io.IOException
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.public LexicalUnit parsePropertyValue(InputSource source) throws CSSException, java.io.IOException
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.public void parseRule(InputSource source) throws CSSException, java.io.IOException
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.public SelectorList parseSelectors(InputSource source) throws CSSException, java.io.IOException
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.public void parseStyleDeclaration(InputSource source) throws CSSException, java.io.IOException
styleValue
- The declaration.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.public void parseStyleSheet(InputSource source) throws CSSException, java.io.IOException
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.
source
- The input source for the top-level of the
CSS document.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.InputSource
,
parseStyleSheet(java.lang.String)
,
setDocumentHandler(org.w3c.css.sac.DocumentHandler)
,
setErrorHandler(org.w3c.css.sac.ErrorHandler)
public void parseStyleSheet(java.lang.String uri) throws CSSException, java.io.IOException
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.
uri
- The URI.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(InputSource)
public void setConditionFactory(ConditionFactory conditionFactory)
public void setDocumentHandler(DocumentHandler 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.
handler
- The document handler.DocumentHandler
public void setErrorHandler(ErrorHandler 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.
handler
- The error handler.ErrorHandler
,
CSSException
public void setLocale(java.util.Locale locale) throws CSSException
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.
locale
- A Java Locale object.CSSException
- Throws an exception (using the previous or default locale) if the
requested locale is not supported.CSSException
,
CSSParseException
public void setSelectorFactory(SelectorFactory selectorFactory)
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000026754 07503400057 022012 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Condition.SAC_POSITIONAL_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 |
public int getPosition()
A negative value means from the end of the child node list.
The child node list begins at 0.
public boolean getType()
true
if the node should have the same node type
(for element, same namespaceURI and same localName).public boolean getTypeNode()
true
if the child node list only shows nodes of
the same type of the selector (only elements, only PIS, ...)
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000025571 07503400057 024075 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This simple matches a processing instruction.
Selector.SAC_PROCESSING_INSTRUCTION_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 |
public java.lang.String getData()
public java.lang.String getTarget()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000017412 07503400057 020213 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public int getLength()
public java.lang.String item(int index)
null
if this is not a valid index.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000047715 07503400057 017602 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a selector.
Remarks: Not all the following selectors are supported (or will be supported) by CSS.
All examples are CSS2 compliant.
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 |
public static final short SAC_ANY_NODE_SELECTOR
SimpleSelector
public static final short SAC_CDATA_SECTION_NODE_SELECTOR
CharacterDataSelector
public static final short SAC_CHILD_SELECTOR
E > F
DescendantSelector
public static final short SAC_COMMENT_NODE_SELECTOR
CharacterDataSelector
public static final short SAC_CONDITIONAL_SELECTOR
simple[role="private"] .part1 H1#myId P:lang(fr).p1
ConditionalSelector
public static final short SAC_DESCENDANT_SELECTOR
E F
DescendantSelector
public static final short SAC_DIRECT_ADJACENT_SELECTOR
E + F
SiblingSelector
public static final short SAC_ELEMENT_NODE_SELECTOR
H1 animate
ElementSelector
public static final short SAC_NEGATIVE_SELECTOR
NegativeSelector
public static final short SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR
ProcessingInstructionSelector
public static final short SAC_PSEUDO_ELEMENT_SELECTOR
:first-line
ElementSelector
public static final short SAC_ROOT_NODE_SELECTOR
SimpleSelector
public static final short SAC_TEXT_NODE_SELECTOR
CharacterDataSelector
Method Detail |
public short getSelectorType()
Selector
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000064570 07503400057 021130 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public SimpleSelector createAnyNodeSelector() throws CSSException
CSSException
- If this selector is not supported.public CharacterDataSelector createCDataSectionSelector(java.lang.String data) throws CSSException
data
- the dataCSSException
- If this selector is not supported.public DescendantSelector createChildSelector(Selector parent, SimpleSelector child) throws CSSException
parent
- the parent selectorchild
- the child selectorCSSException
- If this selector is not supported.public CharacterDataSelector createCommentSelector(java.lang.String data) throws CSSException
data
- the dataCSSException
- If this selector is not supported.public ConditionalSelector createConditionalSelector(SimpleSelector selector, Condition condition) throws CSSException
selector
- a selector.condition
- a conditionCSSException
- If this selector is not supported.public DescendantSelector createDescendantSelector(Selector parent, SimpleSelector descendant) throws CSSException
parent
- the parent selectordescendant
- the descendant selectorCSSException
- If this selector is not supported.public SiblingSelector createDirectAdjacentSelector(short nodeType, Selector child, SimpleSelector directAdjacent) throws CSSException
nodeType
- the type of nodes in the siblings
list.child
- the child selectoradjacent
- the direct adjacent selectorCSSException
- If this selector is not supported.public ElementSelector createElementSelector(java.lang.String namespaceURI, java.lang.String tagName) throws CSSException
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.CSSException
- If this selector is not supported.public NegativeSelector createNegativeSelector(SimpleSelector selector) throws CSSException
selector
- a selector.CSSException
- If this selector is not supported.public ProcessingInstructionSelector createProcessingInstructionSelector(java.lang.String target, java.lang.String data) throws CSSException
target
- the targetdata
- the dataCSSException
- If this selector is not supported.public ElementSelector createPseudoElementSelector(java.lang.String namespaceURI, java.lang.String pseudoName) throws CSSException
pseudoName
- the pseudo element name.
NULL
if this element selector can match any pseudo
element.CSSException
- If this selector is not supported.public SimpleSelector createRootNodeSelector() throws CSSException
CSSException
- If this selector is not supported.public CharacterDataSelector createTextNodeSelector(java.lang.String data) throws CSSException
data
- the dataCSSException
- If this selector is not supported.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000020015 07503400057 020416 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The SelectorList interface provides the abstraction of an ordered collection of selectors, without defining or constraining how this collection is implemented.
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 |
public int getLength()
public Selector item(int index)
null
if this is not a valid index.
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000030477 07503400060 021101 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Selector.SAC_DIRECT_ADJACENT_SELECTOR
Field Summary | |
static short |
ANY_NODE
|
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 |
public static final short ANY_NODE
Method Detail |
public short getNodeType()
public Selector getSelector()
public SimpleSelector getSiblingSelector()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000022300 07503400060 020725 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is only for constraints on selectors.
A ConditionalSelector
can only accept a simple
selector or a negative selector.
Methods inherited from interface org.w3c.css.sac.Selector |
getSelectorType |
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000060555 07503400060 020271 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.css.sac.InputSource
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).
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 |
public InputSource()
setURI(java.lang.String)
,
setByteStream(java.io.InputStream)
,
setCharacterStream(java.io.Reader)
,
setEncoding(java.lang.String)
public InputSource(java.io.Reader characterStream)
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.
setURI(java.lang.String)
,
setByteStream(java.io.InputStream)
,
setCharacterStream(java.io.Reader)
public InputSource(java.lang.String uri)
The URI must be full resolved.
uri
- The URI.setURI(java.lang.String)
,
setByteStream(java.io.InputStream)
,
setEncoding(java.lang.String)
,
setCharacterStream(java.io.Reader)
Method Detail |
public java.io.InputStream getByteStream()
The getEncoding method will return the character encoding for this byte stream, or null if unknown.
getEncoding()
,
setByteStream(java.io.InputStream)
public java.io.Reader getCharacterStream()
setCharacterStream(java.io.Reader)
public java.lang.String getEncoding()
setByteStream(java.io.InputStream)
, getURI()
,
getByteStream()
public java.lang.String getMedia()
null
if media are currently unknown.public java.lang.String getTitle()
public java.lang.String getURI()
The getEncoding method will return the character encoding of the object pointed to, or null if unknown.
The URI will be fully resolved.
setURI(java.lang.String)
, getEncoding()
public void setByteStream(java.io.InputStream byteStream)
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.
byteStream
- A byte stream containing an CSS
document or other entity.setEncoding(java.lang.String)
,
getByteStream()
, getEncoding()
public void setCharacterStream(java.io.Reader characterStream)
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.
characterStream
- The character stream containing
the CSS document or other entity.getCharacterStream()
public void setEncoding(java.lang.String encoding)
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.
encoding
- A string describing the character
encoding.setURI(java.lang.String)
,
setByteStream(java.io.InputStream)
, getEncoding()
public void setMedia(java.lang.String media)
media
- A comma separated list with all
media.public void setTitle(java.lang.String title)
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 setURI(java.lang.String uri)
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.
uri
- The URI as a string.setEncoding(java.lang.String)
, getURI()
,
Locator.getURI()
,
CSSParseException.getURI()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000045773 07503400060 020325 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.w3c.css.sac.CSSException
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 |
protected short code
protected java.lang.Exception e
protected java.lang.String s
protected static final java.lang.String S_SAC_NOT_SUPPORTED_ERR
protected static final java.lang.String S_SAC_SYNTAX_ERR
protected static final java.lang.String S_SAC_UNSPECIFIED_ERR
public static final short SAC_NOT_SUPPORTED_ERR
public static final short SAC_SYNTAX_ERR
public static final short SAC_UNSPECIFIED_ERR
Constructor Detail |
public CSSException()
public CSSException(java.lang.Exception e)
a
- the embeded exception.public CSSException(short code)
a
- the embeded exception.public CSSException(short code, java.lang.String s, java.lang.Exception e)
code
- the specified code.e
- the embeded exception.public CSSException(java.lang.String s)
Method Detail |
public short getCode()
public java.lang.Exception getException()
public java.lang.String getMessage()
getMessage
in class
java.lang.Throwable
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000051405 07503400060 021305 0 ustar rene rene
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.w3c.css.sac.CSSException | +--org.w3c.css.sac.CSSParseException
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.
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 |
public CSSParseException(java.lang.String message, Locator locator)
This constructor is especially useful when an application is creating its own exception from within a DocumentHandler callback.
message
- The error or warning message.locator
- The locator object for the error or
warning.Locator
,
Parser.setLocale(java.util.Locale)
public CSSParseException(java.lang.String message, Locator locator, java.lang.Exception e)
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.
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 exceptionLocator
,
Parser.setLocale(java.util.Locale)
public CSSParseException(java.lang.String message, java.lang.String uri, int lineNumber, int columnNumber)
This constructor is most useful for parser writers.
the parser must resolve the URI fully before creating the exception.
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.Parser.setLocale(java.util.Locale)
public CSSParseException(java.lang.String message, java.lang.String uri, int lineNumber, int columnNumber, java.lang.Exception e)
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.
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.Parser.setLocale(java.util.Locale)
Method Detail |
public int getColumnNumber()
The first column in a line is position 1.
Locator.getColumnNumber()
public int getLineNumber()
Locator.getLineNumber()
public java.lang.String getURI()
The URI will be resolved fully.
Locator.getURI()
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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/ 0000775 0001750 0001750 00000000000 07503400060 016552 5 ustar rene rene sac-1.3.orig/doc/org/w3c/css/sac/helpers/package-summary.html 0000664 0001750 0001750 00000012174 07503400060 022533 0 ustar rene rene
|
||||||||
PREV PACKAGE NEXT PACKAGE |
Class Summary | |
ParserFactory |
|
||||||||
PREV PACKAGE NEXT PACKAGE |
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.html 0000664 0001750 0001750 00000012267 07503400060 022000 0 ustar rene rene
|
||||||||
PREV NEXT |
|
||||||||
PREV NEXT |
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.html 0000664 0001750 0001750 00000001501 07503400060 022120 0 ustar rene reneClasses ParserFactory |
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.css.sac.helpers.ParserFactory
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 |
public ParserFactory()
Method Detail |
public Parser makeParser() throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.NullPointerException, java.lang.ClassCastException
|
||||||||
PREV CLASS NEXT CLASS | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.html 0000664 0001750 0001750 00000014356 07503400060 016262 0 ustar rene rene
|
||||||||
PREV NEXT |
Package org.w3c.css.sac |
Class org.w3c.css.sac.CSSException implements Serializable |
Serialized Fields |
java.lang.String s
java.lang.Exception e
short code
Class org.w3c.css.sac.CSSParseException implements Serializable |
Serialized Fields |
java.lang.String uri
int lineNumber
int columnNumber
|
||||||||
PREV NEXT |
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-list 0000664 0001750 0001750 00000000050 07503371236 014565 0 ustar rene rene org.w3c.css.sac org.w3c.css.sac.helpers sac-1.3.orig/doc/help-doc.html 0000664 0001750 0001750 00000017177 07503400060 014665 0 ustar rene rene
|
||||||||
PREV NEXT |
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.
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:
- Interfaces (italic)
- Classes
- Exceptions
- Errors
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.
- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description
- Inner Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Detail
- Constructor Detail
- Method Detail
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 withjava.lang.Object
. The interfaces do not inherit fromjava.lang.Object
.
- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
This help file applies to API documentation generated using
the standard doclet.
|
||||||||
PREV NEXT |
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.css 0000664 0001750 0001750 00000002330 07503371236 015204 0 ustar rene rene /* 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.html 0000664 0001750 0001750 00000002204 07503400060 016111 0 ustar rene reneAll
Classes
Packages |
sac-1.3.orig/COPYRIGHT.html 0000664 0001750 0001750 00000007263 07503371435 014005 0 ustar rene rene
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
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:
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.jar 0000664 0001750 0001750 00000034276 07503372143 013014 0 ustar rene rene PK T, META-INF/ PK PK T, META-INF/MANIFEST.MFMLK-. K-*ϳR03r.JM,IMu )h8$&g)x%%dV(&jrr PK)H H PK sT, org/PK sT, org/w3c/PK T, org/w3c/css/PK T, org/w3c/css/sac/PK T, org/w3c/css/sac/helpers/PK ZT, + org/w3c/css/sac/helpers/ParserFactory.classS]o0=^?\ڎ 6:ڕ%PE%TBLHv7M oH(MPõ}9 }QV56Hc3[qQf> >fHU/ u$ZA$~WR&oeGh#5jRogMjuB>}ˁ Td8v9rT8T8TCf"gX!f]bv{Epa#{z^{DVUZigJHmG>[E<É%b(ȐX wo41mej%N!PD1DƊ"$ k3B alv82V =i;aJ@^wa2 Nw}7w!kLn-s`qPJu34!K E\-1Ad9RwFU)s9G=rۤ%)R:KPKxa PK ZT, ( 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*IO PK ZT, 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##_tQm΄D&x W43? i}y^=hn}͟Lk )#4!([-OhYNVS 3 gW^#),P8O\PH\RxpqMmw'>Pe?PK1-h 3 PK ZT, " 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}i