public class OSMTag extends Object
| Constructor and Description |
|---|
OSMTag(short id,
String key,
String value,
byte zoomAppear,
boolean renderable,
boolean forcePolygonLine) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static OSMTag |
fromOSMTag(OSMTag otherTag,
short newID)
Convenience method that constructs a new OSMTag with a new id from another OSMTag.
|
short |
getId() |
String |
getKey() |
String |
getValue() |
byte |
getZoomAppear() |
int |
hashCode() |
boolean |
isCoastline() |
boolean |
isForcePolygonLine() |
boolean |
isRenderable() |
String |
tagKey() |
static String |
tagKey(String key,
String value)
Convenience method for generating a string representation of a key/value pair.
|
String |
toString() |
public OSMTag(short id,
String key,
String value,
byte zoomAppear,
boolean renderable,
boolean forcePolygonLine)
id - the internal id of the tagkey - the key of the tagvalue - the value of the tagzoomAppear - the minimum zoom level the tag appears firstrenderable - flag if the tag represents a renderable entityforcePolygonLine - flag if polygon line instead of area is forced with closed polygonspublic static OSMTag fromOSMTag(OSMTag otherTag, short newID)
otherTag - the OSMTag to copynewID - the new idpublic static String tagKey(String key, String value)
key - the key of the tagvalue - the value of the tagpublic final short getId()
public final String getKey()
public final String getValue()
public final byte getZoomAppear()
public final boolean isCoastline()
public final boolean isForcePolygonLine()
public final boolean isRenderable()
public final String tagKey()
Copyright © 2014 mapsforge.org