|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bretth.osmosis.core.domain.v0_5.Entity
com.bretth.osmosis.core.domain.v0_5.Way
public class Way
A data class representing a single OSM way.
Constructor Summary | |
---|---|
Way(long id,
java.util.Date timestamp,
OsmUser user)
Creates a new instance. |
|
Way(long id,
TimestampContainer timestampContainer,
OsmUser user)
Creates a new instance. |
|
Way(StoreReader sr,
StoreClassRegister scr)
Creates a new instance. |
Method Summary | |
---|---|
void |
addWayNode(WayNode wayNode)
Adds a new way node. |
void |
addWayNodes(java.util.Collection<WayNode> wayNodes)
Adds all node references in the collection to the node. |
int |
compareTo(Way comparisonWay)
Compares this way to the specified way. |
protected int |
compareWayNodes(java.util.List<WayNode> comparisonWayNodeList)
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> |
getWayNodeList()
Returns the attached list of way nodes. |
void |
store(StoreWriter sw,
StoreClassRegister scr)
Stores all state to the specified store writer. |
Methods inherited from class com.bretth.osmosis.core.domain.v0_5.Entity |
---|
addTag, addTags, compareTags, getFormattedTimestamp, getId, getTagList, getTimestamp, getUser |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Way(long id, java.util.Date timestamp, OsmUser user)
id
- The unique identifier.timestamp
- The last updated timestamp.user
- The user that last modified this entity.public Way(long id, TimestampContainer timestampContainer, OsmUser user)
id
- The unique identifier.timestampContainer
- The container holding the timestamp in an alternative
timestamp representation.user
- The user that last modified this entity.public 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
protected int compareWayNodes(java.util.List<WayNode> comparisonWayNodeList)
comparisonWayNodeList
- 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 java.util.List<WayNode> getWayNodeList()
public void addWayNode(WayNode wayNode)
wayNode
- The way node to add.public void addWayNodes(java.util.Collection<WayNode> wayNodes)
wayNodes
- The collection of node references to be added.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |