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 and implementation
11 * $Id: DefaultProblem.java,v 1.1 2004-09-02 18:26:55 jsurfer Exp $
14 package net.sourceforge.phpeclipse.xml.core.internal.parser;
16 import net.sourceforge.phpeclipse.xml.core.parser.IProblem;
18 public class DefaultProblem implements IProblem {
20 // Instance Variables ------------------------------------------------------
22 private String message;
23 private int sourceStart;
24 private int sourceEnd;
25 private int sourceLineNumber;
26 private boolean error;
28 // Constructors ------------------------------------------------------------
30 public DefaultProblem(String message, int sourceStart, int sourceEnd,
31 int sourceLineNumber, boolean error) {
32 this.message = message;
33 this.sourceStart = sourceStart;
34 this.sourceEnd = sourceEnd;
35 this.sourceLineNumber = sourceLineNumber;
39 // IProblem Implementation -------------------------------------------------
42 * @see IProblem#getMessage()
44 public String getMessage() {
49 * @see IProblem#getSourceStart()
51 public int getSourceStart() {
56 * @see IProblem#getSourceEnd()
58 public int getSourceEnd() {
63 * @see IProblem#getSourceLineNumber()
65 public int getSourceLineNumber() {
66 return sourceLineNumber;
70 * @see IProblem#isError()
72 public boolean isError() {
77 * @see IProblem#isWarning()
79 public boolean isWarning() {