2 * Copyright (c) 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.2 2006-10-21 23:13:43 pombredanne Exp $
14 package net.sourceforge.phpeclipse.xml.core.parser;
19 public interface IProblem {
22 * Returns a localized, human-readable message string which describes the
25 * @return the problem message
30 * Returns the start position of the problem (inclusive).
32 * @return the start position of the problem, or -1 if unknown
37 * Returns the end position of the problem (inclusive).
39 * @return the end position of the problem), or -1 if unknown
44 * Returns the line number of the source where the problem begins.
46 * @return the line number of the source where the problem begins
48 int getSourceLineNumber();
51 * Returns whether the problem is an error.
53 * @return <code>true</code> if the problem is an error,
54 * <code>false</code> otherwise
59 * Returns whether the problem is a warning.
61 * @return <code>true</code> if the problem is a warning,
62 * <code>false</code> otherwise