/** * Adds a given new value for <b>part</b> () * * <p> * <b>Definition:</b> * A named part of a parameter. In many implementation context, a set of named parts is known as a \"Tuple\" * </p> * @param theValue The part to add (must not be <code>null</code>) */ public Parameter addPart(Parameter theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getPart().add(theValue); return this; }
/** * Gets the first repetition for <b>part</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * A named part of a parameter. In many implementation context, a set of named parts is known as a \"Tuple\" * </p> */ public Parameter getPartFirstRep() { if (getPart().isEmpty()) { return addPart(); } return getPart().get(0); }
/** * Adds and returns a new value for <b>part</b> () * * <p> * <b>Definition:</b> * A named part of a parameter. In many implementation context, a set of named parts is known as a \"Tuple\" * </p> */ public Parameter addPart() { Parameter newType = new Parameter(); getPart().add(newType); return newType; }