1 23 24 package com.sun.enterprise.deployment.runtime.web; 25 26 import com.sun.enterprise.deployment.runtime.RuntimeDescriptor; 27 28 35 public class LocaleCharsetInfo extends RuntimeDescriptor 36 { 37 38 static public final String LOCALE_CHARSET_MAP = "LocaleCharsetMap"; static public final String PARAMETER_ENCODING = "ParameterEncoding"; static public final String FORM_HINT_FIELD = "FormHintField"; static public final String DEFAULT_LOCALE = "DefaultLocale"; static public final String DEFAULT_CHARSET = "DefaultCharset"; 43 44 public void setLocaleCharsetMap(int index, LocaleCharsetMap value) 46 { 47 this.setValue(LOCALE_CHARSET_MAP, index, value); 48 } 49 50 public LocaleCharsetMap getLocaleCharsetMap(int index) 52 { 53 return (LocaleCharsetMap)this.getValue(LOCALE_CHARSET_MAP, index); 54 } 55 56 public void setLocaleCharsetMap(LocaleCharsetMap[] value) 58 { 59 this.setValue(LOCALE_CHARSET_MAP, value); 60 } 61 62 public LocaleCharsetMap[] getLocaleCharsetMap() 64 { 65 return (LocaleCharsetMap[])this.getValues(LOCALE_CHARSET_MAP); 66 } 67 68 public int sizeLocaleCharsetMap() 70 { 71 return this.size(LOCALE_CHARSET_MAP); 72 } 73 74 public int addLocaleCharsetMap(LocaleCharsetMap value) 76 { 77 return this.addValue(LOCALE_CHARSET_MAP, value); 78 } 79 80 public int removeLocaleCharsetMap(LocaleCharsetMap value) 85 { 86 return this.removeValue(LOCALE_CHARSET_MAP, value); 87 } 88 89 public void setParameterEncoding(boolean value) 91 { 92 this.setValue(PARAMETER_ENCODING, new Boolean (value)); 93 } 94 95 public boolean isParameterEncoding() 97 { 98 Boolean ret = (Boolean )this.getValue(PARAMETER_ENCODING); 99 if (ret == null) { 100 return false; 101 } 102 return ret.booleanValue(); 103 } 104 105 public boolean verify() 107 { 108 return true; 109 } 110 } 111 | Popular Tags |