org.jxls.reader.XLSReadStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jxls-reader Show documentation
Show all versions of jxls-reader Show documentation
Jxls Reader module to read Excel files
The newest version!
package org.jxls.reader;
import java.util.ArrayList;
import java.util.List;
/**
* @author Leonid Vysochyn
* @version 1.0 Jul 30, 2007
*/
public class XLSReadStatus {
private List readMessages = new ArrayList();
boolean statusOK = true;
public XLSReadStatus() {
}
void mergeReadStatus(XLSReadStatus status){
if( status == null ){
return;
}
if( !status.isStatusOK() ){
statusOK = false;
}
addMessages( status.getReadMessages() );
}
void addMessage( XLSReadMessage errorMessage ){
if( errorMessage != null ){
readMessages.add( errorMessage );
}
}
void addMessages( List list ){
if( list != null ){
readMessages.addAll( list );
}
}
void clear(){
readMessages.clear();
}
public boolean isStatusOK() {
return statusOK;
}
public void setStatusOK(boolean statusOK) {
this.statusOK = statusOK;
}
public List getReadMessages() {
return readMessages;
}
}