Project

General

Profile

« Previous | Next » 

Revision 892efc69

Added by Andreas Kohlbecker almost 14 years ago

merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/NonViralName.java
1165 1165
	 * @param parentName	  the botanical name of the parent for this new hybrid name relationship
1166 1166
	 * @param type			  the type of this new name relationship
1167 1167
	 * @param ruleConsidered  the string which specifies the rule on which this name relationship is based
1168
	 * @return 
1168 1169
	 * @see    				  #addHybridChild(BotanicalName, HybridRelationshipType,String )
1169 1170
	 * @see    				  #getRelationsToThisName()
1170 1171
	 * @see    				  #getNameRelations()
1171 1172
	 * @see    				  #addRelationshipFromName(TaxonNameBase, NameRelationshipType, String)
1172 1173
	 * @see    				  #addNameRelationship(NameRelationship)
1173 1174
	 */
1174
	public void addHybridParent(NonViralName parentName, HybridRelationshipType type, String ruleConsidered){
1175
		HybridRelationship rel = new HybridRelationship(this, parentName, type, ruleConsidered);
1175
	public HybridRelationship addHybridParent(NonViralName parentName, HybridRelationshipType type, String ruleConsidered){
1176
		return new HybridRelationship(this, parentName, type, ruleConsidered);
1176 1177
	}
1177 1178
	
1178 1179
	/**
......
1185 1186
	 * @param childName		  the botanical name of the child for this new hybrid name relationship
1186 1187
	 * @param type			  the type of this new name relationship
1187 1188
	 * @param ruleConsidered  the string which specifies the rule on which this name relationship is based
1189
	 * @return 
1188 1190
	 * @see    				  #addHybridParent(BotanicalName, HybridRelationshipType,String )
1189 1191
	 * @see    				  #getRelationsToThisName()
1190 1192
	 * @see    				  #getNameRelations()
1191 1193
	 * @see    				  #addRelationshipFromName(TaxonNameBase, NameRelationshipType, String)
1192 1194
	 * @see    				  #addNameRelationship(NameRelationship)
1193 1195
	 */
1194
	public void addHybridChild(NonViralName childName, HybridRelationshipType type, String ruleConsidered){
1195
		HybridRelationship rel = new HybridRelationship(childName, this, type, ruleConsidered);
1196
	public HybridRelationship addHybridChild(NonViralName childName, HybridRelationshipType type, String ruleConsidered){
1197
		return new HybridRelationship(childName, this, type, ruleConsidered);
1196 1198
	}
1197 1199
	
1198 1200
	

Also available in: Unified diff