nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2004 IBM Corporation and others. |
| 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.eclipse.org/legal/epl-v10.html |
| 7 | * |
| 8 | * Contributors: |
| 9 | * IBM Corporation - initial API and implementation |
| 10 | *******************************************************************************/ |
| 11 | package org.eclipse.wst.css.core.internal.document; |
| 12 | |
| 13 | |
| 14 | |
david_williams | 63219a2 | 2005-04-10 01:59:51 +0000 | [diff] [blame] | 15 | import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleDeclaration; |
nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 16 | import org.w3c.dom.css.CSSStyleSheet; |
| 17 | |
| 18 | |
| 19 | /** |
| 20 | * |
| 21 | */ |
| 22 | public class DOMCSSImpl { |
| 23 | |
| 24 | /** |
| 25 | * DOMCSSImpl constructor comment. |
| 26 | */ |
| 27 | public DOMCSSImpl() { |
| 28 | super(); |
| 29 | } |
| 30 | |
nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 31 | public static ICSSStyleDeclaration createCSSStyleDeclaration() throws org.w3c.dom.DOMException { |
| 32 | CSSStyleDeclarationImpl document = new CSSStyleDeclarationImpl(true); |
| 33 | |
| 34 | return document; |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * @return org.w3c.dom.css.CSSStyleSheet |
| 39 | * @param title |
| 40 | * java.lang.String |
| 41 | * @param media |
| 42 | * java.lang.String |
| 43 | * @exception org.w3c.dom.DOMException |
| 44 | * The exception description. |
| 45 | */ |
| 46 | public static CSSStyleSheet createCSSStyleSheet(String title, String media) throws org.w3c.dom.DOMException { |
| 47 | return new CSSStyleSheetImpl(); |
| 48 | } |
| 49 | } |