001/*
002 * Copyright (c) 2000 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 */
012
013package org.w3c.dom.css;
014
015import org.w3c.dom.DOMImplementation;
016import org.w3c.dom.DOMException;
017
018/**
019 *  This interface allows the DOM user to create a <code>CSSStyleSheet</code>
020 * outside the context of a document. There is no way to associate the new
021 * <code>CSSStyleSheet</code> with a document in DOM Level 2.
022 * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113'>Document Object Model (DOM) Level 2 Style Specification</a>.
023 * @since DOM   Level 2
024 */
025public interface DOMImplementationCSS extends DOMImplementation {
026    /**
027     * Creates a new <code>CSSStyleSheet</code>.
028     * @param title  The advisory title. See also the  section.
029     * @param media  The comma-separated list of media associated with the
030     *   new style sheet. See also the  section.
031     * @return A new CSS style sheet.
032     * @exception DOMException
033     *    SYNTAX_ERR: Raised if the specified media string value has a syntax
034     *   error and is unparsable.
035     */
036    public CSSStyleSheet createCSSStyleSheet(String title,
037                                             String media)
038                                             throws DOMException;
039
040}