Codota Logo
CategoricalTimeLocationValueTripleType.addNewTime
Code IndexAdd Codota to your IDE (free)

How to use
addNewTime
method
in
eu.europa.ec.inspire.schemas.omso.x30.CategoricalTimeLocationValueTripleType

Best Java code snippets using eu.europa.ec.inspire.schemas.omso.x30.CategoricalTimeLocationValueTripleType.addNewTime (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.n52.sensorweb.sos/coding-inspire-omso

/**
 * Create a {@link CategoricalTimeLocationValueTripleType} from
 * {@link TimeLocationValueTriple}
 * 
 * @param timeLocationValueTriple
 *            The {@link TimeLocationValueTriple} to encode
 * @return The encoded {@link TimeLocationValueTriple}
 * @throws OwsExceptionReport
 *             If an error occurs
 */
private TimeValuePairType createCategoricalTimeLocationValueTripleType(
    TimeLocationValueTriple timeLocationValueTriple) throws OwsExceptionReport {
  CategoricalTimeLocationValueTripleType ctlvtt = CategoricalTimeLocationValueTripleType.Factory.newInstance();
  ctlvtt.addNewTime().setStringValue(getTimeString(timeLocationValueTriple.getTime()));
  ctlvtt.addNewLocation().addNewPoint().set(encodeGML(timeLocationValueTriple.getLocation()));
  if (timeLocationValueTriple.getValue() instanceof CategoryValue) {
    CategoryValue categoryValue = (CategoryValue) timeLocationValueTriple.getValue();
    if (categoryValue.isSetValue()) {
      ctlvtt.addNewValue().addNewCategory().set(encodeSweCommon(convertToSweCategory(categoryValue)));
    } else {
      ctlvtt.addNewValue().setNil();
      ctlvtt.addNewMetadata().addNewTVPMetadata().addNewNilReason().setNilReason("missing");
    }
  }
  return ctlvtt;
}
origin: org.n52.svalbard/svalbard-xmlbeans

/**
 * Create a {@link CategoricalTimeLocationValueTripleType} from
 * {@link TimeLocationValueTriple}
 *
 * @param timeLocationValueTriple
 *            The {@link TimeLocationValueTriple} to encode
 * @return The encoded {@link TimeLocationValueTriple}
 * @throws EncodingException
 *             If an error occurs
 */
private TimeValuePairType createCategoricalTimeLocationValueTripleType(
    TimeLocationValueTriple timeLocationValueTriple) throws EncodingException {
  CategoricalTimeLocationValueTripleType ctlvtt = CategoricalTimeLocationValueTripleType.Factory.newInstance();
  ctlvtt.addNewTime().setStringValue(getTimeString(timeLocationValueTriple.getTime()));
  ctlvtt.addNewLocation().addNewPoint().set(encodeGML(timeLocationValueTriple.getLocation()));
  if (timeLocationValueTriple.getValue() instanceof CategoryValue) {
    CategoryValue categoryValue = (CategoryValue) timeLocationValueTriple.getValue();
    if (categoryValue.isSetValue()) {
      ctlvtt.addNewValue().addNewCategory().set(encodeSweCommon(convertToSweCategory(categoryValue)));
    } else {
      ctlvtt.addNewValue().setNil();
      ctlvtt.addNewMetadata().addNewTVPMetadata().addNewNilReason().setNilReason(MISSING);
    }
  }
  return ctlvtt;
}
eu.europa.ec.inspire.schemas.omso.x30CategoricalTimeLocationValueTripleTypeaddNewTime

Popular methods of CategoricalTimeLocationValueTripleType

  • addNewLocation
    Appends and returns a new empty "location" element
  • addNewMetadata
  • addNewValue
  • set

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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