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: IProblem.java,v 1.1 2004-09-02 18:07:12 jsurfer Exp $
14 package net.sourceforge.phpeclipse.css.core.parser;
19 public interface IProblem {
22 * Returns the problem identifier.
24 * @return the problem id
29 * Returns a localized, human-readable message string which describes the
32 * @return the problem message
37 * Returns the file name in which the problem was found.
39 * @return the file name in which the problem was found
41 String getOriginatingFileName();
44 * Returns the end position of the problem (inclusive).
46 * @return the end position of the problem), or -1 if unknown
51 * Returns the line number of the source where the problem begins.
53 * @return the line number of the source where the problem begins
55 int getSourceLineNumber();
58 * Returns the start position of the problem (inclusive).
60 * @return the start position of the problem, or -1 if unknown
65 * Returns whether the problem is an error.
67 * @return <code>true</code> if the problem is an error, <code>false</code>
73 * Returns whether the problem is a warning.
75 * @return <code>true</code> if the problem is a warning, <code>false</code>