/* * Copyright (c) 2003-2004 Christopher Lenz and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * Christopher Lenz - initial API and implementation * * $Id: AtRule.java,v 1.1 2004-09-02 18:07:12 jsurfer Exp $ */ package net.sourceforge.phpeclipse.css.core.internal.model; import net.sourceforge.phpeclipse.core.model.ISourceReference; import net.sourceforge.phpeclipse.css.core.model.IAtRule; import net.sourceforge.phpeclipse.css.core.model.IRule; import net.sourceforge.phpeclipse.css.core.model.IStyleSheet; import org.eclipse.jface.text.IDocument; /** * */ public class AtRule extends AbstractRule implements IAtRule { // Instance Variables ------------------------------------------------------ private ISourceReference name; private ISourceReference value; // Constructors ------------------------------------------------------------ /** * Constructor. * * @param document The document that contains the rule */ public AtRule(IDocument document, IStyleSheet styleSheet) { this(document, styleSheet, null); } /** * Constructor. * * @param document The document that contains the rule * @param parent The parent rule, or null if the rule is at top * level */ public AtRule(IDocument document, IStyleSheet styleSheet, IRule parent) { super(document, styleSheet, parent); } // IAtRule Implementation -------------------------------------------------- /* * @see IAtRule#getName() */ public final ISourceReference getName() { return name; } /* * @see IAtRule#getValue() */ public final ISourceReference getValue() { return value; } // Public Methods -------------------------------------------------- public final void setName(ISourceReference name) { this.name = name; } public final void setValue(ISourceReference value) { this.value = value; } }