/** * Wraps the given telephone number in a new {@link DefaultTelephone} instance. */ @Override protected Telephone wrap(final String value) { return new DefaultTelephone(value, type); }
/** * Sets the function performed by the responsible party. * * @param newValue the new role. */ @Override public void setRole(final Role newValue) { super.setRole(newValue); } }
/** * Sets the version of the cited resource. * * @param newValue the new edition, or {@code null} if none. */ public void setEdition(final InternationalString newValue) { checkWritePermission(); edition = newValue; }
/** * Returns the constant defined in the {@link Citations} class for the given name. * * @param name the name of one of the citation constants defined in the {@code Citations} class. * @return the requested citation, or {@code null} if there is no constant for the given name. */ @Override public CitationConstant getCitationConstant(final String name) { final Citation c = Citations.fromName(name); return (c instanceof CitationConstant) ? (CitationConstant) c : null; }
/** * Sets the state, province of the location. * * @param newValue the new administrative area. */ public void setAdministrativeArea(final InternationalString newValue) { checkWritePermission(); administrativeArea = newValue; }
/** * Sets the name of an application profile that can be used with the online resource. * * @param newValue the new application profile. */ public void setApplicationProfile(final String newValue) { checkWritePermission(); applicationProfile = newValue; }
/** * Sets the mode in which the resource is represented. * * @param newValues the new presentation form, or {@code null} if none. */ public void setPresentationForms(final Collection<? extends PresentationForm> newValues) { presentationForms = writeCollection(newValues, presentationForms, PresentationForm.class); }
/** * Converts a GeoAPI interface to the SIS implementation for XML marshalling. * * @param value the bound type value, here the GeoAPI interface. * @return the adapter for the given value, here the SIS implementation. */ @Override public DefaultOnlineResource marshal(final OnlineResource value) { return DefaultOnlineResource.castOrCopy(value); } }
/** * Sets a new position of the individual in an organization. * * @param newValue the new position of the individual in an organization. */ public void setPositionName(final InternationalString newValue) { checkWritePermission(); positionName = newValue; } }
/** * Constructs a responsibility initialized to the specified values. * * @param role function performed by the responsible party, or {@code null}. * @param extent spatial or temporal extent of the role, or {@code null}. * @param party information about the party, or {@code null}. */ public DefaultResponsibility(final Role role, final Extent extent, final AbstractParty party) { this.role = role; this.extents = singleton(extent, Extent.class); this.parties = singleton(party, AbstractParty.class); }
/** * Constructs a contact initialized to the specified online resource. * * @param resource the on-line information that can be used to contact the individual or organization, * or {@code null} if none. */ public DefaultContact(final OnlineResource resource) { this.onlineResources = singleton(resource, OnlineResource.class); }
/** * Sets supplemental instructions on how or when to contact the individual or organization. * * @param newValue the new contact instructions, or {@code null} if none. */ public void setContactInstructions(final InternationalString newValue) { checkWritePermission(); contactInstructions = newValue; }
/** * Sets the contact information for the party. * * @param newValues the new contact information for the party. */ public void setContactInfo(final Collection<? extends Contact> newValues) { contactInfo = writeCollection(newValues, contactInfo, Contact.class); } }
/** * Sets the city of the location. * * @param newValue the new city, or {@code null} if none. */ public void setCity(final InternationalString newValue) { checkWritePermission(); city = newValue; }
/** * Sets the code for function performed by the online resource. * * @param newValue the new function, or {@code null} if none. */ public void setFunction(final OnLineFunction newValue) { checkWritePermission(); function = newValue; }
/** * Sets the information about the series, or aggregate dataset, of which the dataset is a part. * * @param newValue the new series. */ public void setSeries(final Series newValue) { checkWritePermission(); series = newValue; }
/** * Sets citation graphics or logo for cited party. * * @param newValues the new citation graphics or logo for cited party. * * @since 0.5 */ public void setGraphics(final Collection<? extends BrowseGraphic> newValues) { graphics = writeCollection(newValues, graphics, BrowseGraphic.class); } }
/** * Sets the country of the physical address. * * @param newValue the new country, or {@code null} if none. */ public void setCountry(final InternationalString newValue) { checkWritePermission(); country = newValue; }
/** * Sets the connection protocol to be used. * * @param newValue the new protocol, or {@code null} if none. */ public void setProtocol(final String newValue) { checkWritePermission(); protocol = newValue; }
/** * Sets ZIP or other postal code. * * @param newValue the new postal code, or {@code null} if none. */ public void setPostalCode(final String newValue) { checkWritePermission(); postalCode = newValue; } }