public class OSMWithTags extends Object
Modifier and Type | Field and Description |
---|---|
protected I18NString |
creativeName |
protected long |
id |
Constructor and Description |
---|
OSMWithTags() |
Modifier and Type | Method and Description |
---|---|
void |
addTag(OSMTag tag)
Adds a tag.
|
void |
addTag(String key,
String value)
Adds a tag.
|
boolean |
doesTagAllowAccess(String tag) |
I18NString |
getAssumedName()
Returns a name-like value for an entity (if one exists).
|
long |
getId()
Gets the id.
|
String |
getTag(String tag) |
Map<String,String> |
getTags()
The tags of an entity.
|
Map<String,String> |
getTagsByPrefix(String prefix) |
boolean |
hasTag(String tag)
Is the tag defined?
|
boolean |
isBicycleExplicitlyAllowed()
Returns true if bikes are explicitly allowed.
|
boolean |
isBicycleExplicitlyDenied()
Returns true if bikes are explicitly denied access.
|
boolean |
isBikeParking() |
static boolean |
isFalse(String tagValue) |
boolean |
isGeneralAccessDenied()
Returns true if access is generally denied to this element (potentially with exceptions).
|
boolean |
isMotorcarExplicitlyAllowed()
Returns true if cars are explicitly allowed.
|
boolean |
isMotorcarExplicitlyDenied()
Returns true if cars are explicitly denied access.
|
boolean |
isMotorVehicleExplicitlyAllowed()
Returns true if cars/motorcycles/HGV are explicitly allowed.
|
boolean |
isMotorVehicleExplicitlyDenied()
Returns true if cars/motorcycles/HGV are explicitly denied access.
|
boolean |
isParkAndRide() |
boolean |
isPedestrianExplicitlyAllowed()
Returns true if pedestrians are explicitly allowed.
|
boolean |
isPedestrianExplicitlyDenied()
Returns true if pedestrians are explicitly denied access.
|
Boolean |
isTag(String tag,
String value)
Checks is a tag contains the specified value.
|
boolean |
isTagFalse(String tag)
Determines if a tag contains a false value.
|
boolean |
isTagTrue(String tag)
Determines if a tag contains a true value.
|
boolean |
isThroughTrafficExplicitlyDisallowed()
Returns true if through traffic is not allowed.
|
static boolean |
isTrue(String tagValue) |
boolean |
isUnderConstruction()
Returns true if this element is under construction.
|
void |
setCreativeName(I18NString creativeName) |
void |
setId(long id)
Sets the id.
|
protected long id
protected I18NString creativeName
public long getId()
public void setId(long id)
public void addTag(OSMTag tag)
public boolean hasTag(String tag)
public boolean isTagFalse(String tag)
public boolean isTagTrue(String tag)
public boolean doesTagAllowAccess(String tag)
public I18NString getAssumedName()
processRelations
public static boolean isFalse(String tagValue)
public static boolean isTrue(String tagValue)
public boolean isUnderConstruction()
public boolean isGeneralAccessDenied()
public boolean isMotorcarExplicitlyDenied()
public boolean isMotorcarExplicitlyAllowed()
public boolean isMotorVehicleExplicitlyDenied()
public boolean isMotorVehicleExplicitlyAllowed()
public boolean isBicycleExplicitlyDenied()
public boolean isBicycleExplicitlyAllowed()
public boolean isPedestrianExplicitlyDenied()
public boolean isPedestrianExplicitlyAllowed()
public boolean isThroughTrafficExplicitlyDisallowed()
public boolean isParkAndRide()
public boolean isBikeParking()
public void setCreativeName(I18NString creativeName)
Copyright © 2018. All rights reserved.