public abstract class ReaderElement extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FILEHEADER |
static int |
NODE |
static int |
RELATION |
static int |
WAY |
Modifier | Constructor and Description |
---|---|
protected |
ReaderElement(long id,
int type) |
protected |
ReaderElement(long id,
int type,
int propertyMapSize) |
Modifier and Type | Method and Description |
---|---|
void |
clearTags() |
String |
getFirstPriorityTag(List<String> restrictions)
Returns the first existing tag of the specified list where the order is important.
|
long |
getId() |
List<String> |
getKeysWithPrefix(String keyPrefix) |
String |
getTag(String name) |
<T> T |
getTag(String key,
T defaultValue) |
protected Map<String,Object> |
getTags() |
int |
getType() |
boolean |
hasTag(List<String> keyList,
Collection<String> values)
Check a number of tags in the given order for the any of the given values.
|
boolean |
hasTag(String key,
Collection<String> values)
Check that a given tag has one of the specified values.
|
boolean |
hasTag(String key,
Object value)
Check that the object has a given tag with a given value.
|
boolean |
hasTag(String key,
String... values)
Check that a given tag has one of the specified values.
|
boolean |
hasTags() |
boolean |
hasTagWithKeyPrefix(String keyPrefix) |
boolean |
isType(int type) |
void |
removeTag(String name) |
void |
setTag(String name,
Object value) |
void |
setTags(Map<String,String> newTags) |
protected String |
tagsToString() |
String |
toString() |
public static final int NODE
public static final int WAY
public static final int RELATION
public static final int FILEHEADER
protected ReaderElement(long id, int type)
protected ReaderElement(long id, int type, int propertyMapSize)
public long getId()
protected String tagsToString()
public boolean hasTags()
public <T> T getTag(String key, T defaultValue)
public boolean hasTag(String key, Object value)
public boolean hasTag(String key, String... values)
public final boolean hasTag(String key, Collection<String> values)
public boolean hasTag(List<String> keyList, Collection<String> values)
public boolean hasTagWithKeyPrefix(String keyPrefix)
public String getFirstPriorityTag(List<String> restrictions)
public void removeTag(String name)
public void clearTags()
public int getType()
public boolean isType(int type)
Copyright © 2012–2020. All rights reserved.