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