|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TagGroup
represents a group of OSM tags (e.g. all tags of a way). TagGroups are expected to be immutable, so modifying the tags means creation of a new group. This interface requires that keys are unique, which is guaranteed since OSM API 0.6.
Method Summary | |
---|---|
boolean |
contains(String key,
String value)
returns true if this tag group contains the tag |
boolean |
contains(Tag tag)
returns true if this tag group contains the given tag |
boolean |
containsKey(String key)
returns true if this tag group contains a tag with the given key |
boolean |
containsValue(String value)
returns true if this tag group contains at least one tag with the given value |
String |
getValue(String key)
returns the value for the given key or null if no tag in this group uses that key |
boolean |
isEmpty()
returns true if this group contains any tags |
int |
size()
returns the number of tags in this group |
Methods inherited from interface Iterable |
---|
iterator |
Method Detail |
---|
String getValue(String key)
key
- key whose value will be returned; != nullboolean containsKey(String key)
key
- key to check for; != nullboolean containsValue(String value)
value
- value to check for; != nullboolean contains(Tag tag)
tag
- tag to check for; != nullboolean contains(String key, String value)
key
- key of the tag to check for; != nullvalue
- value of the tag to check for; != nullint size()
boolean isEmpty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |