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

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

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

@Deprecated
public class NodeBuilder
extends EntityBuilder<Node>

Provides the ability to manipulate nodes.

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
NodeBuilder()
          Deprecated. Creates a new instance.
NodeBuilder(long id, int version, java.util.Date timestamp, OsmUser user, long changesetId, double latitude, double longitude)
          Deprecated. Creates a new instance.
NodeBuilder(long id, int version, TimestampContainer timestampContainer, OsmUser user, long changesetId, double latitude, double longitude)
          Deprecated. Creates a new instance.
NodeBuilder(Node entity)
          Deprecated. Creates a new instance.
NodeBuilder(StoreReader sr, StoreClassRegister scr)
          Deprecated. Creates a new instance.
 
Method Summary
 Node buildEntity()
          Deprecated. Builds a new entity instance based on the current data.
 double getLatitude()
          Deprecated. Gets the current latitude value.
 double getLongitude()
          Deprecated. Gets the current longitude value.
 NodeBuilder initialize(long newId, int newVersion, java.util.Date newTimestamp, OsmUser newUser, long newChangesetId, double newLatitude, double newLongitude)
          Deprecated. Initializes the contents of the builder to the specified data.
 NodeBuilder initialize(long newId, int newVersion, TimestampContainer newTimestampContainer, OsmUser newUser, long newChangesetId, double newLatitude, double newLongitude)
          Deprecated. Initializes the contents of the builder to the specified data.
 NodeBuilder initialize(Node node)
          Deprecated. Initializes the contents of the builder to the specified data.
 NodeBuilder setLatitude(double newLatitude)
          Deprecated. Sets a new latitude value.
 NodeBuilder setLongitude(double newLongitude)
          Deprecated. Sets a new longitude 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, initialize, 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

NodeBuilder

public NodeBuilder()
Deprecated. 
Creates a new instance.


NodeBuilder

public NodeBuilder(Node entity)
Deprecated. 
Creates a new instance.

Parameters:
entity - The entity to initialise to.

NodeBuilder

public NodeBuilder(long id,
                   int version,
                   java.util.Date timestamp,
                   OsmUser user,
                   long changesetId,
                   double latitude,
                   double longitude)
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.
latitude - The latitude of the node.
longitude - The longitude of the entity.

NodeBuilder

public NodeBuilder(long id,
                   int version,
                   TimestampContainer timestampContainer,
                   OsmUser user,
                   long changesetId,
                   double latitude,
                   double longitude)
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.
latitude - The latitude of the node.
longitude - The longitude of the entity.

NodeBuilder

public NodeBuilder(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 NodeBuilder initialize(Node node)
Deprecated. 
Initializes the contents of the builder to the specified data.

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

initialize

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

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.
newLatitude - The latitude of the node.
newLongitude - The longitude of the node.
Returns:
This object allowing method chaining.

initialize

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

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.
newLatitude - The latitude of the node.
newLongitude - The longitude of the node.
Returns:
This object allowing method chaining.

setLatitude

public NodeBuilder setLatitude(double newLatitude)
Deprecated. 
Sets a new latitude value.

Parameters:
newLatitude - The new latitude.
Returns:
This object allowing method chaining.

getLatitude

public double getLatitude()
Deprecated. 
Gets the current latitude value.

Returns:
The latitude.

setLongitude

public NodeBuilder setLongitude(double newLongitude)
Deprecated. 
Sets a new longitude value.

Parameters:
newLongitude - The new longitude.
Returns:
This object allowing method chaining.

getLongitude

public double getLongitude()
Deprecated. 
Gets the current longitude value.

Returns:
The longitude.

buildEntity

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

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

toString

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

Overrides:
toString in class java.lang.Object