org.openstreetmap.osmosis.core.domain.v0_6
Class WayBuilder

java.lang.Object
  extended by org.openstreetmap.osmosis.core.domain.v0_6.EntityBuilder<Way>
      extended by org.openstreetmap.osmosis.core.domain.v0_6.WayBuilder
All Implemented Interfaces:
Storeable

Deprecated. Builder classes are not required because entities are now writeable.

@Deprecated
public class WayBuilder
extends EntityBuilder<Way>

Provides the ability to manipulate ways.

Author:
Brett Henderson

Field Summary
 
Fields inherited from class org.openstreetmap.osmosis.core.domain.v0_6.EntityBuilder
changesetId, id, tags, timestampContainer, user, version
 
Constructor Summary
WayBuilder()
          Deprecated. Creates a new instance.
WayBuilder(long id, int version, java.util.Date timestamp, OsmUser user, long changesetId)
          Deprecated. Creates a new instance.
WayBuilder(long id, TimestampContainer timestampContainer, OsmUser user, long changesetId, int version)
          Deprecated. Creates a new instance.
WayBuilder(StoreReader sr, StoreClassRegister scr)
          Deprecated. Creates a new instance.
WayBuilder(Way entity)
          Deprecated. Creates a new instance.
 
Method Summary
 WayBuilder addWayNode(WayNode wayNode)
          Deprecated. Adds a new way node.
 Way buildEntity()
          Deprecated. Builds a new entity instance based on the current data.
 WayBuilder clearWayNodes()
          Deprecated. Remove all existing way nodes.
 java.util.List<WayNode> getWayNodes()
          Deprecated. Obtains the way nodes.
 WayBuilder initialize(long newId, int newVersion, java.util.Date newTimestamp, OsmUser newUser, long newChangesetId)
          Deprecated. Initializes the contents of the builder to the specified data.
 WayBuilder initialize(long newId, int newVersion, TimestampContainer newTimestampContainer, OsmUser newUser, long newChangesetId)
          Deprecated. Initializes the contents of the builder to the specified data.
 WayBuilder initialize(Way way)
          Deprecated. Initializes the contents of the builder to the specified data.
 WayBuilder setWayNodes(java.util.List<WayNode> newWayNodes)
          Deprecated. Sets a new way nodes value.
 void store(StoreWriter sw, StoreClassRegister scr)
          Deprecated. Stores all state to the specified store writer.
 java.lang.String toString()
          Deprecated. $.
 
Methods inherited from class org.openstreetmap.osmosis.core.domain.v0_6.EntityBuilder
addTag, clearTags, getChangesetId, getId, getTags, getTimestamp, getTimestampContainer, getUser, getVersion, initialize, setChangesetId, setId, setTags, setTimestamp, setTimestamp, setUser, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WayBuilder

public WayBuilder()
Deprecated. 
Creates a new instance.


WayBuilder

public WayBuilder(Way entity)
Deprecated. 
Creates a new instance.

Parameters:
entity - The entity to initialise to.

WayBuilder

public WayBuilder(long id,
                  int version,
                  java.util.Date timestamp,
                  OsmUser user,
                  long changesetId)
Deprecated. 
Creates a new instance.

Parameters:
id - The unique identifier.
version - The version of the entity.
timestamp - The last updated timestamp.
user - The user that last modified this entity.
changesetId - The id of the changeset that this version of the entity was created by.

WayBuilder

public WayBuilder(long id,
                  TimestampContainer timestampContainer,
                  OsmUser user,
                  long changesetId,
                  int version)
Deprecated. 
Creates a new instance.

Parameters:
id - The unique identifier.
version - The version of the entity.
timestampContainer - The container holding the timestamp in an alternative timestamp representation.
user - The user that last modified this entity.
changesetId - The id of the changeset that this version of the entity was created by.

WayBuilder

public WayBuilder(StoreReader sr,
                  StoreClassRegister scr)
Deprecated. 
Creates a new instance.

Parameters:
sr - The store to read state from.
scr - Maintains the mapping between classes and their identifiers within the store.
Method Detail

store

public void store(StoreWriter sw,
                  StoreClassRegister scr)
Deprecated. 
Stores all state to the specified store writer.

Parameters:
sw - The writer that persists data to an underlying store.
scr - Maintains the mapping between classes and their identifiers within the store.

initialize

public WayBuilder initialize(Way way)
Deprecated. 
Initializes the contents of the builder to the specified data.

Parameters:
way - The entity to initialise to.
Returns:
This object allowing method chaining.

initialize

public WayBuilder initialize(long newId,
                             int newVersion,
                             java.util.Date newTimestamp,
                             OsmUser newUser,
                             long newChangesetId)
Deprecated. 
Initializes the contents of the builder to the specified data.

Overrides:
initialize in class EntityBuilder<Way>
Parameters:
newId - The unique identifier.
newVersion - The version of the entity.
newTimestamp - The last updated timestamp.
newUser - The user that last modified this entity.
newChangesetId - The id of the changeset that this version of the entity was created by.
Returns:
This object allowing method chaining.

initialize

public WayBuilder initialize(long newId,
                             int newVersion,
                             TimestampContainer newTimestampContainer,
                             OsmUser newUser,
                             long newChangesetId)
Deprecated. 
Initializes the contents of the builder to the specified data.

Overrides:
initialize in class EntityBuilder<Way>
Parameters:
newId - The unique identifier.
newVersion - The version of the entity.
newTimestampContainer - The container holding the timestamp in an alternative timestamp representation.
newUser - The user that last modified this entity.
newChangesetId - The id of the changeset that this version of the entity was created by.
Returns:
This object allowing method chaining.

getWayNodes

public java.util.List<WayNode> getWayNodes()
Deprecated. 
Obtains the way nodes.

Returns:
The way nodes.

clearWayNodes

public WayBuilder clearWayNodes()
Deprecated. 
Remove all existing way nodes.

Returns:
This object allowing method chaining.

setWayNodes

public WayBuilder setWayNodes(java.util.List<WayNode> newWayNodes)
Deprecated. 
Sets a new way nodes value.

Parameters:
newWayNodes - The new way nodes.
Returns:
This object allowing method chaining.

addWayNode

public WayBuilder addWayNode(WayNode wayNode)
Deprecated. 
Adds a new way node.

Parameters:
wayNode - The new way node.
Returns:
This object allowing method chaining.

buildEntity

public Way buildEntity()
Deprecated. 
Builds a new entity instance based on the current data.

Specified by:
buildEntity in class EntityBuilder<Way>
Returns:
The new entity instance.

toString

public java.lang.String toString()
Deprecated. 
$.

Overrides:
toString in class java.lang.Object