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

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

Best Java code snippets using org.deegree.commons.ows.metadata.party.Address.setCountry (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.partyAddresssetCountry

Popular methods of Address

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

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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