Codota Logo
TimeStamp.setWhen
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
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

  • Finding current android device location
  • getSystemService (Context)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
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