1 25 26 package com.j2biz.blogunity.i18n; 27 28 class I18NStatusImpl implements I18NStatus { 29 30 private String key = I18N.ERRORS.UNKNOWN; 31 32 private String [] parameters; 33 34 private Throwable cause; 35 36 public I18NStatusImpl() { 37 38 } 39 40 public I18NStatusImpl(String key) { 41 this.key = key; 42 } 43 44 public I18NStatusImpl(String key, String [] parameters) { 45 this.key = key; 46 this.parameters = parameters; 47 } 48 49 public I18NStatusImpl(String key, Throwable cause) { 50 this.key = key; 51 this.cause = cause; 52 } 53 54 public I18NStatusImpl(String key, String [] parameters, Throwable cause) { 55 this.key = key; 56 this.parameters = parameters; 57 this.cause = cause; 58 } 59 60 65 public String getKey() { 66 return key; 67 } 68 69 74 public String [] getParameters() { 75 return parameters; 76 } 77 78 83 public Throwable getCause() { 84 return cause; 85 } 86 87 } | Popular Tags |