All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.vutbr.web.domassign.StyleMap Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.1
Show newest version
/**
 * 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();
	}
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy