link start!

This commit is contained in:
cherubin
2026-03-17 13:31:18 -07:00
commit 08abe87cfb
5910 changed files with 386288 additions and 0 deletions
@@ -0,0 +1,11 @@
package org.w3c.css.sac;
public interface AttributeCondition extends Condition {
String getLocalName();
String getNamespaceURI();
boolean getSpecified();
String getValue();
}
@@ -0,0 +1,5 @@
package org.w3c.css.sac;
public interface CharacterDataSelector extends SimpleSelector {
String getData();
}
@@ -0,0 +1,7 @@
package org.w3c.css.sac;
public interface CombinatorCondition extends Condition {
Condition getFirstCondition();
Condition getSecondCondition();
}
+20
View File
@@ -0,0 +1,20 @@
package org.w3c.css.sac;
public interface Condition {
public static final short SAC_AND_CONDITION = (short) 0;
public static final short SAC_ATTRIBUTE_CONDITION = (short) 4;
public static final short SAC_BEGIN_HYPHEN_ATTRIBUTE_CONDITION = (short) 8;
public static final short SAC_CLASS_CONDITION = (short) 9;
public static final short SAC_CONTENT_CONDITION = (short) 13;
public static final short SAC_ID_CONDITION = (short) 5;
public static final short SAC_LANG_CONDITION = (short) 6;
public static final short SAC_NEGATIVE_CONDITION = (short) 2;
public static final short SAC_ONE_OF_ATTRIBUTE_CONDITION = (short) 7;
public static final short SAC_ONLY_CHILD_CONDITION = (short) 11;
public static final short SAC_ONLY_TYPE_CONDITION = (short) 12;
public static final short SAC_OR_CONDITION = (short) 1;
public static final short SAC_POSITIONAL_CONDITION = (short) 3;
public static final short SAC_PSEUDO_CLASS_CONDITION = (short) 10;
short getConditionType();
}
@@ -0,0 +1,31 @@
package org.w3c.css.sac;
public interface ConditionFactory {
CombinatorCondition createAndCondition(Condition condition, Condition condition2) throws CSSException;
AttributeCondition createAttributeCondition(String str, String str2, boolean z, String str3) throws CSSException;
AttributeCondition createBeginHyphenAttributeCondition(String str, String str2, boolean z, String str3) throws CSSException;
AttributeCondition createClassCondition(String str, String str2) throws CSSException;
ContentCondition createContentCondition(String str) throws CSSException;
AttributeCondition createIdCondition(String str) throws CSSException;
LangCondition createLangCondition(String str) throws CSSException;
NegativeCondition createNegativeCondition(Condition condition) throws CSSException;
AttributeCondition createOneOfAttributeCondition(String str, String str2, boolean z, String str3) throws CSSException;
Condition createOnlyChildCondition() throws CSSException;
Condition createOnlyTypeCondition() throws CSSException;
CombinatorCondition createOrCondition(Condition condition, Condition condition2) throws CSSException;
PositionalCondition createPositionalCondition(int i, boolean z, boolean z2) throws CSSException;
AttributeCondition createPseudoClassCondition(String str, String str2) throws CSSException;
}
@@ -0,0 +1,7 @@
package org.w3c.css.sac;
public interface ConditionalSelector extends SimpleSelector {
Condition getCondition();
SimpleSelector getSimpleSelector();
}
@@ -0,0 +1,5 @@
package org.w3c.css.sac;
public interface ContentCondition extends Condition {
String getData();
}
@@ -0,0 +1,7 @@
package org.w3c.css.sac;
public interface DescendantSelector extends Selector {
Selector getAncestorSelector();
SimpleSelector getSimpleSelector();
}
@@ -0,0 +1,33 @@
package org.w3c.css.sac;
public interface DocumentHandler {
void comment(String str) throws CSSException;
void endDocument(InputSource inputSource) throws CSSException;
void endFontFace() throws CSSException;
void endMedia(SACMediaList sACMediaList) throws CSSException;
void endPage(String str, String str2) throws CSSException;
void endSelector(SelectorList selectorList) throws CSSException;
void ignorableAtRule(String str) throws CSSException;
void importStyle(String str, SACMediaList sACMediaList, String str2) throws CSSException;
void namespaceDeclaration(String str, String str2) throws CSSException;
void property(String str, LexicalUnit lexicalUnit, boolean z) throws CSSException;
void startDocument(InputSource inputSource) throws CSSException;
void startFontFace() throws CSSException;
void startMedia(SACMediaList sACMediaList) throws CSSException;
void startPage(String str, String str2) throws CSSException;
void startSelector(SelectorList selectorList) throws CSSException;
}
@@ -0,0 +1,7 @@
package org.w3c.css.sac;
public interface ElementSelector extends SimpleSelector {
String getLocalName();
String getNamespaceURI();
}
@@ -0,0 +1,9 @@
package org.w3c.css.sac;
public interface ErrorHandler {
void error(CSSParseException cSSParseException) throws CSSException;
void fatalError(CSSParseException cSSParseException) throws CSSException;
void warning(CSSParseException cSSParseException) throws CSSException;
}
@@ -0,0 +1,5 @@
package org.w3c.css.sac;
public interface LangCondition extends Condition {
String getLang();
}
@@ -0,0 +1,67 @@
package org.w3c.css.sac;
public interface LexicalUnit {
public static final short SAC_ATTR = (short) 37;
public static final short SAC_CENTIMETER = (short) 19;
public static final short SAC_COUNTERS_FUNCTION = (short) 26;
public static final short SAC_COUNTER_FUNCTION = (short) 25;
public static final short SAC_DEGREE = (short) 28;
public static final short SAC_DIMENSION = (short) 42;
public static final short SAC_EM = (short) 15;
public static final short SAC_EX = (short) 16;
public static final short SAC_FUNCTION = (short) 41;
public static final short SAC_GRADIAN = (short) 29;
public static final short SAC_HERTZ = (short) 33;
public static final short SAC_IDENT = (short) 35;
public static final short SAC_INCH = (short) 18;
public static final short SAC_INHERIT = (short) 12;
public static final short SAC_INTEGER = (short) 13;
public static final short SAC_KILOHERTZ = (short) 34;
public static final short SAC_MILLIMETER = (short) 20;
public static final short SAC_MILLISECOND = (short) 31;
public static final short SAC_OPERATOR_COMMA = (short) 0;
public static final short SAC_OPERATOR_EXP = (short) 6;
public static final short SAC_OPERATOR_GE = (short) 10;
public static final short SAC_OPERATOR_GT = (short) 8;
public static final short SAC_OPERATOR_LE = (short) 9;
public static final short SAC_OPERATOR_LT = (short) 7;
public static final short SAC_OPERATOR_MINUS = (short) 2;
public static final short SAC_OPERATOR_MOD = (short) 5;
public static final short SAC_OPERATOR_MULTIPLY = (short) 3;
public static final short SAC_OPERATOR_PLUS = (short) 1;
public static final short SAC_OPERATOR_SLASH = (short) 4;
public static final short SAC_OPERATOR_TILDE = (short) 11;
public static final short SAC_PERCENTAGE = (short) 23;
public static final short SAC_PICA = (short) 22;
public static final short SAC_PIXEL = (short) 17;
public static final short SAC_POINT = (short) 21;
public static final short SAC_RADIAN = (short) 30;
public static final short SAC_REAL = (short) 14;
public static final short SAC_RECT_FUNCTION = (short) 38;
public static final short SAC_RGBCOLOR = (short) 27;
public static final short SAC_SECOND = (short) 32;
public static final short SAC_STRING_VALUE = (short) 36;
public static final short SAC_SUB_EXPRESSION = (short) 40;
public static final short SAC_UNICODERANGE = (short) 39;
public static final short SAC_URI = (short) 24;
String getDimensionUnitText();
float getFloatValue();
String getFunctionName();
int getIntegerValue();
short getLexicalUnitType();
LexicalUnit getNextLexicalUnit();
LexicalUnit getParameters();
LexicalUnit getPreviousLexicalUnit();
String getStringValue();
LexicalUnit getSubValues();
}
+9
View File
@@ -0,0 +1,9 @@
package org.w3c.css.sac;
public interface Locator {
int getColumnNumber();
int getLineNumber();
String getURI();
}
@@ -0,0 +1,5 @@
package org.w3c.css.sac;
public interface NegativeCondition extends Condition {
Condition getCondition();
}
@@ -0,0 +1,5 @@
package org.w3c.css.sac;
public interface NegativeSelector extends SimpleSelector {
SimpleSelector getSimpleSelector();
}
+32
View File
@@ -0,0 +1,32 @@
package org.w3c.css.sac;
import java.io.IOException;
import java.util.Locale;
public interface Parser {
String getParserVersion();
boolean parsePriority(InputSource inputSource) throws CSSException, IOException;
LexicalUnit parsePropertyValue(InputSource inputSource) throws CSSException, IOException;
void parseRule(InputSource inputSource) throws CSSException, IOException;
SelectorList parseSelectors(InputSource inputSource) throws CSSException, IOException;
void parseStyleDeclaration(InputSource inputSource) throws CSSException, IOException;
void parseStyleSheet(String str) throws CSSException, IOException;
void parseStyleSheet(InputSource inputSource) throws CSSException, IOException;
void setConditionFactory(ConditionFactory conditionFactory);
void setDocumentHandler(DocumentHandler documentHandler);
void setErrorHandler(ErrorHandler errorHandler);
void setLocale(Locale locale) throws CSSException;
void setSelectorFactory(SelectorFactory selectorFactory);
}
@@ -0,0 +1,9 @@
package org.w3c.css.sac;
public interface PositionalCondition extends Condition {
int getPosition();
boolean getType();
boolean getTypeNode();
}
@@ -0,0 +1,7 @@
package org.w3c.css.sac;
public interface ProcessingInstructionSelector extends SimpleSelector {
String getData();
String getTarget();
}
@@ -0,0 +1,7 @@
package org.w3c.css.sac;
public interface SACMediaList {
int getLength();
String item(int i);
}
+19
View File
@@ -0,0 +1,19 @@
package org.w3c.css.sac;
public interface Selector {
public static final short SAC_ANY_NODE_SELECTOR = (short) 1;
public static final short SAC_CDATA_SECTION_NODE_SELECTOR = (short) 6;
public static final short SAC_CHILD_SELECTOR = (short) 11;
public static final short SAC_COMMENT_NODE_SELECTOR = (short) 8;
public static final short SAC_CONDITIONAL_SELECTOR = (short) 0;
public static final short SAC_DESCENDANT_SELECTOR = (short) 10;
public static final short SAC_DIRECT_ADJACENT_SELECTOR = (short) 12;
public static final short SAC_ELEMENT_NODE_SELECTOR = (short) 4;
public static final short SAC_NEGATIVE_SELECTOR = (short) 3;
public static final short SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR = (short) 7;
public static final short SAC_PSEUDO_ELEMENT_SELECTOR = (short) 9;
public static final short SAC_ROOT_NODE_SELECTOR = (short) 2;
public static final short SAC_TEXT_NODE_SELECTOR = (short) 5;
short getSelectorType();
}
@@ -0,0 +1,29 @@
package org.w3c.css.sac;
public interface SelectorFactory {
SimpleSelector createAnyNodeSelector() throws CSSException;
CharacterDataSelector createCDataSectionSelector(String str) throws CSSException;
DescendantSelector createChildSelector(Selector selector, SimpleSelector simpleSelector) throws CSSException;
CharacterDataSelector createCommentSelector(String str) throws CSSException;
ConditionalSelector createConditionalSelector(SimpleSelector simpleSelector, Condition condition) throws CSSException;
DescendantSelector createDescendantSelector(Selector selector, SimpleSelector simpleSelector) throws CSSException;
SiblingSelector createDirectAdjacentSelector(short s, Selector selector, SimpleSelector simpleSelector) throws CSSException;
ElementSelector createElementSelector(String str, String str2) throws CSSException;
NegativeSelector createNegativeSelector(SimpleSelector simpleSelector) throws CSSException;
ProcessingInstructionSelector createProcessingInstructionSelector(String str, String str2) throws CSSException;
ElementSelector createPseudoElementSelector(String str, String str2) throws CSSException;
SimpleSelector createRootNodeSelector() throws CSSException;
CharacterDataSelector createTextNodeSelector(String str) throws CSSException;
}
@@ -0,0 +1,7 @@
package org.w3c.css.sac;
public interface SelectorList {
int getLength();
Selector item(int i);
}
@@ -0,0 +1,11 @@
package org.w3c.css.sac;
public interface SiblingSelector extends Selector {
public static final short ANY_NODE = (short) 201;
short getNodeType();
Selector getSelector();
SimpleSelector getSiblingSelector();
}
@@ -0,0 +1,4 @@
package org.w3c.css.sac;
public interface SimpleSelector extends Selector {
}