1 5 package org.exoplatform.services.resources.impl; 6 7 import org.exoplatform.services.resources.*; 8 16 public class ResourceBundleDescriptionImpl implements ResourceBundleDescription { 17 protected String id_ ; 18 protected String name_ ; 19 protected String language_ ; 20 protected String country_ ; 21 protected String variant_ ; 22 protected String resourceType_ ; 23 24 public ResourceBundleDescriptionImpl() { 25 } 26 27 30 public String getId() { 31 if (id_ == null) { 32 StringBuffer b = new StringBuffer () ; 33 b.append(name_) ; 34 if(language_ != null) b.append('_').append(language_); 35 id_ = b.toString() ; 38 } 39 return id_ ; 40 } 41 public void setId(String id) { id_ = id ; } 42 43 46 public String getName() { return name_ ; } 47 public void setName(String name) { name_ = name ; } 48 49 52 public String getLanguage() { return language_ ; } 53 public void setLanguage(String s) { language_ = s ; } 54 55 58 public String getCountry() { return country_ ; } 59 public void setCountry(String s) { country_ = s ; } 60 61 64 public String getVariant() { return variant_ ; } 65 public void setVariant(String s) { variant_ = s ; } 66 67 70 public String getResourceType() { return resourceType_ ; } 71 public void setResourceType(String s) { resourceType_ = s ; } 72 } | Popular Tags |