public class WayData extends PrimitiveData implements IWay
AbstractPrimitive.KeyValueVisitor
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Long> |
nodes |
changesetId, FLAG_DELETED, FLAG_INCOMPLETE, FLAG_MODIFIED, FLAG_VISIBLE, flags, id, keys, timestamp, user, version
Constructor and Description |
---|
WayData()
Constructs a new
NodeData . |
WayData(WayData data)
Constructs a new
WayData . |
Modifier and Type | Method and Description |
---|---|
void |
accept(PrimitiveVisitor visitor) |
long |
getNodeId(int idx) |
java.util.List<java.lang.Long> |
getNodes() |
int |
getNodesCount() |
OsmPrimitiveType |
getType()
Gets the type of object represented by this object.
|
boolean |
isClosed() |
WayData |
makeCopy() |
void |
setNodes(java.util.List<java.lang.Long> nodes) |
java.lang.String |
toString() |
getFilteredList, keysChangedImpl, setId, setIncomplete, setVersion
clearOsmMetadata, cloneFrom, generateUniqueId, get, getChangesetId, getDisplayType, getFlagsAsString, getId, getIgnoreCase, getKeys, getLocalName, getName, getNumKeys, getPrimitiveId, getRawTimestamp, getTimestamp, getUniqueId, getUser, getVersion, hasKey, hasKeys, hasTag, hasTag, hasTag, isDeleted, isIncomplete, isKeyFalse, isKeyTrue, isModified, isNew, isNewOrUndeleted, isTimestampEmpty, isUndeleted, isUsable, isVisible, keySet, put, remove, removeAll, setChangesetId, setDeleted, setKeys, setModified, setOsmId, setRawTimestamp, setTimestamp, setUser, setVisible, updateFlags, visitKeys
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChangesetId, getId, getLocalName, getName, getPrimitiveId, getRawTimestamp, getTimestamp, getUser, getVersion, isDeleted, isIncomplete, isModified, isNewOrUndeleted, isTimestampEmpty, isVisible, setChangesetId, setDeleted, setModified, setOsmId, setRawTimestamp, setTimestamp, setUser, setVisible
get, getKeys, hasKeys, keySet, put, remove, removeAll, setKeys
getUniqueId, isNew
private java.util.List<java.lang.Long> nodes
public WayData()
NodeData
.public java.util.List<java.lang.Long> getNodes()
public int getNodesCount()
getNodesCount
in interface IWay
public void setNodes(java.util.List<java.lang.Long> nodes)
public WayData makeCopy()
makeCopy
in class PrimitiveData
public java.lang.String toString()
toString
in class PrimitiveData
public OsmPrimitiveType getType()
PrimitiveId
getType
in interface PrimitiveId
getType
in class PrimitiveData
Node
,
Way
,
Relation
public void accept(PrimitiveVisitor visitor)
accept
in interface IPrimitive