Project

General

Profile

Revision 135329fc

ID135329fcb6fdfd546e6743cbdbf4c23aebb4dbfb
Parent 2fe2600b
Child 20b025be, 9d4e2d1b, 2a4d0084

Added by Andreas Kohlbecker 4 months ago

fix #9728 completing bean property Team.nomenclaturalTitleCache

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/agent/INomenclaturalAuthor.java
18 18
public interface INomenclaturalAuthor {
19 19

  
20 20
	/**
21
	 * @see TeamOrPersonBase#getNomenclaturalTitleCache()
21
	 * @see {@link TeamOrPersonBase#getNomenclaturalTitleCache()}
22
	 *
22 23
	 */
23
	public String getNomenclaturalTitleCache();
24
    public String getNomenclaturalTitleCache();
24 25

  
25 26

  
26 27
	/**
27
	 * @see getNomenclaturalTitleCache()
28
	 * @see {@link #getNomenclaturalTitleCache()}
29
	 * @deprecated to be replaced by {@link #getNomenclaturalTitleCache()}
28 30
	 */
31
    @Deprecated
29 32
	public void setNomenclaturalTitle(String nomenclaturalTitle);
30 33

  
34
    /**
35
     * fixes the missing setter method that corresponds to {@link #getNomenclaturalTitleCache()} see #9729
36
     *
37
     * @see {@link TeamOrPersonBase#getNomenclaturalTitleCache()}
38
     */
39
    public void setNomenclaturalTitleCache(String nomenclaturalTitle);
40

  
31 41
}
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/agent/Person.java
351 351
    public void setNomenclaturalTitle(String nomenclaturalTitle) {
352 352
        this.nomenclaturalTitle = isBlank(nomenclaturalTitle) ? null : nomenclaturalTitle;
353 353
    }
354
    @Override
355
    public void setNomenclaturalTitleCache(String nomenclaturalTitle) {
356
        this.nomenclaturalTitle = isBlank(nomenclaturalTitle) ? null : nomenclaturalTitle;
357
    }
354 358

  
355 359
    /**
356 360
     * Returns the initials of this person as used in bibliographic
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/agent/Team.java
323 323
	 * and protects it from overwriting.
324 324
	 * This method overrides {@link TeamOrPersonBase#setNomenclaturalTitle(String) setNomenclaturalTitle}.
325 325
	 *
326
	 * @see  #getNomenclaturalTitle()
327
	 * @see  #setNomenclaturalTitle(String, boolean)
326
	 * @see  {@link #getNomenclaturalTitleCache()}
327
	 * @see  {@link #setNomenclaturalTitleCache(String, boolean)}
328 328
	 */
329 329
	@Override
330 330
	public void setNomenclaturalTitle(String nomenclaturalTitle) {
331 331
		this.setNomenclaturalTitleCache(nomenclaturalTitle, PROTECTED);
332 332
	}
333 333

  
334
   @Override
335
    public void setNomenclaturalTitleCache(String nomenclaturalTitle) {
336
        this.setNomenclaturalTitleCache(nomenclaturalTitle, PROTECTED);
337
    }
338

  
334 339
	/**
335 340
	 * Assigns a {@link TeamOrPersonBase#nomenclaturalTitle nomenclatural identification} string to <i>this</i> team
336 341
	 * and a protection flag status to this string.
337 342
	 *
338
	 * @see  #getNomenclaturalTitle()
343
	 * @see  {@link #getNomenclaturalTitleCache()}
339 344
	 */
340 345
	public void setNomenclaturalTitleCache(String nomenclaturalTitleCache, boolean protectedNomenclaturalTitleCache) {
341 346
		firePropertyChange("nomenclaturalTitleCache", this.nomenclaturalTitleCache, nomenclaturalTitleCache);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)