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
11 * $Id: IDeclaration.java,v 1.1 2004-09-02 18:07:11 jsurfer Exp $
14 package net.sourceforge.phpeclipse.css.core.model;
16 import net.sourceforge.phpeclipse.core.model.ISourceReference;
19 * Represents a single CSS declaration.
21 public interface IDeclaration extends ISourceReference {
24 * Returns the rule that contains this declaration.
26 * @return the rule containing this declaration, or <code>null</code> if the
27 * declaration doesn't belong to a specific rule
32 * Returns the source reference representing the property.
34 * @return the property
36 ISourceReference getProperty();
39 * Returns the source reference consisting of the value assigned to the
44 ISourceReference getValue();
47 * Returns the source reference representing the priority (mostly, that will
48 * be "<code>!important</code>") of the declaration, or <code>null</code>
49 * if no special priority was specified.
51 * @return the priority
53 ISourceReference getPriority();