| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Error |
|
| 1.0;1 |
| 1 | /* | |
| 2 | Copyright 2006 Paul Evans | |
| 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | you may not use this file except in compliance with the License. | |
| 6 | You may obtain a copy of the License at | |
| 7 | ||
| 8 | http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 | Unless required by applicable law or agreed to in writing, software | |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | See the License for the specific language governing permissions and | |
| 14 | limitations under the License. | |
| 15 | */ | |
| 16 | package us.paulevans.basicxslt; | |
| 17 | ||
| 18 | /** | |
| 19 | * Models an error message including a line and column number | |
| 20 | * @author pevans | |
| 21 | * | |
| 22 | */ | |
| 23 | public class Error { | |
| 24 | ||
| 25 | private int column; | |
| 26 | private int line; | |
| 27 | private String message; | |
| 28 | ||
| 29 | /** | |
| 30 | * Constructor | |
| 31 | * @param aColumn | |
| 32 | * @param aLine | |
| 33 | * @param aMessage | |
| 34 | */ | |
| 35 | 3 | public Error(int aColumn, int aLine, String aMessage) { |
| 36 | 3 | column = aColumn; |
| 37 | 3 | line = aLine; |
| 38 | 3 | message = aMessage; |
| 39 | 3 | } |
| 40 | ||
| 41 | /** | |
| 42 | * Getter | |
| 43 | * @return | |
| 44 | */ | |
| 45 | public int getColumn() { | |
| 46 | 1 | return column; |
| 47 | } | |
| 48 | ||
| 49 | /** | |
| 50 | * Getter | |
| 51 | * @return | |
| 52 | */ | |
| 53 | public int getLine() { | |
| 54 | 1 | return line; |
| 55 | } | |
| 56 | ||
| 57 | /** | |
| 58 | * Getter | |
| 59 | * @return | |
| 60 | */ | |
| 61 | public String getMessage() { | |
| 62 | 1 | return message; |
| 63 | } | |
| 64 | } |