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:07:13 jsurfer Exp $
14 package net.sourceforge.phpeclipse.css.core.internal.parser;
16 import net.sourceforge.phpeclipse.css.core.parser.IProblem;
18 public class DefaultProblem implements IProblem {
20 // Instance Variables ------------------------------------------------------
24 private String message;
26 private String originatingFileName;
28 private int sourceStart;
30 private int sourceEnd;
32 private int sourceLineNumber;
34 private boolean error;
36 // Constructors ------------------------------------------------------------
38 public DefaultProblem(String id, String message, String originatingFileName,
39 int sourceStart, int sourceEnd, int sourceLineNumber, boolean error) {
41 this.message = message;
42 this.originatingFileName = originatingFileName;
43 this.sourceStart = sourceStart;
44 this.sourceEnd = sourceEnd;
45 this.sourceLineNumber = sourceLineNumber;
49 // IProblem Implementation -------------------------------------------------
52 * @see IProblem#getID()
54 public String getId() {
59 * @see IProblem#getMessage()
61 public String getMessage() {
66 * @see IProblem#getOriginatingFileName()
68 public String getOriginatingFileName() {
69 return originatingFileName;
73 * @see IProblem#getSourceEnd()
75 public int getSourceEnd() {
80 * @see IProblem#getSourceLineNumber()
82 public int getSourceLineNumber() {
83 return sourceLineNumber;
87 * @see IProblem#getSourceStart()
89 public int getSourceStart() {
94 * @see IProblem#isError()
96 public boolean isError() {
101 * @see IProblem#isWarning()
103 public boolean isWarning() {