1 23 24 package com.sun.enterprise.deployment; 25 26 28 public class LocaleEncodingMappingDescriptor extends Descriptor { 29 30 private String locale = "en"; 31 private String encoding = "UTF-8"; 32 33 36 public LocaleEncodingMappingDescriptor() { 37 } 38 39 42 public LocaleEncodingMappingDescriptor(LocaleEncodingMappingDescriptor other) { 43 super(other); 44 locale = other.locale; 45 encoding = other.encoding; 46 } 47 48 51 public void setLocale(String value) { 52 locale = value; 53 } 54 55 58 public void setEncoding(String value) { 59 encoding = value; 60 } 61 62 65 public String getLocale() { 66 return locale; 67 } 68 69 72 public String getEncoding() { 73 return encoding; 74 } 75 76 79 public void print(StringBuffer toStringBuffer) { 80 toStringBuffer.append("\nProp : ").append(getLocale()).append("->").append(locale); 81 } 82 } 83 | Popular Tags |