public class WayData extends PrimitiveData implements IWay
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Long> |
nodes |
private static long |
serialVersionUID |
changesetId, FLAG_ANNOTATED, FLAG_DELETED, FLAG_DIRECTION_REVERSED, FLAG_DISABLED, FLAG_DISABLED_TYPE, FLAG_HAS_DIRECTIONS, FLAG_HIDDEN_TYPE, FLAG_HIDE_IF_DISABLED, FLAG_HIGHLIGHTED, FLAG_INCOMPLETE, FLAG_MODIFIED, FLAG_PRESERVED, FLAG_TAGGED, FLAG_VISIBLE, flags, id, keys, timestamp, user, version
MAX_TAG_LENGTH
Constructor and Description |
---|
WayData()
Constructs a new
NodeData . |
WayData(long id)
Constructs a new
WayData with given id. |
WayData(WayData data)
Constructs a new
WayData . |
Modifier and Type | Method and Description |
---|---|
void |
accept(PrimitiveVisitor visitor)
Makes the given visitor visit this primitive.
|
long |
getNodeId(int idx)
Returns id of the node at given index.
|
java.util.List<java.lang.Long> |
getNodes()
Gets a list of nodes the way consists of
|
int |
getNodesCount()
Replies the number of nodes in this way.
|
OsmPrimitiveType |
getType()
Gets the type of object represented by this object.
|
boolean |
isClosed()
Determines if this way is closed.
|
WayData |
makeCopy()
Returns a copy of this primitive data.
|
void |
setNodes(java.util.List<java.lang.Long> nodes)
Sets the nodes array
|
java.lang.String |
toString() |
declareCachedStyleUpToDate, getCachedStyle, getFilteredList, hasDirectionKeys, isAnnotated, isCachedStyleUpToDate, isHighlighted, isTagged, keysChangedImpl, reversedDirection, setCachedStyle, setHighlighted, setId, setIncomplete, setVersion
advanceUniqueId, clearOsmMetadata, cloneFrom, currentUniqueId, generateUniqueId, get, getChangesetId, getFlagsAsString, getId, getIgnoreCase, getKeys, getLocalName, getName, getNumKeys, getPrimitiveId, getRawTimestamp, getTimestamp, getUniqueId, getUser, getVersion, hasKey, hasKey, hasKeys, isDeleted, isIncomplete, isKeyFalse, isKeyTrue, isModified, isNew, isNewOrUndeleted, isTimestampEmpty, isUndeleted, isUsable, isVisible, keySet, put, remove, removeAll, setChangesetId, setDeleted, setKeys, setKeys, setModified, setOsmId, setRawTimestamp, setTimestamp, setUser, setVisible, updateFlags, visitKeys
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo, getDisplayName, getRealNodesCount
getChangesetId, getDisplayType, getId, getLocalName, getName, getPrimitiveId, getRawTimestamp, getTimestamp, getUser, getVersion, hasDirectionKeys, isAnnotated, isDeleted, isDisabled, isDisabledAndHidden, isDrawable, isHighlighted, isIncomplete, isMemberOfSelected, isModified, isMultipolygon, isNewOrUndeleted, isOuterMemberOfSelected, isSelectable, isSelected, isTagged, isTimestampEmpty, isUndeleted, isUsable, isVisible, reversedDirection, setChangesetId, setDeleted, setHighlighted, setModified, setOsmId, setRawTimestamp, setTimestamp, setUser, setVisible
get, getKeys, getNumKeys, hasKey, hasKeys, hasTag, hasTag, hasTag, hasTag, hasTagDifferent, hasTagDifferent, hasTagDifferent, keySet, put, put, remove, removeAll, setKeys, visitKeys
getUniqueId, isNew
clearCachedStyle, declareCachedStyleUpToDate, getCachedStyle, isCachedStyleUpToDate, setCachedStyle
private static final long serialVersionUID
private java.util.List<java.lang.Long> nodes
public WayData()
NodeData
.public WayData(long id)
WayData
with given id.id
- idpublic java.util.List<java.lang.Long> getNodes()
public int getNodesCount()
IWay
getNodesCount
in interface IWay
public long getNodeId(int idx)
IWay
public boolean isClosed()
IWay
public void setNodes(java.util.List<java.lang.Long> nodes)
nodes
- The nodes this way consists ofpublic WayData makeCopy()
PrimitiveData
makeCopy
in class PrimitiveData
public java.lang.String toString()
toString
in class PrimitiveData
public OsmPrimitiveType getType()
PrimitiveId
getType
in interface PrimitiveId
Node
,
Way
,
Relation
public void accept(PrimitiveVisitor visitor)
IPrimitive
accept
in interface IPrimitive
visitor
- visitor