public class OsmElement extends AbstractRecord implements OsmConstants
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static RecordDefinition |
RECORD_DEFINITION |
BOUNDS, ND, NODE, NODE_XML_ELEMENTS, OSM, OSM_XML_ELEMENTS, RELATION, RELATION_XML_ELEMENTS, TAG, WAY, WAY_XML_ELEMENTS, WGS84_2D| Constructor and Description |
|---|
OsmElement() |
OsmElement(long id,
boolean visible,
int version,
long changeset,
Date timestamp,
String user,
int uid,
Map<String,String> tags) |
OsmElement(OsmElement element) |
OsmElement(XMLStreamReader in) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(String key,
String value) |
void |
addTags(Map<String,String> tags) |
long |
getChangeset() |
<T extends Geometry> |
getGeometryValue()
Get the value of the primary geometry attribute.
|
long |
getId() |
RecordDefinition |
getRecordDefinition()
Get the meta data describing the Record and it's attributes.
|
RecordState |
getState() |
String |
getTag(String name) |
Map<String,String> |
getTags() |
Date |
getTimestamp() |
int |
getUid() |
String |
getUser() |
<V> V |
getValue(int index)
Get the value of the attribute with the specified index.
|
int |
getVersion() |
int |
hashCode() |
boolean |
hasTags() |
boolean |
isTagged() |
boolean |
isVisible() |
protected void |
parseTag(XMLStreamReader in) |
void |
removeTag(String key) |
void |
setChangeset(long changeset) |
void |
setGeometryValue(Geometry geometry)
Set the value of the primary geometry attribute.
|
void |
setId(long id) |
void |
setInfo(OsmElement element) |
void |
setState(RecordState state) |
void |
setTags(Map<String,String> tags) |
void |
setTimestamp(Date timestamp) |
void |
setTimestamp(long timestamp) |
void |
setUid(int uid) |
void |
setUser(String user) |
void |
setValue(int index,
Object value)
Set the value of the attribute with the specified name.
|
void |
setVersion(int version) |
void |
setVisible(boolean visible) |
clone, compareTo, delete, entrySet, equals, get, getByte, getDouble, getFactory, getFieldTitle, getFloat, getIdentifier, getIdentifier, getIdentifier, getIdValue, getInteger, getLong, getShort, getString, getTypeName, getValue, getValueByPath, getValueMap, getValues, hasField, hasValue, hasValuesAny, isModified, isValid, isValid, put, setIdentifier, setIdValue, setValue, setValueByPath, setValueByPath, setValues, setValues, setValues, setValues, setValuesByPath, toString, updateStateclear, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitclear, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, valuespublic static final RecordDefinition RECORD_DEFINITION
public OsmElement()
public OsmElement(long id,
boolean visible,
int version,
long changeset,
Date timestamp,
String user,
int uid,
Map<String,String> tags)
public OsmElement(OsmElement element)
public OsmElement(XMLStreamReader in)
public long getChangeset()
public <T extends Geometry> T getGeometryValue()
AbstractRecordgetGeometryValue in interface RecordgetGeometryValue in class AbstractRecordpublic long getId()
public RecordDefinition getRecordDefinition()
RecordgetRecordDefinition in interface Recordpublic RecordState getState()
public Date getTimestamp()
public int getUid()
public String getUser()
public <V> V getValue(int index)
Recordpublic int getVersion()
public int hashCode()
public boolean hasTags()
public boolean isTagged()
public boolean isVisible()
protected void parseTag(XMLStreamReader in)
public void removeTag(String key)
public void setChangeset(long changeset)
public void setGeometryValue(Geometry geometry)
AbstractRecordsetGeometryValue in interface RecordsetGeometryValue in class AbstractRecordgeometry - The primary geometry.public void setId(long id)
public void setInfo(OsmElement element)
public void setState(RecordState state)
public void setTimestamp(Date timestamp)
public void setTimestamp(long timestamp)
public void setUid(int uid)
public void setUser(String user)
public void setValue(int index,
Object value)
Recordpublic void setVersion(int version)
public void setVisible(boolean visible)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.