blob: 9cca9ff436d213bdbc751dbd2f30c679577e77ca [file] [log] [blame]
david_williamscfdb2cd2004-11-11 08:37:49 +00001/*******************************************************************************
2 * Copyright (c) 2001, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Jens Lukowski/Innoopract - initial renaming/restructuring
11 *
12 *******************************************************************************/
david_williams3bcfe392005-04-13 04:49:36 +000013package org.eclipse.wst.sse.core.internal.validate;
david_williamscfdb2cd2004-11-11 08:37:49 +000014
15
16
17/**
18 */
19public class ValidationMessage {
20 public static final int ERROR = 1;
21 public static final int INFORMATION = 3;
22 public static final int WARNING = 2;
23 private int length;
24
25 private String message;
26 private int offset;
27 private int severity;
28
29 /**
30 */
31 public ValidationMessage(String message, int offset, int severity) {
32 this(message, offset, 0, severity);
33 }
34
35 /**
36 */
37 public ValidationMessage(String message, int offset, int length, int severity) {
38 super();
39
40 this.message = message;
41 this.offset = offset;
42 this.length = length;
43 this.severity = severity;
44 }
45
46 /**
47 */
48 public int getLength() {
49 return this.length;
50 }
51
52 /**
53 */
54 public String getMessage() {
55 return this.message;
56 }
57
58 /**
59 */
60 public int getOffset() {
61 return this.offset;
62 }
63
64 /**
65 */
66 public int getSeverity() {
67 return this.severity;
68 }
69}