|
|||||||||
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<Relation>
org.openstreetmap.osmosis.core.domain.v0_6.RelationBuilder
@Deprecated public class RelationBuilder
Provides the ability to manipulate relations.
Field Summary |
---|
Fields inherited from class org.openstreetmap.osmosis.core.domain.v0_6.EntityBuilder |
---|
changesetId, id, tags, timestampContainer, user, version |
Constructor Summary | |
---|---|
RelationBuilder()
Deprecated. Creates a new instance. |
|
RelationBuilder(long id,
int version,
java.util.Date timestamp,
OsmUser user,
long changesetId)
Deprecated. Creates a new instance. |
|
RelationBuilder(long id,
TimestampContainer timestampContainer,
OsmUser user,
int version,
long changesetId)
Deprecated. Creates a new instance. |
|
RelationBuilder(Relation entity)
Deprecated. Creates a new instance. |
|
RelationBuilder(StoreReader sr,
StoreClassRegister scr)
Deprecated. Creates a new instance. |
Method Summary | |
---|---|
RelationBuilder |
addMember(RelationMember member)
Deprecated. Adds a new member. |
Relation |
buildEntity()
Deprecated. Builds a new entity instance based on the current data. |
RelationBuilder |
clearMembers()
Deprecated. Remove all existing members. |
java.util.List<RelationMember> |
getMembers()
Deprecated. Obtains the members. |
RelationBuilder |
initialize(long newId,
int newVersion,
java.util.Date newTimestamp,
OsmUser newUser,
long newChangesetId)
Deprecated. Initializes the contents of the builder to the specified data. |
RelationBuilder |
initialize(long newId,
int newVersion,
TimestampContainer newTimestampContainer,
OsmUser newUser,
long newChangesetId)
Deprecated. Initializes the contents of the builder to the specified data. |
RelationBuilder |
initialize(Relation relation)
Deprecated. Initializes the contents of the builder to the specified data. |
RelationBuilder |
setMembers(java.util.List<RelationMember> newMembers)
Deprecated. Sets a new members 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 RelationBuilder()
public RelationBuilder(Relation entity)
entity
- The entity to initialise to.public RelationBuilder(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 RelationBuilder(long id, TimestampContainer timestampContainer, OsmUser user, int version, long changesetId)
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 RelationBuilder(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 RelationBuilder initialize(Relation relation)
relation
- The entity to initialise to.
public RelationBuilder initialize(long newId, int newVersion, java.util.Date newTimestamp, OsmUser newUser, long newChangesetId)
initialize
in class EntityBuilder<Relation>
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 RelationBuilder initialize(long newId, int newVersion, TimestampContainer newTimestampContainer, OsmUser newUser, long newChangesetId)
initialize
in class EntityBuilder<Relation>
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<RelationMember> getMembers()
public RelationBuilder clearMembers()
public RelationBuilder setMembers(java.util.List<RelationMember> newMembers)
newMembers
- The new relation members.
public RelationBuilder addMember(RelationMember member)
member
- The new member.
public Relation buildEntity()
buildEntity
in class EntityBuilder<Relation>
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 |