|
|||||||||
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.Entity
org.openstreetmap.osmosis.core.domain.v0_6.Relation
public class Relation
A data class representing a single OSM relation.
Constructor Summary | |
---|---|
Relation(CommonEntityData entityData)
Creates a new instance. |
|
Relation(CommonEntityData entityData,
java.util.List<RelationMember> members)
Creates a new instance. |
|
Relation(long id,
int version,
java.util.Date timestamp,
OsmUser user,
long changesetId)
Creates a new instance. |
|
Relation(long id,
int version,
java.util.Date timestamp,
OsmUser user,
long changesetId,
java.util.Collection<Tag> tags,
java.util.List<RelationMember> members)
Creates a new instance. |
|
Relation(long id,
int version,
TimestampContainer timestampContainer,
OsmUser user,
long changesetId)
Creates a new instance. |
|
Relation(long id,
int version,
TimestampContainer timestampContainer,
OsmUser user,
long changesetId,
java.util.Collection<Tag> tags,
java.util.List<RelationMember> members)
Creates a new instance. |
|
Relation(StoreReader sr,
StoreClassRegister scr)
Creates a new instance. |
Method Summary | |
---|---|
protected int |
compareMemberList(java.util.Collection<RelationMember> comparisonMemberList)
Compares this member list to the specified member list. |
int |
compareTo(Relation comparisonRelation)
Compares this relation to the specified relation. |
boolean |
equals(java.lang.Object o)
|
java.util.List<RelationMember> |
getMembers()
Returns the attached list of relation members. |
EntityType |
getType()
Returns the specific data type represented by this entity. |
Relation |
getWriteableInstance()
Returns a writeable instance of this entity. |
int |
hashCode()
|
void |
makeReadOnly()
Configures the object to be read-only. |
void |
store(StoreWriter sw,
StoreClassRegister scr)
Stores all state to the specified store writer. |
java.lang.String |
toString()
$. |
Methods inherited from class org.openstreetmap.osmosis.core.domain.v0_6.Entity |
---|
assertWriteable, compareTags, getChangesetId, getFormattedTimestamp, getId, getTags, getTimestamp, getTimestampContainer, getUser, getVersion, isReadOnly, setChangesetId, setId, setTimestamp, setTimestampContainer, setUser, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Relation(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 Relation(long id, int version, TimestampContainer timestampContainer, OsmUser user, 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 Relation(CommonEntityData entityData)
entityData
- The common entity data.public Relation(long id, int version, java.util.Date timestamp, OsmUser user, long changesetId, java.util.Collection<Tag> tags, java.util.List<RelationMember> members)
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.tags
- The tags to apply to the object.members
- The members to apply to the object.public Relation(long id, int version, TimestampContainer timestampContainer, OsmUser user, long changesetId, java.util.Collection<Tag> tags, java.util.List<RelationMember> members)
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.tags
- The tags to apply to the object.members
- The members to apply to the object.public Relation(CommonEntityData entityData, java.util.List<RelationMember> members)
entityData
- The common entity data.members
- The members to apply to the object.public Relation(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)
store
in interface Storeable
store
in class Entity
sw
- The writer that persists data to an underlying store.scr
- Maintains the mapping between classes and their identifiers
within the store.public EntityType getType()
getType
in class Entity
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected int compareMemberList(java.util.Collection<RelationMember> comparisonMemberList)
comparisonMemberList
- The member list to compare to.
public int compareTo(Relation comparisonRelation)
compareTo
in interface java.lang.Comparable<Relation>
comparisonRelation
- The relation to compare to.
public void makeReadOnly()
makeReadOnly
in class Entity
public Relation getWriteableInstance()
getWriteableInstance
in class Entity
public java.util.List<RelationMember> getMembers()
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 |