001package org.hl7.fhir.r5.model;
002
003
004/*
005 * #%L
006 * org.hl7.fhir.r5
007 * %%
008 * Copyright (C) 2014 - 2019 Health Level 7
009 * %%
010 * Licensed under the Apache License, Version 2.0 (the \"License\");
011 * you may not use this file except in compliance with the License.
012 * You may obtain a copy of the License at
013 * 
014 *      http://www.apache.org/licenses/LICENSE-2.0
015 * 
016 * Unless required by applicable law or agreed to in writing, software
017 * distributed under the License is distributed on an \"AS IS\" BASIS,
018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
019 * See the License for the specific language governing permissions and
020 * limitations under the License.
021 * #L%
022 */
023
024/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, \
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this \
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, \
034     this list of conditions and the following disclaimer in the documentation \
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
049  POSSIBILITY OF SUCH DAMAGE.
050  */
051
052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
053
054import java.util.ArrayList;
055import java.util.Date;
056import java.util.List;
057import org.hl7.fhir.utilities.Utilities;
058import org.hl7.fhir.r5.model.Enumerations.*;
059import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
060import org.hl7.fhir.exceptions.FHIRException;
061import org.hl7.fhir.instance.model.api.ICompositeType;
062import ca.uhn.fhir.model.api.annotation.ResourceDef;
063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
064import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
065import ca.uhn.fhir.model.api.annotation.Child;
066import ca.uhn.fhir.model.api.annotation.ChildOrder;
067import ca.uhn.fhir.model.api.annotation.Description;
068import ca.uhn.fhir.model.api.annotation.Block;
069
070/**
071 * Common Ancestor declaration for conformance and knowledge artifact resources.
072 */
073public abstract class CanonicalResource extends DomainResource {
074
075    private static final long serialVersionUID = 0L;
076
077  /**
078   * Constructor
079   */
080    public CanonicalResource() {
081      super();
082    }
083
084  /**
085   * Constructor
086   */
087    public CanonicalResource(PublicationStatus status) {
088      super();
089      this.setStatus(status);
090    }
091
092    /**
093     * How many allowed for this property by the implementation
094     */
095    public int getUrlMax() { 
096      return 1;
097    }
098    /**
099     * @return {@link #url} (An absolute URI that is used to identify this canonical resource when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this canonical resource is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the canonical resource is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
100     */
101    public abstract UriType getUrlElement(); 
102
103    public abstract boolean hasUrlElement(); 
104    public abstract boolean hasUrl(); 
105
106    /**
107     * @param value {@link #url} (An absolute URI that is used to identify this canonical resource when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this canonical resource is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the canonical resource is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
108     */
109    public abstract CanonicalResource setUrlElement(UriType value); 
110    /**
111     * @return An absolute URI that is used to identify this canonical resource when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this canonical resource is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the canonical resource is stored on different servers.
112     */
113    public abstract String getUrl(); 
114    /**
115     * @param value An absolute URI that is used to identify this canonical resource when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this canonical resource is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the canonical resource is stored on different servers.
116     */
117    public abstract CanonicalResource setUrl(String value); 
118    /**
119     * How many allowed for this property by the implementation
120     */
121    public int getIdentifierMax() { 
122      return Integer.MAX_VALUE;
123    }
124    /**
125     * @return {@link #identifier} (A formal identifier that is used to identify this canonical resource when it is represented in other formats, or referenced in a specification, model, design or an instance.)
126     */
127    public abstract List<Identifier> getIdentifier(); 
128    /**
129     * @return Returns a reference to <code>this</code> for easy method chaining
130     */
131    public abstract CanonicalResource setIdentifier(List<Identifier> theIdentifier); 
132    public abstract boolean hasIdentifier(); 
133
134    public abstract Identifier addIdentifier(); //3
135    public abstract CanonicalResource addIdentifier(Identifier t); //3
136    /**
137     * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {1}
138     */
139    public abstract Identifier getIdentifierFirstRep(); 
140    /**
141     * How many allowed for this property by the implementation
142     */
143    public int getVersionMax() { 
144      return 1;
145    }
146    /**
147     * @return {@link #version} (The identifier that is used to identify this version of the canonical resource when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the canonical resource author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
148     */
149    public abstract StringType getVersionElement(); 
150
151    public abstract boolean hasVersionElement(); 
152    public abstract boolean hasVersion(); 
153
154    /**
155     * @param value {@link #version} (The identifier that is used to identify this version of the canonical resource when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the canonical resource author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
156     */
157    public abstract CanonicalResource setVersionElement(StringType value); 
158    /**
159     * @return The identifier that is used to identify this version of the canonical resource when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the canonical resource author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.
160     */
161    public abstract String getVersion(); 
162    /**
163     * @param value The identifier that is used to identify this version of the canonical resource when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the canonical resource author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.
164     */
165    public abstract CanonicalResource setVersion(String value); 
166    /**
167     * How many allowed for this property by the implementation
168     */
169    public int getNameMax() { 
170      return 1;
171    }
172    /**
173     * @return {@link #name} (A natural language name identifying the canonical resource. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
174     */
175    public abstract StringType getNameElement(); 
176
177    public abstract boolean hasNameElement(); 
178    public abstract boolean hasName(); 
179
180    /**
181     * @param value {@link #name} (A natural language name identifying the canonical resource. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
182     */
183    public abstract CanonicalResource setNameElement(StringType value); 
184    /**
185     * @return A natural language name identifying the canonical resource. This name should be usable as an identifier for the module by machine processing applications such as code generation.
186     */
187    public abstract String getName(); 
188    /**
189     * @param value A natural language name identifying the canonical resource. This name should be usable as an identifier for the module by machine processing applications such as code generation.
190     */
191    public abstract CanonicalResource setName(String value); 
192    /**
193     * How many allowed for this property by the implementation
194     */
195    public int getTitleMax() { 
196      return 1;
197    }
198    /**
199     * @return {@link #title} (A short, descriptive, user-friendly title for the canonical resource.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
200     */
201    public abstract StringType getTitleElement(); 
202
203    public abstract boolean hasTitleElement(); 
204    public abstract boolean hasTitle(); 
205
206    /**
207     * @param value {@link #title} (A short, descriptive, user-friendly title for the canonical resource.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
208     */
209    public abstract CanonicalResource setTitleElement(StringType value); 
210    /**
211     * @return A short, descriptive, user-friendly title for the canonical resource.
212     */
213    public abstract String getTitle(); 
214    /**
215     * @param value A short, descriptive, user-friendly title for the canonical resource.
216     */
217    public abstract CanonicalResource setTitle(String value); 
218    /**
219     * How many allowed for this property by the implementation
220     */
221    public int getStatusMax() { 
222      return 1;
223    }
224    /**
225     * @return {@link #status} (The status of this canonical resource. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
226     */
227    public abstract Enumeration<PublicationStatus> getStatusElement(); 
228
229    public abstract boolean hasStatusElement(); 
230    public abstract boolean hasStatus(); 
231
232    /**
233     * @param value {@link #status} (The status of this canonical resource. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
234     */
235    public abstract CanonicalResource setStatusElement(Enumeration<PublicationStatus> value); 
236    /**
237     * @return The status of this canonical resource. Enables tracking the life-cycle of the content.
238     */
239    public abstract PublicationStatus getStatus(); 
240    /**
241     * @param value The status of this canonical resource. Enables tracking the life-cycle of the content.
242     */
243    public abstract CanonicalResource setStatus(PublicationStatus value); 
244    /**
245     * How many allowed for this property by the implementation
246     */
247    public int getExperimentalMax() { 
248      return 1;
249    }
250    /**
251     * @return {@link #experimental} (A Boolean value to indicate that this canonical resource is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
252     */
253    public abstract BooleanType getExperimentalElement(); 
254
255    public abstract boolean hasExperimentalElement(); 
256    public abstract boolean hasExperimental(); 
257
258    /**
259     * @param value {@link #experimental} (A Boolean value to indicate that this canonical resource is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
260     */
261    public abstract CanonicalResource setExperimentalElement(BooleanType value); 
262    /**
263     * @return A Boolean value to indicate that this canonical resource is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
264     */
265    public abstract boolean getExperimental(); 
266    /**
267     * @param value A Boolean value to indicate that this canonical resource is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
268     */
269    public abstract CanonicalResource setExperimental(boolean value); 
270    /**
271     * How many allowed for this property by the implementation
272     */
273    public int getDateMax() { 
274      return 1;
275    }
276    /**
277     * @return {@link #date} (The date  (and optionally time) when the canonical resource was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the canonical resource changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
278     */
279    public abstract DateTimeType getDateElement(); 
280
281    public abstract boolean hasDateElement(); 
282    public abstract boolean hasDate(); 
283
284    /**
285     * @param value {@link #date} (The date  (and optionally time) when the canonical resource was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the canonical resource changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
286     */
287    public abstract CanonicalResource setDateElement(DateTimeType value); 
288    /**
289     * @return The date  (and optionally time) when the canonical resource was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the canonical resource changes.
290     */
291    public abstract Date getDate(); 
292    /**
293     * @param value The date  (and optionally time) when the canonical resource was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the canonical resource changes.
294     */
295    public abstract CanonicalResource setDate(Date value); 
296    /**
297     * How many allowed for this property by the implementation
298     */
299    public int getPublisherMax() { 
300      return 1;
301    }
302    /**
303     * @return {@link #publisher} (The name of the organization or individual that published the canonical resource.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
304     */
305    public abstract StringType getPublisherElement(); 
306
307    public abstract boolean hasPublisherElement(); 
308    public abstract boolean hasPublisher(); 
309
310    /**
311     * @param value {@link #publisher} (The name of the organization or individual that published the canonical resource.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
312     */
313    public abstract CanonicalResource setPublisherElement(StringType value); 
314    /**
315     * @return The name of the organization or individual that published the canonical resource.
316     */
317    public abstract String getPublisher(); 
318    /**
319     * @param value The name of the organization or individual that published the canonical resource.
320     */
321    public abstract CanonicalResource setPublisher(String value); 
322    /**
323     * How many allowed for this property by the implementation
324     */
325    public int getContactMax() { 
326      return Integer.MAX_VALUE;
327    }
328    /**
329     * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.)
330     */
331    public abstract List<ContactDetail> getContact(); 
332    /**
333     * @return Returns a reference to <code>this</code> for easy method chaining
334     */
335    public abstract CanonicalResource setContact(List<ContactDetail> theContact); 
336    public abstract boolean hasContact(); 
337
338    public abstract ContactDetail addContact(); //3
339    public abstract CanonicalResource addContact(ContactDetail t); //3
340    /**
341     * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {1}
342     */
343    public abstract ContactDetail getContactFirstRep(); 
344    /**
345     * How many allowed for this property by the implementation
346     */
347    public int getDescriptionMax() { 
348      return 1;
349    }
350    /**
351     * @return {@link #description} (A free text natural language description of the canonical resource from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
352     */
353    public abstract MarkdownType getDescriptionElement(); 
354
355    public abstract boolean hasDescriptionElement(); 
356    public abstract boolean hasDescription(); 
357
358    /**
359     * @param value {@link #description} (A free text natural language description of the canonical resource from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
360     */
361    public abstract CanonicalResource setDescriptionElement(MarkdownType value); 
362    /**
363     * @return A free text natural language description of the canonical resource from a consumer's perspective.
364     */
365    public abstract String getDescription(); 
366    /**
367     * @param value A free text natural language description of the canonical resource from a consumer's perspective.
368     */
369    public abstract CanonicalResource setDescription(String value); 
370    /**
371     * How many allowed for this property by the implementation
372     */
373    public int getUseContextMax() { 
374      return Integer.MAX_VALUE;
375    }
376    /**
377     * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate canonical resource instances.)
378     */
379    public abstract List<UsageContext> getUseContext(); 
380    /**
381     * @return Returns a reference to <code>this</code> for easy method chaining
382     */
383    public abstract CanonicalResource setUseContext(List<UsageContext> theUseContext); 
384    public abstract boolean hasUseContext(); 
385
386    public abstract UsageContext addUseContext(); //3
387    public abstract CanonicalResource addUseContext(UsageContext t); //3
388    /**
389     * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist {1}
390     */
391    public abstract UsageContext getUseContextFirstRep(); 
392    /**
393     * How many allowed for this property by the implementation
394     */
395    public int getJurisdictionMax() { 
396      return Integer.MAX_VALUE;
397    }
398    /**
399     * @return {@link #jurisdiction} (A legal or geographic region in which the canonical resource is intended to be used.)
400     */
401    public abstract List<CodeableConcept> getJurisdiction(); 
402    /**
403     * @return Returns a reference to <code>this</code> for easy method chaining
404     */
405    public abstract CanonicalResource setJurisdiction(List<CodeableConcept> theJurisdiction); 
406    public abstract boolean hasJurisdiction(); 
407
408    public abstract CodeableConcept addJurisdiction(); //3
409    public abstract CanonicalResource addJurisdiction(CodeableConcept t); //3
410    /**
411     * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist {1}
412     */
413    public abstract CodeableConcept getJurisdictionFirstRep(); 
414    /**
415     * How many allowed for this property by the implementation
416     */
417    public int getPurposeMax() { 
418      return 1;
419    }
420    /**
421     * @return {@link #purpose} (Explanation of why this canonical resource is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
422     */
423    public abstract MarkdownType getPurposeElement(); 
424
425    public abstract boolean hasPurposeElement(); 
426    public abstract boolean hasPurpose(); 
427
428    /**
429     * @param value {@link #purpose} (Explanation of why this canonical resource is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
430     */
431    public abstract CanonicalResource setPurposeElement(MarkdownType value); 
432    /**
433     * @return Explanation of why this canonical resource is needed and why it has been designed as it has.
434     */
435    public abstract String getPurpose(); 
436    /**
437     * @param value Explanation of why this canonical resource is needed and why it has been designed as it has.
438     */
439    public abstract CanonicalResource setPurpose(String value); 
440    /**
441     * How many allowed for this property by the implementation
442     */
443    public int getCopyrightMax() { 
444      return 1;
445    }
446    /**
447     * @return {@link #copyright} (A copyright statement relating to the canonical resource and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the canonical resource.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
448     */
449    public abstract MarkdownType getCopyrightElement(); 
450
451    public abstract boolean hasCopyrightElement(); 
452    public abstract boolean hasCopyright(); 
453
454    /**
455     * @param value {@link #copyright} (A copyright statement relating to the canonical resource and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the canonical resource.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
456     */
457    public abstract CanonicalResource setCopyrightElement(MarkdownType value); 
458    /**
459     * @return A copyright statement relating to the canonical resource and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the canonical resource.
460     */
461    public abstract String getCopyright(); 
462    /**
463     * @param value A copyright statement relating to the canonical resource and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the canonical resource.
464     */
465    public abstract CanonicalResource setCopyright(String value); 
466      protected void listChildren(List<Property> children) {
467        super.listChildren(children);
468      }
469
470      @Override
471      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
472        switch (_hash) {
473        default: return super.getNamedProperty(_hash, _name, _checkValid);
474        }
475
476      }
477
478      @Override
479      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
480        switch (hash) {
481        default: return super.getProperty(hash, name, checkValid);
482        }
483
484      }
485
486      @Override
487      public Base setProperty(int hash, String name, Base value) throws FHIRException {
488        switch (hash) {
489        default: return super.setProperty(hash, name, value);
490        }
491
492      }
493
494      @Override
495      public Base setProperty(String name, Base value) throws FHIRException {
496          return super.setProperty(name, value);
497      }
498
499      @Override
500      public Base makeProperty(int hash, String name) throws FHIRException {
501        switch (hash) {
502        default: return super.makeProperty(hash, name);
503        }
504
505      }
506
507      @Override
508      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
509        switch (hash) {
510        default: return super.getTypesForProperty(hash, name);
511        }
512
513      }
514
515      @Override
516      public Base addChild(String name) throws FHIRException {
517          return super.addChild(name);
518      }
519
520  public String fhirType() {
521    return "CanonicalResource";
522
523  }
524
525      public abstract CanonicalResource copy();
526
527      public void copyValues(CanonicalResource dst) {
528        super.copyValues(dst);
529      }
530
531      @Override
532      public boolean equalsDeep(Base other_) {
533        if (!super.equalsDeep(other_))
534          return false;
535        if (!(other_ instanceof CanonicalResource))
536          return false;
537        CanonicalResource o = (CanonicalResource) other_;
538        return true;
539      }
540
541      @Override
542      public boolean equalsShallow(Base other_) {
543        if (!super.equalsShallow(other_))
544          return false;
545        if (!(other_ instanceof CanonicalResource))
546          return false;
547        CanonicalResource o = (CanonicalResource) other_;
548        return true;
549      }
550
551      public boolean isEmpty() {
552        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty();
553      }
554
555// Manual code (from Configuration.txt)t:
556      @Override
557      public String toString() {
558        return fhirType()+"["+getUrl()+"]";
559      }
560      
561      public String present() {
562        if (hasTitle())
563          return getTitle();
564        if (hasName())
565          return getName();
566        return toString();
567      }      
568
569// end addition
570
571}
572