View Javadoc
1 /* 2 * Copyright (c) 2003 3 * Information Desire GmbH 4 * All rights reserved. 5 */ 6 package com.infodesire.infobit.external; 7 8 /*** 9 * This class represents diagnostic messages yield from the process to import a 10 * collection of infobits. 11 * 12 * @author peter2 13 * @created 1. September 2003 14 * @version $Revision: 1.1 $ 15 */ 16 public class ImportMessage { 17 18 /*** 19 * The referred {@link #getSysteID system ID}, or <code>null</code> if not 20 * applicable 21 */ 22 private String _systemID; 23 24 /*** 25 * The {@link #getLine} of the referenced location 26 */ 27 private int _line; 28 29 /*** 30 * The {@link #getColumn start column} of the referenced location 31 */ 32 private int _column; 33 34 /*** 35 * The {@link #getMessage message content} 36 */ 37 private String _message; 38 39 40 /*** 41 * Initializes an instance from its properties. 42 * 43 * @param systemID Description of Parameter 44 * @param line Description of Parameter 45 * @param col Description of Parameter 46 * @param message Description of Parameter 47 */ 48 public ImportMessage(String systemID, int line, int col, String message) { 49 _systemID = systemID; 50 _line = line; 51 _column = col; 52 _message = message; 53 } 54 55 56 /*** 57 * Initializes an instance for which location information is not available 58 * 59 * @param message Description of Parameter 60 */ 61 public ImportMessage(String message) { 62 _message = message; 63 } 64 65 66 /*** 67 * Gets the textual message content. 68 * 69 * @return The Message value 70 */ 71 public String getMessage() { 72 return _message; 73 } 74 75 76 /*** 77 * Yields the system ID of the external entity which contains the location 78 * to which the message applies. 79 * 80 * @return The SystemID value 81 */ 82 public String getSystemID() { 83 return _systemID; 84 } 85 86 87 /*** 88 * Yields the line of the location to which the message applies. 89 * 90 * @return line The line number, starting from 1, or 0 if not applicable 91 */ 92 public int getLine() { 93 return _line; 94 } 95 96 97 /*** 98 * Defines the message. 99 * 100 * @param message The diagnostics message 101 */ 102 public void setMessage(String message) { 103 _message = message; 104 } 105 106 107 /*** 108 * Defines the system ID of the external entity which contains the location 109 * to which the message applies. 110 * 111 * @param systemID The new SystemID value 112 */ 113 public void setSystemID(String systemID) { 114 _systemID = systemID; 115 } 116 117 118 /*** 119 * Defines the line of the location to which the message applies. 120 * 121 * @param line The line number, starting from 1 122 */ 123 public void setLine(int line) { 124 _line = line; 125 } 126 127 } 128

This page was automatically generated by Maven