|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.csv.CSVMessageDescriptor
public class CSVMessageDescriptor
Describe an error that occurred during the reading of a CSV file.
| Constructor Summary | |
|---|---|
CSVMessageDescriptor()
Default constructor |
|
CSVMessageDescriptor(CSVMessageLevel messageLevel,
int nLineNumber,
String strMessageContent)
Creates a new CSVMessageDescriptor with every attributes initialized |
|
| Method Summary | |
|---|---|
int |
compareTo(CSVMessageDescriptor o)
compare this CSVMessageDescriptor with another. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 message| Method Detail |
|---|
public 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 to
INFO 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.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||