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

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

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

@Deprecated
public class RelationBuilder
extends EntityBuilder<Relation>

Provides the ability to manipulate relations.

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
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

RelationBuilder

public RelationBuilder()
Deprecated. 
Creates a new instance.


RelationBuilder

public RelationBuilder(Relation entity)
Deprecated. 
Creates a new instance.

Parameters:
entity - The entity to initialise to.

RelationBuilder

public RelationBuilder(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.

RelationBuilder

public RelationBuilder(long id,
                       TimestampContainer timestampContainer,
                       OsmUser user,
                       int version,
                       long changesetId)
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.

RelationBuilder

public RelationBuilder(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 RelationBuilder initialize(Relation relation)
Deprecated. 
Initializes the contents of the builder to the specified data.

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

initialize

public 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.

Overrides:
initialize in class EntityBuilder<Relation>
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 RelationBuilder 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<Relation>
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.

getMembers

public java.util.List<RelationMember> getMembers()
Deprecated. 
Obtains the members.

Returns:
The members.

clearMembers

public RelationBuilder clearMembers()
Deprecated. 
Remove all existing members.

Returns:
This object allowing method chaining.

setMembers

public RelationBuilder setMembers(java.util.List<RelationMember> newMembers)
Deprecated. 
Sets a new members value.

Parameters:
newMembers - The new relation members.
Returns:
This object allowing method chaining.

addMember

public RelationBuilder addMember(RelationMember member)
Deprecated. 
Adds a new member.

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

buildEntity

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

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

toString

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

Overrides:
toString in class java.lang.Object