cz.vutbr.web.domassign.StyleMap 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.
/**
* StyleMap.java
*
* Created on 22.1.2010, 16:06:07 by burgetr
*/
package cz.vutbr.web.domassign;
import org.w3c.dom.Element;
import cz.vutbr.web.css.CSSFactory;
import cz.vutbr.web.css.NodeData;
import cz.vutbr.web.css.Selector.PseudoElementType;
/**
* This is a map that assigns a style to a particular elements and moreover, it
* gathers the information about the pseudo elements.
*
* @author burgetr
*/
public class StyleMap extends MultiMap
{
public StyleMap(int size)
{
super(size);
}
@Override
protected NodeData createDataInstance()
{
return CSSFactory.createNodeData();
}
}