/** * Returns the telephone numbers of a facsimile machine for the responsible organization or individual. * This method searches in the {@linkplain DefaultContact#getPhones() contact phones}, if the contact * that own this phone is known. * * @return telephone numbers of a facsimile machine for the responsible organization or individual. * * @deprecated As of ISO 19115:2014, replaced by a {@linkplain #getNumber() number} * code {@code TelephoneType.FACSIMILE}. */ @Override @Deprecated @XmlElement(name = "facsimile") @Dependencies({"getNumber", "getNumberType"}) public final Collection<String> getFacsimiles() { return new LegacyTelephones(getOwner(), UnsupportedCodeList.FACSIMILE); }
/** * Returns the telephone numbers by which individuals can speak to the responsible organization or individual. * This method searches in the {@linkplain DefaultContact#getPhones() contact phones}, if the contact that own * this phone is known. * * @return telephone numbers by which individuals can speak to the responsible organization or individual. * * @deprecated As of ISO 19115:2014, replaced by a {@linkplain #getNumber() number} * with {@code TelephoneType.VOICE}. */ @Override @Deprecated @XmlElement(name = "voice") @Dependencies({"getNumber", "getNumberType"}) public final Collection<String> getVoices() { return new LegacyTelephones(getOwner(), UnsupportedCodeList.VOICE); }
/** * Returns the telephone numbers by which individuals can speak to the responsible organization or individual. * This method searches in the {@linkplain DefaultContact#getPhones() contact phones}, if the contact that own * this phone is known. * * @return telephone numbers by which individuals can speak to the responsible organization or individual. * * @deprecated As of ISO 19115:2014, replaced by a {@linkplain #getNumber() number} * with {@code TelephoneType.VOICE}. */ @Override @Deprecated @Dependencies({"getNumber", "getNumberType"}) @XmlElement(name = "voice", namespace = LegacyNamespaces.GMD) public final Collection<String> getVoices() { if (FilterByVersion.LEGACY_METADATA.accept()) { return new LegacyTelephones(getOwner(), UnsupportedCodeList.VOICE); } return null; }
/** * Returns the telephone numbers of a facsimile machine for the responsible organization or individual. * This method searches in the {@linkplain DefaultContact#getPhones() contact phones}, if the contact * that own this phone is known. * * @return telephone numbers of a facsimile machine for the responsible organization or individual. * * @deprecated As of ISO 19115:2014, replaced by a {@linkplain #getNumber() number} * code {@code TelephoneType.FACSIMILE}. */ @Override @Deprecated @Dependencies({"getNumber", "getNumberType"}) @XmlElement(name = "facsimile", namespace = LegacyNamespaces.GMD) public final Collection<String> getFacsimiles() { if (FilterByVersion.LEGACY_METADATA.accept()) { return new LegacyTelephones(getOwner(), UnsupportedCodeList.FACSIMILE); } return null; // Marshalling newer ISO 19115-3 document. }