public class OSMTag
extends java.lang.Object
| Constructor and Description |
|---|
OSMTag(short id,
java.lang.String key,
java.lang.String value,
byte zoomAppear,
boolean renderable,
boolean forcePolygonLine,
boolean labelPosition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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() |
java.lang.String |
getKey() |
java.lang.String |
getValue() |
byte |
getZoomAppear() |
int |
hashCode() |
boolean |
isBuilding() |
boolean |
isBuildingPart() |
boolean |
isCoastline() |
boolean |
isForcePolygonLine() |
boolean |
isLabelPosition() |
boolean |
isRenderable() |
java.lang.String |
tagKey() |
static java.lang.String |
tagKey(java.lang.String key,
java.lang.String value)
Convenience method for generating a string representation of a key/value pair.
|
java.lang.String |
toString() |
public OSMTag(short id,
java.lang.String key,
java.lang.String value,
byte zoomAppear,
boolean renderable,
boolean forcePolygonLine,
boolean labelPosition)
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 polygonslabelPosition - flag if label position should be computed for polygons with such tagpublic static OSMTag fromOSMTag(OSMTag otherTag, short newID)
otherTag - the OSMTag to copynewID - the new idpublic static java.lang.String tagKey(java.lang.String key,
java.lang.String value)
key - the key of the tagvalue - the value of the tagpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final short getId()
public final java.lang.String getKey()
public final java.lang.String getValue()
public final byte getZoomAppear()
public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean isBuilding()
public final boolean isBuildingPart()
public final boolean isCoastline()
public final boolean isForcePolygonLine()
public boolean isLabelPosition()
public final boolean isRenderable()
public final java.lang.String tagKey()
public final java.lang.String toString()
toString in class java.lang.Object