1 23 24 package org.infoglue.cms.entities.management.impl.simple; 25 26 import java.util.Collection ; 27 28 import org.infoglue.cms.entities.kernel.BaseEntityVO; 29 import org.infoglue.cms.entities.management.ContentTypeDefinition; 30 import org.infoglue.cms.entities.management.ContentTypeDefinitionVO; 31 import org.infoglue.cms.exception.ConstraintException; 32 33 public class ContentTypeDefinitionImpl implements ContentTypeDefinition 34 { 35 private ContentTypeDefinitionVO valueObject = new ContentTypeDefinitionVO(); 36 private Collection contents; 37 38 41 public BaseEntityVO getVO() { 42 return (BaseEntityVO) getValueObject(); 43 } 44 45 48 public void setVO(BaseEntityVO valueObject) { 49 setValueObject((ContentTypeDefinitionVO) valueObject); 50 } 51 52 55 public Integer getId() { 56 return getContentTypeDefinitionId(); 57 } 58 59 public Object getIdAsObject() 60 { 61 return getId(); 62 } 63 64 65 public ContentTypeDefinitionVO getValueObject() 66 { 67 return this.valueObject; 68 } 69 70 71 public void setValueObject(ContentTypeDefinitionVO valueObject) 72 { 73 this.valueObject = valueObject; 74 } 75 76 77 78 public java.lang.Integer getContentTypeDefinitionId() 79 { 80 return this.valueObject.getContentTypeDefinitionId(); 81 } 82 83 public void setContentTypeDefinitionId(java.lang.Integer contentTypeDefinitionId) 84 { 85 this.valueObject.setContentTypeDefinitionId(contentTypeDefinitionId); 86 } 87 88 public java.lang.String getName() 89 { 90 return this.valueObject.getName(); 91 } 92 93 public void setName(java.lang.String name) 94 { 95 this.valueObject.setName(name); 96 } 97 98 public java.lang.String getSchemaValue() 99 { 100 return this.valueObject.getSchemaValue(); 101 } 102 103 public void setSchemaValue(java.lang.String schemaValue) 104 { 105 this.valueObject.setSchemaValue(schemaValue); 106 } 107 108 public Integer getType() 109 { 110 return this.valueObject.getType(); 111 } 112 113 public void setType(Integer type) throws ConstraintException 114 { 115 this.valueObject.setType(type); 116 } 117 118 public Collection getContents() 119 { 120 return this.contents; 121 } 122 123 public void setContents(Collection contents) 124 { 125 this.contents = contents; 126 } 127 128 } 129 | Popular Tags |