1 package org.roller.pojos; 2 3 4 11 public class FolderAssoc extends PersistentObject 12 implements Assoc 13 { 14 static final long serialVersionUID = 882325251670705915L; 15 public static final String PARENT = "PARENT"; 16 public static final String GRANDPARENT = "GRANDPARENT"; 17 18 protected String id; 19 protected FolderData folder; 20 protected FolderData ancestor; 21 protected java.lang.String relation; 22 23 public FolderAssoc() 24 { 25 } 26 27 public FolderAssoc( 28 String id, 29 FolderData folder, 30 FolderData ancestor, 31 String relation) 32 { 33 this.id = id; 34 this.folder = folder; 35 this.ancestor = ancestor; 36 this.relation = relation; 37 } 38 39 public FolderAssoc(FolderAssoc otherData) 40 { 41 this.id = otherData.id; 42 this.folder = otherData.folder; 43 this.ancestor = otherData.ancestor; 44 this.relation = otherData.relation; 45 } 46 47 52 public java.lang.String getId() 53 { 54 return this.id; 55 } 56 57 public void setId(java.lang.String id) 58 { 59 this.id = id; 60 } 61 62 65 public void setData(org.roller.pojos.PersistentObject otherData) 66 { 67 this.id = otherData.getId(); 68 this.folder = ((FolderAssoc)otherData).getFolder(); 69 this.ancestor = ((FolderAssoc)otherData).getAncestorFolder(); 70 this.relation = ((FolderAssoc)otherData).getRelation(); 71 } 72 73 77 public FolderData getAncestorFolder() 78 { 79 return ancestor; 80 } 81 82 83 public void setAncestorFolder(FolderData data) 84 { 85 ancestor = data; 86 } 87 88 92 public FolderData getFolder() 93 { 94 return folder; 95 } 96 97 98 public void setFolder(FolderData data) 99 { 100 folder = data; 101 } 102 103 107 public java.lang.String getRelation() 108 { 109 return relation; 110 } 111 112 113 public void setRelation(java.lang.String string) 114 { 115 relation = string; 116 } 117 118 public HierarchicalPersistentObject getObject() 119 { 120 return getFolder(); 121 } 122 123 public void setObject(HierarchicalPersistentObject hpo) 124 { 125 setFolder((FolderData)hpo); 126 } 127 128 public HierarchicalPersistentObject getAncestor() 129 { 130 return getAncestorFolder(); 131 } 132 133 public void setAncestor(HierarchicalPersistentObject hpo) 134 { 135 setAncestorFolder((FolderData)hpo); 136 } 137 138 } 139 | Popular Tags |