/** * Gets the first repetition for <b>participant</b> (List of participants involved in the appointment), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * * </p> */ public Participant getParticipantFirstRep() { if (getParticipant().isEmpty()) { return addParticipant(); } return getParticipant().get(0); }
/** * Adds and returns a new value for <b>participant</b> (List of participants involved in the appointment) * * <p> * <b>Definition:</b> * * </p> */ public Participant addParticipant() { Participant newType = new Participant(); getParticipant().add(newType); return newType; }