public class CSVMessageDescriptor extends Object implements Comparable<CSVMessageDescriptor>
Constructor and Description |
---|
CSVMessageDescriptor()
Default constructor
|
CSVMessageDescriptor(CSVMessageLevel messageLevel,
int nLineNumber,
String strMessageContent)
Creates a new CSVMessageDescriptor with every attributes initialized
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CSVMessageDescriptor o)
compare this CSVMessageDescriptor with another.
This method returns 0 for objects that are not equals ! Use with care in collections ! |
boolean |
equals(Object o) |
int |
getLineNumber()
Get the number of the line of the CSV file associated with this message.
|
String |
getMessageContent()
Get the description of the message
|
CSVMessageLevel |
getMessageLevel()
Get the level of the message
|
int |
hashCode() |
void |
setLineNumber(int nLineNumber)
Set the number of the line of the CSV file associated with this error.
|
void |
setMessageContent(String strMessageContent)
Set the description of the message
|
void |
setMessageLevel(CSVMessageLevel messageLevel)
Set the level of the message
|
public CSVMessageDescriptor()
public CSVMessageDescriptor(CSVMessageLevel messageLevel, int nLineNumber, String strMessageContent)
messageLevel
- The level of the messagenLineNumber
- The number of the line associated with the messagestrMessageContent
- The content of the messagepublic CSVMessageLevel getMessageLevel()
public void setMessageLevel(CSVMessageLevel messageLevel)
messageLevel
- the level of the messagepublic int getLineNumber()
public void setLineNumber(int nLineNumber)
nLineNumber
- The number of the line of the CSV file associated with this error.public String getMessageContent()
public void setMessageContent(String strMessageContent)
strMessageContent
- The description of the messagepublic int compareTo(CSVMessageDescriptor o)
compareTo
in interface Comparable<CSVMessageDescriptor>
o
- Object to compare toINFO
level and the other one an ERROR
level if they have the same line number.ERROR
level whereas the other has the INFO
level if they have the same line
number.Copyright © 2020 City of Paris. All rights reserved.