Tabnine Logo
TimeStamp.setWhen
Code IndexAdd Tabnine to your IDE (free)

How to use
setWhen
method
in
de.micromata.opengis.kml.v_2_2_0.TimeStamp

Best Java code snippets using de.micromata.opengis.kml.v_2_2_0.TimeStamp.setWhen (Showing top 4 results out of 315)

origin: micromata/javaapiforkml

/**
 * fluent setter
 * @see #setWhen(String)
 * 
 * @param when
 *     required parameter
 */
public TimeStamp withWhen(final String when) {
  this.setWhen(when);
  return this;
}
origin: de.micromata.jak/JavaAPIforKml

/**
 * fluent setter
 * @see #setWhen(String)
 * 
 * @param when
 *     required parameter
 */
public TimeStamp withWhen(final String when) {
  this.setWhen(when);
  return this;
}
origin: org.geoserver/kml

@Override
public Feature decorate(Feature feature, KmlEncodingContext context) {
  Placemark pm = (Placemark) feature;
  // try with the template
  SimpleFeature sf = context.getCurrentFeature();
  try {
    String[] times = execute(context.getTemplate(), sf);
    if (times != null && times.length > 0) {
      if (times.length == 1) {
        TimeStamp stamp = pm.createAndSetTimeStamp();
        stamp.setWhen(times[0]);
      } else {
        TimeSpan span = pm.createAndSetTimeSpan();
        span.setBegin(times[0]);
        span.setEnd(times[1]);
      }
    }
  } catch (IOException e) {
    throw new ServiceException(
        "Failed to apply KML time template to the current feature", e);
  }
  return pm;
}
origin: goGPS-Project/goGPS_Java

ts.setWhen(t);
de.micromata.opengis.kml.v_2_2_0TimeStampsetWhen

Popular methods of TimeStamp

  • <init>
  • getTimeStampObjectExtension
  • getTimeStampSimpleExtension
  • setTimeStampObjectExtension
  • setTimeStampSimpleExtension

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Permission (java.security)
    Legacy security code; do not use.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JComboBox (javax.swing)
  • Top plugins for WebStorm
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