intial source from ttp://www.sf.net/projects/wdte
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.css.core / src / net / sourceforge / phpeclipse / css / core / model / IDeclaration.java
1 /*
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
7  * 
8  * Contributors:
9  *     Christopher Lenz - initial API
10  * 
11  * $Id: IDeclaration.java,v 1.1 2004-09-02 18:07:11 jsurfer Exp $
12  */
13
14 package net.sourceforge.phpeclipse.css.core.model;
15
16 import net.sourceforge.phpeclipse.core.model.ISourceReference;
17
18 /**
19  * Represents a single CSS declaration.
20  */
21 public interface IDeclaration extends ISourceReference {
22
23         /**
24          * Returns the rule that contains this declaration.
25          * 
26          * @return the rule containing this declaration, or <code>null</code> if the
27          *         declaration doesn't belong to a specific rule
28          */
29         IRule getRule();
30
31         /**
32          * Returns the source reference representing the property.
33          * 
34          * @return the property
35          */
36         ISourceReference getProperty();
37
38         /**
39          * Returns the source reference consisting of the value assigned to the
40          * property.
41          * 
42          * @return the value
43          */
44         ISourceReference getValue();
45
46         /**
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.
50          * 
51          * @return the priority
52          */
53         ISourceReference getPriority();
54
55 }