1 18 package org.apache.roller.pojos; 19 20 import org.apache.roller.RollerException; 21 import org.apache.roller.model.RollerFactory; 22 23 43 public class WeblogCategoryAssoc extends PersistentObject 44 implements Assoc 45 { 46 static final long serialVersionUID = 674856287447472015L; 47 48 private String id; 49 private WeblogCategoryData category; 50 private WeblogCategoryData ancestor; 51 private java.lang.String relation; 52 53 public WeblogCategoryAssoc() 54 { 55 } 56 57 public WeblogCategoryAssoc( 58 String id, 59 WeblogCategoryData category, 60 WeblogCategoryData ancestor, 61 java.lang.String relation) 62 { 63 this.id = id; 64 this.category = category; 65 this.ancestor = ancestor; 66 this.relation = relation; 67 } 68 69 public WeblogCategoryAssoc(WeblogCategoryAssoc otherData) 70 { 71 setData(otherData); 72 } 73 74 79 public java.lang.String getId() 80 { 81 return this.id; 82 } 83 84 public void setId(java.lang.String id) 85 { 86 this.id = id; 87 } 88 89 90 93 public void setData(org.apache.roller.pojos.PersistentObject otherData) 94 { 95 this.id = otherData.getId(); 96 this.category = ((WeblogCategoryAssoc)otherData).getCategory(); 97 this.ancestor = ((WeblogCategoryAssoc)otherData).getAncestorCategory(); 98 this.relation = ((WeblogCategoryAssoc)otherData).getRelation(); 99 } 100 101 105 public WeblogCategoryData getAncestorCategory() 106 { 107 return ancestor; 108 } 109 110 111 public void setAncestorCategory(WeblogCategoryData data) 112 { 113 ancestor = data; 114 } 115 116 120 public WeblogCategoryData getCategory() 121 { 122 return category; 123 } 124 125 126 public void setCategory(WeblogCategoryData data) 127 { 128 category = data; 129 } 130 131 135 public java.lang.String getRelation() 136 { 137 return relation; 138 } 139 140 141 public void setRelation(java.lang.String string) 142 { 143 relation = string; 144 } 145 146 public HierarchicalPersistentObject getObject() 147 { 148 return getCategory(); 149 } 150 151 public void setObject(HierarchicalPersistentObject hpo) 152 { 153 setCategory((WeblogCategoryData)hpo); 154 } 155 156 public HierarchicalPersistentObject getAncestor() 157 { 158 return getAncestorCategory(); 159 } 160 161 public void setAncestor(HierarchicalPersistentObject hpo) 162 { 163 setAncestorCategory((WeblogCategoryData)hpo); 164 } 165 } 166 | Popular Tags |