1 23 package com.sun.enterprise.deployment; 24 25 import com.sun.enterprise.deployment.web.LocalizedContentDescriptor; 26 27 28 public class LocalizedContentDescriptorImpl implements LocalizedContentDescriptor, java.io.Serializable { 29 private String url; 30 private String locale; 31 32 public LocalizedContentDescriptorImpl() { 33 } 34 35 public LocalizedContentDescriptorImpl(String locale, String url) { 36 this.locale = locale; 37 this.url = url; 38 } 39 40 public String getLocale() { 41 if (this.locale == null) { 42 this.locale = ""; 43 } 44 return this.locale; 45 } 46 47 public void setLocale(String locale) { 48 this.locale = locale; 49 } 50 51 public String getUrl() { 52 if (this.url == null) { 53 this.url = ""; 54 } 55 return this.url; 56 } 57 58 public void setUrl(String url) { 59 this.url = url; 60 } 61 62 public void print(StringBuffer toStringBuffer) { 63 toStringBuffer.append("LocalizedContent: "); 64 toStringBuffer.append(" locale: ").append(locale); 65 toStringBuffer.append(" url: ").append(url); 66 } 67 68 } 69 | Popular Tags |