/** * Gets the first repetition for <b>characteristic</b> (Trait of group members), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Identifies the traits shared by members of the group * </p> */ public Characteristic getCharacteristicFirstRep() { if (getCharacteristic().isEmpty()) { return addCharacteristic(); } return getCharacteristic().get(0); }
/** * Adds and returns a new value for <b>characteristic</b> (Trait of group members) * * <p> * <b>Definition:</b> * Identifies the traits shared by members of the group * </p> */ public Characteristic addCharacteristic() { Characteristic newType = new Characteristic(); getCharacteristic().add(newType); return newType; }