/*
 * This code is generated by blanco Framework.
 */
package blancostruts.runtime.validator.message;

import java.util.ResourceBundle;

import blancostruts.runtime.ResourceBundleLoader;

public class MessageKeyLoader {
    ResourceBundleLoader _loader = new ResourceBundleLoader("blanco-struts"); 

    public MessageKeyLoader() {
        
    }
    
    public MessageKeys load() {
        MessageKeys result = new MessageKeys();
        if(_loader.load()) {
            ResourceBundle p = _loader.getResult();
            result.setRequiredErrorKey(p.getString(ErrorMessageKey.REQUIRED.getKey()));
            result.setSizeErrorKey(p.getString(ErrorMessageKey.SIZE.getKey()));
            result.setRangeErrorKey(p.getString(ErrorMessageKey.RANGE.getKey()));
            result.setRegexErrorKey(p.getString(ErrorMessageKey.REGEX.getKey()));

            result.setHalfWidthErrorKey(p.getString(ErrorMessageKey.HALF_WIDTH.getKey()));
            result.setFullWidthErrorKey(p.getString(ErrorMessageKey.HALF_WIDTH.getKey()));

            result.setHalfWidthAlphabetErrorKey(p.getString(ErrorMessageKey.HALF_WIDTH_ALPHABET.getKey()));
            result.setHalfWidthUpperCaseAlphabetErrorKey(p.getString(ErrorMessageKey.HALF_WIDTH_UPPER_CASE_ALPHABET.getKey()));
            result.setHalfWidthLowerCaseAlphabetErrorKey(p.getString(ErrorMessageKey.HALF_WIDTH_LOWER_CASE_ALPHABET.getKey()));
            result.setHalfWidthAlphabetNumberErrorKey(p.getString(ErrorMessageKey.HALF_WIDTH_ALPHABET_NUMER.getKey()));
            result.setHalfWidthAlphabetNumberSymbolErrorKey(p.getString(ErrorMessageKey.HALF_WIDTH_ALPHABET_NUMER_SYMBOL.getKey()));
            result.setHalfWidthKatakanaErrorKey(p.getString(ErrorMessageKey.HALF_WIDTH_KATAKANA.getKey()));

            result.setFullWidthAlphabetErrorKey(p.getString(ErrorMessageKey.FULL_WIDTH_ALPHABET.getKey()));
            result.setFullWidthUpperCaseAlphabetErrorKey(p.getString(ErrorMessageKey.FULL_WIDTH_UPPER_CASE_ALPHABET.getKey()));
            result.setFullWidthLowerCaseAlphabetErrorKey(p.getString(ErrorMessageKey.FULL_WIDTH_LOWER_CASE_ALPHABET.getKey()));
            result.setFullWidthAlphabetNumberErrorKey(p.getString(ErrorMessageKey.FULL_WIDTH_ALPHABET_NUMER.getKey()));
            result.setFullWidthAlphabetNumberSymbolErrorKey(p.getString(ErrorMessageKey.FULL_WIDTH_ALPHABET_NUMER_SYMBOL.getKey()));
            result.setFullWidthKatakanaErrorKey(p.getString(ErrorMessageKey.FULL_WIDTH_KATAKANA.getKey()));

            result.setFullWidthHiraganaErrorKey(p.getString(ErrorMessageKey.FULL_WIDTH_HIRAGANA.getKey()));
            result.setFullWidthKatakanaErrorKey(p.getString(ErrorMessageKey.FULL_WIDTH_KATAKANA.getKey()));
            result.setFullWidthHiraganaKatakanaErrorKey(p.getString(ErrorMessageKey.FULL_WIDTH_HIRAGANA_KATAKANA.getKey()));

            result.setYyyyMmDdErrorKey(p.getString(ErrorMessageKey.YYYY_MM_DD.getKey()));
            result.setYyMmDdErrorKey(p.getString(ErrorMessageKey.YY_MM_DD.getKey()));
            result.setMmDdErrorKey(p.getString(ErrorMessageKey.MM_DD.getKey()));
        }
        return result;
    }
}
