|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.domain.v0_6.EntityBuilder<Node>
org.openstreetmap.osmosis.core.domain.v0_6.NodeBuilder
@Deprecated public class NodeBuilder
Provides the ability to manipulate nodes.
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 |
---|
public NodeBuilder()
public NodeBuilder(Node entity)
entity
- The entity to initialise to.public NodeBuilder(long id, int version, java.util.Date timestamp, OsmUser user, long changesetId, double latitude, double longitude)
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.public NodeBuilder(long id, int version, TimestampContainer timestampContainer, OsmUser user, long changesetId, double latitude, double longitude)
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.public NodeBuilder(StoreReader sr, StoreClassRegister scr)
sr
- The store to read state from.scr
- Maintains the mapping between classes and their identifiers
within the store.Method Detail |
---|
public void store(StoreWriter sw, StoreClassRegister scr)
sw
- The writer that persists data to an underlying store.scr
- Maintains the mapping between classes and their identifiers
within the store.public NodeBuilder initialize(Node node)
node
- The entity to initialise to.
public NodeBuilder initialize(long newId, int newVersion, java.util.Date newTimestamp, OsmUser newUser, long newChangesetId, double newLatitude, double newLongitude)
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.
public NodeBuilder initialize(long newId, int newVersion, TimestampContainer newTimestampContainer, OsmUser newUser, long newChangesetId, double newLatitude, double newLongitude)
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.
public NodeBuilder setLatitude(double newLatitude)
newLatitude
- The new latitude.
public double getLatitude()
public NodeBuilder setLongitude(double newLongitude)
newLongitude
- The new longitude.
public double getLongitude()
public Node buildEntity()
buildEntity
in class EntityBuilder<Node>
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |