|
|||||||||
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.Way
public class Way
A data class representing a single OSM way.
Constructor Summary | |
---|---|
Way(CommonEntityData entityData)
Creates a new instance. |
|
Way(CommonEntityData entityData,
java.util.List<WayNode> wayNodes)
Creates a new instance. |
|
Way(long id,
int version,
java.util.Date timestamp,
OsmUser user,
long changesetId)
Creates a new instance. |
|
Way(long id,
int version,
java.util.Date timestamp,
OsmUser user,
long changesetId,
java.util.Collection<Tag> tags,
java.util.List<WayNode> wayNodes)
Creates a new instance. |
|
Way(long id,
int version,
TimestampContainer timestampContainer,
OsmUser user,
long changesetId)
Creates a new instance. |
|
Way(long id,
int version,
TimestampContainer timestampContainer,
OsmUser user,
long changesetId,
java.util.Collection<Tag> tags,
java.util.List<WayNode> wayNodes)
Creates a new instance. |
|
Way(StoreReader sr,
StoreClassRegister scr)
Creates a new instance. |
Method Summary | |
---|---|
int |
compareTo(Way comparisonWay)
Compares this way to the specified way. |
protected int |
compareWayNodes(java.util.List<WayNode> comparisonWayNodes)
Compares this node list to the specified node list. |
boolean |
equals(java.lang.Object o)
|
EntityType |
getType()
Returns the specific data type represented by this entity. |
java.util.List<WayNode> |
getWayNodes()
Returns the attached list of way nodes. |
Way |
getWriteableInstance()
Returns a writeable instance of this entity. |
int |
hashCode()
|
boolean |
isClosed()
Is this way closed? (A way is closed if the first node id equals the last node id.) |
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 Way(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 Way(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 name of the user that last modified this entity.changesetId
- The id of the changeset that this version of the entity was created by.public Way(CommonEntityData entityData)
entityData
- The common entity data.public Way(long id, int version, java.util.Date timestamp, OsmUser user, long changesetId, java.util.Collection<Tag> tags, java.util.List<WayNode> wayNodes)
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.wayNodes
- The way nodes to apply to the objectpublic Way(long id, int version, TimestampContainer timestampContainer, OsmUser user, long changesetId, java.util.Collection<Tag> tags, java.util.List<WayNode> wayNodes)
id
- The unique identifier.version
- The version of the entity.timestampContainer
- The container holding the timestamp in an alternative
timestamp representation.user
- The name of 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.wayNodes
- The way nodes to apply to the objectpublic Way(CommonEntityData entityData, java.util.List<WayNode> wayNodes)
entityData
- The common entity data.wayNodes
- The way nodes to apply to the objectpublic Way(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 compareWayNodes(java.util.List<WayNode> comparisonWayNodes)
comparisonWayNodes
- The node list to compare to.
public int compareTo(Way comparisonWay)
compareTo
in interface java.lang.Comparable<Way>
comparisonWay
- The way to compare to.
public void makeReadOnly()
makeReadOnly
in class Entity
public java.util.List<WayNode> getWayNodes()
public Way getWriteableInstance()
getWriteableInstance
in class Entity
public boolean isClosed()
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 |