/* * Copyright (c) 2003-2004 Christopher Lenz and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * Christopher Lenz - initial API and implementation * * $Id: DefaultProblem.java,v 1.1 2004-09-02 18:07:13 jsurfer Exp $ */ package net.sourceforge.phpeclipse.css.core.internal.parser; import net.sourceforge.phpeclipse.css.core.parser.IProblem; public class DefaultProblem implements IProblem { // Instance Variables ------------------------------------------------------ private String id; private String message; private String originatingFileName; private int sourceStart; private int sourceEnd; private int sourceLineNumber; private boolean error; // Constructors ------------------------------------------------------------ public DefaultProblem(String id, String message, String originatingFileName, int sourceStart, int sourceEnd, int sourceLineNumber, boolean error) { this.id = id; this.message = message; this.originatingFileName = originatingFileName; this.sourceStart = sourceStart; this.sourceEnd = sourceEnd; this.sourceLineNumber = sourceLineNumber; this.error = error; } // IProblem Implementation ------------------------------------------------- /* * @see IProblem#getID() */ public String getId() { return id; } /* * @see IProblem#getMessage() */ public String getMessage() { return message; } /* * @see IProblem#getOriginatingFileName() */ public String getOriginatingFileName() { return originatingFileName; } /* * @see IProblem#getSourceEnd() */ public int getSourceEnd() { return sourceEnd; } /* * @see IProblem#getSourceLineNumber() */ public int getSourceLineNumber() { return sourceLineNumber; } /* * @see IProblem#getSourceStart() */ public int getSourceStart() { return sourceStart; } /* * @see IProblem#isError() */ public boolean isError() { return error; } /* * @see IProblem#isWarning() */ public boolean isWarning() { return !error; } }