congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Address.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.deegree.commons.ows.metadata.party.Address
constructor

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

Popular methods of Address

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • String (java.lang)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for WebStorm
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