/** * Returns whether any information on the physical address is available. * * @returns <code>true</code>, if any physical information is available, <code>false</code> otherwise */ public boolean isPhysicalInfoAvailable() { return !getDeliveryPoint().isEmpty() || getCity() != null || getAdministrativeArea() != null || getPostalCode() != null || getCountry() != null; } }
writeOptionalElement( writer, owsNS, "City", address.getCity() ); writeOptionalElement( writer, owsNS, "AdministrativeArea", address.getAdministrativeArea() ); writeOptionalElement( writer, owsNS, "PostalCode", address.getPostalCode() ); writeOptionalElement( writer, owsNS, "Country", address.getCountry() ); exportSimpleStrings( writer, address.getElectronicMailAddress(), owsNS, "ElectronicMailAddress" );
writeElement( writer, WMSNS, "PostCode", addr.getPostalCode() ); writeElement( writer, WMSNS, "Country", addr.getCountry() ); writer.writeEndElement();
writeElement( writer, "PostCode", addr.getPostalCode() ); writeElement( writer, "Country", addr.getCountry() ); writer.writeEndElement();