All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gh.mygreen.xlsmapper.validation.SheetObjectError Maven / Gradle / Ivy

There is a newer version: 2.2
Show newest version
package com.gh.mygreen.xlsmapper.validation;

import java.util.Map;


/**
 * シートのオブジェクトのエラーとしてのグローバルエラーを表現するエラーオブジェクト。
 * 
 * @author T.TSUCHIE
 *
 */
public class SheetObjectError extends ObjectError {
    
    /** シート名 */
    private final String sheetName;
    
    public SheetObjectError(final String objectName, final String sheetName) {
        super(objectName);
        this.sheetName = sheetName;
    }
    
    public SheetObjectError(final String objectName, final String[] codes, final Object[] args, final String sheetName) {
        super(objectName, codes, args);
        this.sheetName = sheetName;
    }
    
    public SheetObjectError(final String objectName, final String[] codes, final Map vars, final String sheetName) {
        super(objectName, codes, vars);
        this.sheetName = sheetName;
    }
    
    public String getSheetName() {
        return sheetName;
    }
    
    @Override
    public SheetObjectError setDefaultMessage(String defaultMessage) {
        super.setDefaultMessage(defaultMessage);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy