1 23 24 package org.infoglue.cms.entities.management.impl.simple; 25 26 import java.util.ArrayList ; 27 28 import org.infoglue.cms.entities.kernel.BaseEntityVO; 29 import org.infoglue.cms.entities.management.Language; 30 import org.infoglue.cms.entities.management.LanguageVO; 31 import org.infoglue.cms.exception.ConstraintException; 32 33 public class LanguageImpl implements Language 34 { 35 private LanguageVO valueObject = new LanguageVO(); 36 private java.util.Collection repositoryLanguages = new ArrayList (); 37 38 public Integer getId() 39 { 40 return this.getLanguageId(); 41 } 42 43 public Object getIdAsObject() 44 { 45 return getId(); 46 } 47 48 public String toString() 49 { 50 return this.valueObject.toString(); 51 } 52 53 public LanguageVO getValueObject() 54 { 55 return this.valueObject; 56 } 57 58 59 public void setValueObject(LanguageVO valueObject) 60 { 61 this.valueObject = valueObject; 62 } 63 66 public BaseEntityVO getVO() 67 { 68 return (BaseEntityVO) getValueObject(); 69 } 70 73 public void setVO(BaseEntityVO valueObject) 74 { 75 setValueObject((LanguageVO) valueObject); 76 } 77 78 public java.lang.Integer getLanguageId() 79 { 80 return this.valueObject.getLanguageId(); 81 } 82 83 public void setLanguageId(java.lang.Integer languageId) 84 { 85 this.valueObject.setLanguageId(languageId); 86 } 87 88 public java.lang.String getName() 89 { 90 return this.valueObject.getName(); 91 } 92 93 public void setName(java.lang.String name) throws ConstraintException 94 { 95 this.valueObject.setName(name); 96 } 97 98 public java.lang.String getLanguageCode() 99 { 100 return this.valueObject.getLanguageCode(); 101 } 102 103 public void setLanguageCode(java.lang.String languageCode) throws ConstraintException 104 { 105 this.valueObject.setLanguageCode(languageCode); 106 } 107 108 public void setCharset(java.lang.String charset) throws ConstraintException 109 { 110 this.valueObject.setCharset(charset); 111 } 112 113 public java.lang.String getCharset() 114 { 115 return this.valueObject.getCharset(); 116 } 117 118 public java.util.Collection getRepositoryLanguages() 119 { 120 return this.repositoryLanguages; 121 } 122 123 public void setRepositoryLanguages (java.util.Collection repositoryLanguages) 124 { 125 this.repositoryLanguages = repositoryLanguages; 126 } 127 } 128 | Popular Tags |