Codota Logo
Telephone
Code IndexAdd Codota to your IDE (free)

How to use
Telephone
in
org.deegree.commons.ows.metadata.party

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

/**
 * @param phoneEl
 *            context {@link OMElement}
 * @return an {@link Telephone} instance, never <code>null</code>
 */
protected Telephone parsePhone( OMElement phoneEl ) {
  Telephone phone = new Telephone();
  XPath xpath = new XPath( "ows:Voice", nsContext );
  String[] voices = getNodesAsStrings( phoneEl, xpath );
  for ( int i = 0; i < voices.length; i++ ) {
    phone.getVoice().add( voices[i] );
  }
  xpath = new XPath( "ows:Facsimile", nsContext );
  String[] faxes = getNodesAsStrings( phoneEl, xpath );
  for ( int i = 0; i < faxes.length; i++ ) {
    phone.getFacsimile().add( faxes[i] );
  }
  return phone;
}
origin: deegree/deegree3

if ( !serviceContact.getPhone().getVoice().isEmpty() ) {
  writeOptionalElement( writer, owsNS, "Voice", serviceContact.getPhone().getVoice().get( 0 ) );
if ( !serviceContact.getPhone().getFacsimile().isEmpty() ) {
  writeOptionalElement( writer, owsNS, "Facsimile", serviceContact.getPhone().getFacsimile().get( 0 ) );
origin: deegree/deegree3

public static ResponsibleParty convertFromJAXB( ServiceContactType sc ) {
  if ( sc == null ) {
    return null;
  }
  ResponsibleParty res = new ResponsibleParty();
  res.setIndividualName( sc.getIndividualName() );
  res.setPositionName( sc.getPositionName() );
  res.setRole( new CodeType( sc.getRole() ) );
  ContactInfo info = new ContactInfo();
  info.setContactInstructions( sc.getContactInstructions() );
  info.setHoursOfService( sc.getHoursOfService() );
  try {
    info.setOnlineResource( new URL( sc.getOnlineResource() ) );
  } catch ( MalformedURLException e ) {
    // ignore this, schemas should be fixed so it already is an URL
  }
  Telephone phone = new Telephone();
  phone.setFacsimile( Collections.singletonList( sc.getFacsimile() ) );
  phone.setVoice( Collections.singletonList( sc.getPhone() ) );
  info.setPhone( phone );
  Address ad = convertFromJAXB( sc.getAddress() );
  if ( ad != null ) {
    ad.setElectronicMailAddress( sc.getElectronicMailAddress() );
    info.setAddress( ad );
  }
  res.setContactInfo( info );
  return res;
}
origin: deegree/deegree3

           contact.getContactInfo().getPhone().getVoice().get( 0 ) );
maybeWriteElementNS( writer, WMSNS, "ContactFacsimileTelephone",
           contact.getContactInfo().getPhone().getFacsimile().get( 0 ) );
if ( addr != null && !addr.getElectronicMailAddress().isEmpty() ) {
  maybeWriteElementNS( writer, WMSNS, "ContactElectronicMailAddress",
origin: deegree/deegree3

          contact.getContactInfo().getPhone().getVoice().get( 0 ) );
maybeWriteElement( writer, "ContactFacsimileTelephone",
          contact.getContactInfo().getPhone().getFacsimile().get( 0 ) );
if ( addr != null && !addr.getElectronicMailAddress().isEmpty() ) {
  maybeWriteElement( writer, "ContactElectronicMailAddress", addr.getElectronicMailAddress().get( 0 ) );
org.deegree.commons.ows.metadata.partyTelephone

Javadoc

The Telephone bean encapsulates the corresponding GetCapabilities response metadata element.

Most used methods

  • getFacsimile
  • getVoice
  • <init>
  • setFacsimile
  • setVoice

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Path (java.nio.file)
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now