1 17 package org.alfresco.repo.dictionary; 18 19 20 26 public abstract class M2ClassAssociation 27 { 28 private String name = null; 29 private Boolean isProtected = null; 30 private String title = null; 31 private String description = null; 32 private String sourceRoleName = null; 33 private Boolean isSourceMandatory = null; 34 private Boolean isSourceMany = null; 35 private String targetClassName = null; 36 private String targetRoleName = null; 37 private Boolean isTargetMandatory = null; 38 private Boolean isTargetMany = null; 39 40 41 M2ClassAssociation() 42 { 43 } 44 45 46 M2ClassAssociation(String name) 47 { 48 this.name = name; 49 } 50 51 52 public boolean isChild() 53 { 54 return this instanceof M2ChildAssociation; 55 } 56 57 58 public String getName() 59 { 60 return name; 61 } 62 63 64 public void setName(String name) 65 { 66 this.name = name; 67 } 68 69 70 public boolean isProtected() 71 { 72 return isProtected == null ? false : isProtected; 73 } 74 75 76 public void setProtected(boolean isProtected) 77 { 78 this.isProtected = isProtected; 79 } 80 81 82 public String getTitle() 83 { 84 return title; 85 } 86 87 88 public void setTitle(String title) 89 { 90 this.title = title; 91 } 92 93 94 public String getDescription() 95 { 96 return description; 97 } 98 99 100 public void setDescription(String description) 101 { 102 this.description = description; 103 } 104 105 106 public String getSourceRoleName() 107 { 108 return sourceRoleName; 109 } 110 111 112 public void setSourceRoleName(String name) 113 { 114 this.sourceRoleName = name; 115 } 116 117 118 public boolean isSourceMandatory() 119 { 120 return isSourceMandatory == null ? true : isSourceMandatory; 121 } 122 123 124 public void setSourceMandatory(boolean isSourceMandatory) 125 { 126 this.isSourceMandatory = isSourceMandatory; 127 } 128 129 130 public boolean isSourceMany() 131 { 132 return isSourceMany == null ? false : isSourceMany; 133 } 134 135 136 public void setSourceMany(boolean isSourceMany) 137 { 138 this.isSourceMany = isSourceMany; 139 } 140 141 142 public String getTargetClassName() 143 { 144 return targetClassName; 145 } 146 147 148 public void setTargetClassName(String targetClassName) 149 { 150 this.targetClassName = targetClassName; 151 } 152 153 154 public String getTargetRoleName() 155 { 156 return targetRoleName; 157 } 158 159 160 public void setTargetRoleName(String name) 161 { 162 this.targetRoleName = name; 163 } 164 165 166 public boolean isTargetMandatory() 167 { 168 return isTargetMandatory == null ? false : isTargetMandatory; 169 } 170 171 172 public void setTargetMandatory(boolean isTargetMandatory) 173 { 174 this.isTargetMandatory = isTargetMandatory; 175 } 176 177 178 public boolean isTargetMany() 179 { 180 return isTargetMany == null ? true : isTargetMany; 181 } 182 183 184 public void setTargetMany(boolean isTargetMany) 185 { 186 this.isTargetMany = isTargetMany; 187 } 188 189 } 190 | Popular Tags |