/** * Adds a given new value for <b>profile</b> () * * <p> * <b>Definition:</b> * Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide * </p> * @param theValue The profile to add (must not be <code>null</code>) */ public Type addProfile(UriDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getProfile().add(theValue); return this; }
/** * Gets the first repetition for <b>profile</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide * </p> */ public UriDt getProfileFirstRep() { if (getProfile().isEmpty()) { return addProfile(); } return getProfile().get(0); } /**
/** * Adds and returns a new value for <b>profile</b> () * * <p> * <b>Definition:</b> * Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide * </p> */ public UriDt addProfile() { UriDt newType = new UriDt(); getProfile().add(newType); return newType; }
/** * Gets the first repetition for <b>profile</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide * </p> */ public UriDt getProfileFirstRep() { if (getProfile().isEmpty()) { return addProfile(); } return getProfile().get(0); } /**
/** * Adds a given new value for <b>profile</b> () * * <p> * <b>Definition:</b> * Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide * </p> * @param theValue The profile to add (must not be <code>null</code>) */ public Type addProfile(UriDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getProfile().add(theValue); return this; }
/** * Adds and returns a new value for <b>profile</b> () * * <p> * <b>Definition:</b> * Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide * </p> */ public UriDt addProfile() { UriDt newType = new UriDt(); getProfile().add(newType); return newType; }