/** * Constructs a citation with the specified responsible party. This convenience constructor * initialize the citation title to the first non-null of the following properties: {@linkplain * ResponsibleParty#getOrganisationName organisation name}, {@linkplain * ResponsibleParty#getPositionName position name} or {@linkplain * ResponsibleParty#getIndividualName individual name}. * * @since 2.2 */ public CitationImpl(final ResponsibleParty party) { InternationalString title = party.getOrganisationName(); if (title == null) { title = party.getPositionName(); if (title == null) { String name = party.getIndividualName(); if (name != null) { title = new SimpleInternationalString(name); } } } setTitle(title); getCitedResponsibleParties().add(party); }
resource.setDescription(description); final CitationImpl citation = new CitationImpl(authority); final Collection<ResponsibleParty> parties = citation.getCitedResponsibleParties(); final ResponsibleParty oldParty; final Iterator<ResponsibleParty> it = parties.iterator();
/** * Constructs a citation with the specified responsible party. This convenience constructor * initialize the citation title to the first non-null of the following properties: * {@linkplain ResponsibleParty#getOrganisationName organisation name}, * {@linkplain ResponsibleParty#getPositionName position name} or * {@linkplain ResponsibleParty#getIndividualName individual name}. * * @since 2.2 */ public CitationImpl(final ResponsibleParty party) { InternationalString title = party.getOrganisationName(); if (title == null) { title = party.getPositionName(); if (title == null) { String name = party.getIndividualName(); if (name != null) { title = new SimpleInternationalString(name); } } } setTitle(title); getCitedResponsibleParties().add(party); }
/** * Constructs a citation with the specified responsible party. This convenience constructor * initialize the citation title to the first non-null of the following properties: * {@linkplain ResponsibleParty#getOrganisationName organisation name}, * {@linkplain ResponsibleParty#getPositionName position name} or * {@linkplain ResponsibleParty#getIndividualName individual name}. * * @since 2.2 */ public CitationImpl(final ResponsibleParty party) { InternationalString title = party.getOrganisationName(); if (title == null) { title = party.getPositionName(); if (title == null) { String name = party.getIndividualName(); if (name != null) { title = new SimpleInternationalString(name); } } } setTitle(title); getCitedResponsibleParties().add(party); }