
cz.vutbr.web.css.TermFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jstyleparser Show documentation
Show all versions of jstyleparser Show documentation
jStyleParser is a CSS parser written in Java. It has its own application interface that is designed to allow an efficient CSS processing in Java and mapping the values to the Java data types. It parses CSS 2.1 style sheets into structures that can be efficiently assigned to DOM elements. It is intended be the primary CSS parser for the CSSBox library. While handling errors, it is user agent conforming according to the CSS specification.
package cz.vutbr.web.css;
import java.net.URL;
import cz.vutbr.web.css.TermNumeric.Unit;
public interface TermFactory {
TermAngle createAngle(Float value);
TermAngle createAngle(String value, Unit unit, int unary);
TermColor createColor(TermIdent ident);
TermColor createColor(String hash);
TermColor createColor(int r, int g, int b);
TermColor createColor(TermFunction function);
TermFrequency createFrequency(Float value);
TermFrequency createFrequency(String value, Unit unit, int unary);
TermExpression createExpression(String expr);
TermFunction createFunction();
TermIdent createIdent(String value);
TermIdent createIdent(String value, boolean dash);
TermInteger createInteger(Integer value);
TermInteger createInteger(String value, int unary);
TermLength createLength(Float value);
TermLength createLength(Float value, Unit unit);
TermLength createLength(String value, Unit unit, int unary);
TermList createList();
TermList createList(int initialSize);
TermNumber createNumber(Float value);
TermNumber createNumber(String value, int unary);
TermNumeric> createNumeric(String value, int unary);
TermNumeric createDimension(String value, int unary);
TermPair createPair(K key, V value);
TermPercent createPercent(Float value);
TermPercent createPercent(String value, int unary);
TermResolution createResolution(Float value);
TermResolution createResolution(String value, Unit unit, int unary);
TermString createString(String value);
Term createTerm(V value);
TermTime createTime(Float value);
TermTime createTime(String value, Unit unit, int unary);
TermURI createURI(String value);
TermURI createURI(String value, URL base);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy