1 18 package org.apache.roller.pojos; 19 20 21 28 public class FolderAssoc extends PersistentObject 29 implements Assoc 30 { 31 static final long serialVersionUID = 882325251670705915L; 32 public static final String PARENT = "PARENT"; 33 public static final String GRANDPARENT = "GRANDPARENT"; 34 35 private String id; 36 private FolderData folder; 37 private FolderData ancestor; 38 private java.lang.String relation; 39 40 public FolderAssoc() 41 { 42 } 43 44 public FolderAssoc( 45 String id, 46 FolderData folder, 47 FolderData ancestor, 48 String relation) 49 { 50 this.id = id; 51 this.folder = folder; 52 this.ancestor = ancestor; 53 this.relation = relation; 54 } 55 56 public FolderAssoc(FolderAssoc otherData) 57 { 58 setData(otherData); 59 } 60 61 66 public java.lang.String getId() 67 { 68 return this.id; 69 } 70 71 public void setId(java.lang.String id) 72 { 73 this.id = id; 74 } 75 76 79 public void setData(org.apache.roller.pojos.PersistentObject otherData) 80 { 81 this.id = otherData.getId(); 82 this.folder = ((FolderAssoc)otherData).getFolder(); 83 this.ancestor = ((FolderAssoc)otherData).getAncestorFolder(); 84 this.relation = ((FolderAssoc)otherData).getRelation(); 85 } 86 87 91 public FolderData getAncestorFolder() 92 { 93 return ancestor; 94 } 95 96 97 public void setAncestorFolder(FolderData data) 98 { 99 ancestor = data; 100 } 101 102 106 public FolderData getFolder() 107 { 108 return folder; 109 } 110 111 112 public void setFolder(FolderData data) 113 { 114 folder = data; 115 } 116 117 121 public java.lang.String getRelation() 122 { 123 return relation; 124 } 125 126 127 public void setRelation(java.lang.String string) 128 { 129 relation = string; 130 } 131 132 public HierarchicalPersistentObject getObject() 133 { 134 return getFolder(); 135 } 136 137 public void setObject(HierarchicalPersistentObject hpo) 138 { 139 setFolder((FolderData)hpo); 140 } 141 142 public HierarchicalPersistentObject getAncestor() 143 { 144 return getAncestorFolder(); 145 } 146 147 public void setAncestor(HierarchicalPersistentObject hpo) 148 { 149 setAncestorFolder((FolderData)hpo); 150 } 151 152 } 153 | Popular Tags |