/** * set the role or position of the responsible person Only one of * {@link #getIndividualName() individualName}, {@link #getOrganisationName() organisationName} * and {@code positionName} shall be provided. * * <p>This implementation sets the position name of the first {@code Individual} found in the collection of * {@linkplain #getParties() parties}, or create a new individual if no existing instance was found.</p> * * @param newValue the new position name, or {@code null} if none. * * @deprecated As of ISO 19115:2014, replaced by {@link DefaultIndividual#setPositionName(InternationalString)}. */ @Deprecated public void setPositionName(final InternationalString newValue) { if (!setName(DefaultIndividual.class, true, newValue)) { getParties().add(new DefaultIndividual(null, newValue, null)); } }
/** * set the role or position of the responsible person Only one of * {@link #getIndividualName() individualName}, {@link #getOrganisationName() organisationName} * and {@code positionName} shall be provided. * * <p>This implementation sets the position name of the first {@code Individual} found in the collection of * {@linkplain #getParties() parties}, or create a new individual if no existing instance was found.</p> * * @param newValue the new position name, or {@code null} if none. * * @deprecated As of ISO 19115:2014, replaced by {@link DefaultIndividual#setPositionName(InternationalString)}. */ @Deprecated public void setPositionName(final InternationalString newValue) { if (!setName(DefaultIndividual.class, true, newValue)) { getParties().add(new DefaultIndividual(null, newValue, null)); } }
/** * Sets the name of the responsible organization. Only one of * {@link #getIndividualName() individualName}, {@code organisationName} * and {@link #getPositionName() positionName} shall be provided. * * <p>This implementation sets the name of the first {@code Organisation} found in the collection of * {@linkplain #getParties() parties}, or create a new organization if no existing instance was found.</p> * * @param newValue the new organization name, or {@code null} if none. * * @deprecated As of ISO 19115:2014, replaced by {@code setName(InternationalString)} in {@link DefaultOrganisation}. */ @Deprecated public void setOrganisationName(final InternationalString newValue) { if (!setName(DefaultOrganisation.class, false, Types.toInternationalString(newValue))) { getParties().add(new DefaultOrganisation(newValue, null, null, null)); } }
/** * Sets the name of the responsible organization. Only one of * {@link #getIndividualName() individualName}, {@code organisationName} * and {@link #getPositionName() positionName} shall be provided. * * <p>This implementation sets the name of the first {@code Organisation} found in the collection of * {@linkplain #getParties() parties}, or create a new organization if no existing instance was found.</p> * * @param newValue the new organization name, or {@code null} if none. * * @deprecated As of ISO 19115:2014, replaced by {@code setName(InternationalString)} in {@link DefaultOrganisation}. */ @Deprecated public void setOrganisationName(final InternationalString newValue) { if (!setName(DefaultOrganisation.class, false, Types.toInternationalString(newValue))) { getParties().add(new DefaultOrganisation(newValue, null, null, null)); } }
/** * Sets the name of the responsible person- surname, given name, title separated by a delimiter. * Only one of {@code individualName}, {@link #getOrganisationName() organisationName} * and {@link #getPositionName() positionName} shall be provided. * * <p>This implementation sets the name of the first {@code Individual} found in the collection of * {@linkplain #getParties() parties}, or create a new individual if no existing instance was found.</p> * * @param newValue the new individual name, or {@code null} if none. * * @deprecated As of ISO 19115:2014, replaced by {@code setName(InternationalString)} in {@link DefaultIndividual}. */ @Deprecated public void setIndividualName(final String newValue) { if (!setName(DefaultIndividual.class, false, Types.toInternationalString(newValue))) { getParties().add(new DefaultIndividual(newValue, null, null)); } }
/** * Sets the name of the responsible person- surname, given name, title separated by a delimiter. * Only one of {@code individualName}, {@link #getOrganisationName() organisationName} * and {@link #getPositionName() positionName} shall be provided. * * <p>This implementation sets the name of the first {@code Individual} found in the collection of * {@linkplain #getParties() parties}, or create a new individual if no existing instance was found.</p> * * @param newValue the new individual name, or {@code null} if none. * * @deprecated As of ISO 19115:2014, replaced by {@code setName(InternationalString)} in {@link DefaultIndividual}. */ @Deprecated public void setIndividualName(final String newValue) { if (!setName(DefaultIndividual.class, false, Types.toInternationalString(newValue))) { getParties().add(new DefaultIndividual(newValue, null, null)); } }