Tabnine Logo
Address.setCity
Code IndexAdd Tabnine to your IDE (free)

How to use
setCity
method
in
org.deegree.commons.ows.metadata.party.Address

Best Java code snippets using org.deegree.commons.ows.metadata.party.Address.setCity (Showing top 2 results out of 315)

origin: deegree/deegree3

public static Address convertFromJAXB( AddressType ad ) {
  if ( ad == null ) {
    return null;
  }
  Address address = new Address();
  address.setAdministrativeArea( ad.getAdministrativeArea() );
  address.setCity( ad.getCity() );
  address.setCountry( ad.getCountry() );
  address.setPostalCode( ad.getPostalCode() );
  address.setDeliveryPoint( ad.getDeliveryPoint() );
  return address;
}
origin: deegree/deegree3

/**
 * @param addressEl
 *            context {@link OMElement}
 * @return an {@link Address} instance, never <code>null</code>
 */
protected Address parseAddress( OMElement addressEl ) {
  Address address = new Address();
  XPath xpath = new XPath( "ows:DeliveryPoint", nsContext );
  String[] deliveryPoints = getNodesAsStrings( addressEl, xpath );
  for ( String deliveryPoint : deliveryPoints ) {
    address.getDeliveryPoint().add( deliveryPoint );
  }
  xpath = new XPath( "ows:City", nsContext );
  address.setCity( getNodeAsString( addressEl, xpath, null ) );
  xpath = new XPath( "ows:AdministrativeArea", nsContext );
  address.setAdministrativeArea( getNodeAsString( addressEl, xpath, null ) );
  xpath = new XPath( "ows:PostalCode", nsContext );
  address.setPostalCode( getNodeAsString( addressEl, xpath, null ) );
  xpath = new XPath( "ows:Country", nsContext );
  address.setCountry( getNodeAsString( addressEl, xpath, null ) );
  xpath = new XPath( "ows:ElectronicMailAddress", nsContext );
  String[] eMails = getNodesAsStrings( addressEl, xpath );
  for ( int i = 0; i < eMails.length; i++ ) {
    address.getElectronicMailAddress().add( eMails[i] );
  }
  return address;
}
org.deegree.commons.ows.metadata.partyAddresssetCity

Popular methods of Address

  • getDeliveryPoint
  • getAdministrativeArea
  • getCity
  • getCountry
  • getElectronicMailAddress
  • getPostalCode
  • <init>
  • setAdministrativeArea
  • setCountry
  • setPostalCode
  • isPhysicalInfoAvailable
    Returns whether any information on the physical address is available.
  • setDeliveryPoint
  • isPhysicalInfoAvailable,
  • setDeliveryPoint,
  • setElectronicMailAddress

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Runner (org.openjdk.jmh.runner)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now