2 * Copyright (c) 2003-2004 Christopher Lenz and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * Christopher Lenz - initial API and implementation
11 * $Id: AtRule.java,v 1.1 2004-09-02 18:07:12 jsurfer Exp $
14 package net.sourceforge.phpeclipse.css.core.internal.model;
16 import net.sourceforge.phpeclipse.core.model.ISourceReference;
17 import net.sourceforge.phpeclipse.css.core.model.IAtRule;
18 import net.sourceforge.phpeclipse.css.core.model.IRule;
19 import net.sourceforge.phpeclipse.css.core.model.IStyleSheet;
21 import org.eclipse.jface.text.IDocument;
26 public class AtRule extends AbstractRule
29 // Instance Variables ------------------------------------------------------
31 private ISourceReference name;
33 private ISourceReference value;
35 // Constructors ------------------------------------------------------------
40 * @param document The document that contains the rule
42 public AtRule(IDocument document, IStyleSheet styleSheet) {
43 this(document, styleSheet, null);
49 * @param document The document that contains the rule
50 * @param parent The parent rule, or <code>null</code> if the rule is at top
53 public AtRule(IDocument document, IStyleSheet styleSheet, IRule parent) {
54 super(document, styleSheet, parent);
57 // IAtRule Implementation --------------------------------------------------
60 * @see IAtRule#getName()
62 public final ISourceReference getName() {
67 * @see IAtRule#getValue()
69 public final ISourceReference getValue() {
73 // Public Methods --------------------------------------------------
75 public final void setName(ISourceReference name) {
79 public final void setValue(ISourceReference value) {