Package org.openstreetmap.osmosis.core.domain.common

Examples of org.openstreetmap.osmosis.core.domain.common.SimpleTimestampContainer


    } else {
      Calendar calendar;
     
      calendar = Calendar.getInstance();
      calendar.set(Calendar.MILLISECOND, 0);
      dummyTimestampContainer = new SimpleTimestampContainer(calendar.getTime());
    }
   
    memberTypeParser = new MemberTypeParser();
  }
View Full Code Here


    } else {
      Calendar calendar;
     
      calendar = Calendar.getInstance();
      calendar.set(Calendar.MILLISECOND, 0);
      dummyTimestampContainer = new SimpleTimestampContainer(calendar.getTime());
    }
  }
View Full Code Here

   * @param changesetId
   *            The id of the changeset that this version of the entity was created by.
   */
  public CommonEntityData(long id, int version, Date timestamp, OsmUser user, long changesetId) {
    // Chain to the more specific constructor
    this(id, version, new SimpleTimestampContainer(timestamp), user, changesetId);
  }
View Full Code Here

   *            The tags to apply to the object.
   */
  public CommonEntityData(
      long id, int version, Date timestamp, OsmUser user, long changesetId, Collection<Tag> tags) {
    // Chain to the more specific constructor
    this(id, version, new SimpleTimestampContainer(timestamp), user, changesetId, tags);
  }
View Full Code Here

  }
 
 
  private static TimestampContainer readTimestampContainer(StoreReader sr, StoreClassRegister scr) {
    if (sr.readBoolean()) {
      return new SimpleTimestampContainer(new Date(sr.readLong()));
    } else {
      return null;
    }
  }
View Full Code Here

   *            The timestamp.
   */
  public void setTimestamp(Date timestamp) {
    assertWriteable();
   
    timestampContainer = new SimpleTimestampContainer(timestamp);
  }
View Full Code Here

   *            The id of the changeset that this version of the entity was created by.
   * @deprecated As of 0.40, replaced by Way(entityData).
   */
  public Way(long id, int version, Date timestamp, OsmUser user, long changesetId) {
    // Chain to the more specific constructor
    this(id, version, new SimpleTimestampContainer(timestamp), user, changesetId);
  }
View Full Code Here

   * @deprecated As of 0.40, replaced by Way(entityData, wayNodes).
   */
  public Way(long id, int version, Date timestamp, OsmUser user, long changesetId, Collection<Tag> tags,
      List<WayNode> wayNodes) {
    // Chain to the more specific constructor
    this(id, version, new SimpleTimestampContainer(timestamp), user, changesetId, tags, wayNodes);
  }
View Full Code Here

   * @deprecated As of 0.40, replaced by Node(entityData, latitude, longitude).
   */
  public Node(
      long id, int version, Date timestamp, OsmUser user, long changesetId, double latitude, double longitude) {
    // Chain to the more-specific constructor
    this(id, version, new SimpleTimestampContainer(timestamp), user, changesetId, latitude, longitude);
  }
View Full Code Here

   * @deprecated As of 0.40, replaced by Node(entityData, latitude, longitude).
   */
  public Node(long id, int version, Date timestamp, OsmUser user, long changesetId, Collection<Tag> tags,
      double latitude, double longitude) {
    // Chain to the more-specific constructor
    this(id, version, new SimpleTimestampContainer(timestamp), user, changesetId, tags, latitude, longitude);
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.core.domain.common.SimpleTimestampContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.