Project

General

Profile

Revision 0c28ee9b

ID0c28ee9b4b8a9b23bff6039f9ae5947751e24816
Parent 6c5263e1
Child 4b585df9

Added by Katja Luther about 2 months ago

ref #9199: adapt TypeDesignationBase to usage of source

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TypeDesignationBase.java
176 176
     * @see							TaxonName#getTypeDesignations()
177 177
     */
178 178
    protected TypeDesignationBase(Reference citation, String citationMicroReference, String originalNameString, boolean notDesignated){
179
        this(IdentifiableSource.NewPrimarySourceInstance(citation, citationMicroReference), originalNameString, notDesignated);
180
    }
181

  
182
    /**
183
     * Class constructor: creates a new type designation
184
     * (including its {@link Reference reference source} and eventually
185
     * the taxon name string originally used by this reference when establishing
186
     * the former designation).
187
     *
188
     * @param source                the reference source for the new designation
189
     * @param originalNameString    the taxon name string used originally in the reference source for the new designation
190
     * @param isNotDesignated       the boolean flag indicating whether there is no type at all for
191
     *                              <i>this</i> type designation
192
     * @see                         #TypeDesignationBase()
193
     * @see                         #isNotDesignated()
194
     * @see                         TaxonName#getTypeDesignations()
195
     */
196
    protected TypeDesignationBase(IdentifiableSource source, String originalNameString, boolean notDesignated){
179 197
        super();
180 198
        this.notDesignated = notDesignated;
181
        this.citationMicroReference = citationMicroReference;
182
        this.citation = citation;
199
        this.source = source;
183 200
    }
184 201

  
185 202

  
......
242 259
    }
243 260

  
244 261
    /**
262
     * @return the source
263
     */
264
    public IdentifiableSource getSource() {
265
        return source;
266
    }
267

  
268
    /**
269
     * @param source the source to set
270
     */
271
    public void setSource(IdentifiableSource source) {
272
        this.source = source;
273
    }
274

  
275
    /**
245 276
     * Returns the {@link Registration registrations} available for this
246 277
     * type designation.
247 278
     */

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)