1. /*
  2. * Copyright (c) 2000 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE.
  10. * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11. */
  12. package org.w3c.dom.css;
  13. import org.w3c.dom.DOMImplementation;
  14. import org.w3c.dom.DOMException;
  15. /**
  16. * This interface allows the DOM user to create a <code>CSSStyleSheet</code>
  17. * outside the context of a document. There is no way to associate the new
  18. * <code>CSSStyleSheet</code> with a document in DOM Level 2.
  19. * <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>.
  20. * @since DOM Level 2
  21. */
  22. public interface DOMImplementationCSS extends DOMImplementation {
  23. /**
  24. * Creates a new <code>CSSStyleSheet</code>.
  25. * @param title The advisory title. See also the section.
  26. * @param media The comma-separated list of media associated with the new
  27. * style sheet. See also the section.
  28. * @return A new CSS style sheet.
  29. * @exception DOMException
  30. * SYNTAX_ERR: Raised if the specified media string value has a syntax
  31. * error and is unparsable.
  32. */
  33. public CSSStyleSheet createCSSStyleSheet(String title,
  34. String media)
  35. throws DOMException;
  36. }