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: IStyleSheet.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;
17 import net.sourceforge.phpeclipse.css.core.parser.IProblemCollector;
18 import net.sourceforge.phpeclipse.css.core.parser.LexicalErrorException;
19 import net.sourceforge.phpeclipse.css.core.parser.SyntaxErrorException;
21 import org.eclipse.core.runtime.IAdaptable;
26 public interface IStyleSheet
27 extends IAdaptable, ISourceReference {
30 * Returns the rule at the specified offset into the document.
32 * @param offset the offset
33 * @return the rule at the offset, or <code>null</code> if no rule is found
36 IRule getRuleAt(int offset);
39 * Returns the list of rules in the order they have been defined in the
42 * @return the list of rules contained by the style sheet
46 void reconcile(IProblemCollector problemCollector)
47 throws LexicalErrorException, SyntaxErrorException;