|
|||||||||
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<Way>
org.openstreetmap.osmosis.core.domain.v0_6.WayBuilder
@Deprecated public class WayBuilder
Provides the ability to manipulate ways.
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 |
---|
public WayBuilder()
public WayBuilder(Way entity)
entity
- The entity to initialise to.public WayBuilder(long id, int version, java.util.Date timestamp, OsmUser user, long changesetId)
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.public WayBuilder(long id, TimestampContainer timestampContainer, OsmUser user, long changesetId, int version)
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.public WayBuilder(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 WayBuilder initialize(Way way)
way
- The entity to initialise to.
public WayBuilder initialize(long newId, int newVersion, java.util.Date newTimestamp, OsmUser newUser, long newChangesetId)
initialize
in class EntityBuilder<Way>
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.
public WayBuilder initialize(long newId, int newVersion, TimestampContainer newTimestampContainer, OsmUser newUser, long newChangesetId)
initialize
in class EntityBuilder<Way>
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.
public java.util.List<WayNode> getWayNodes()
public WayBuilder clearWayNodes()
public WayBuilder setWayNodes(java.util.List<WayNode> newWayNodes)
newWayNodes
- The new way nodes.
public WayBuilder addWayNode(WayNode wayNode)
wayNode
- The new way node.
public Way buildEntity()
buildEntity
in class EntityBuilder<Way>
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 |