org.openstreetmap.josm.plugins.graphview.core.data
public interface TagGroup extends Iterable<Tag>
Modifier and Type | Method and Description |
---|---|
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 |
containsAny(Iterable<String> keys,
Iterable<String> values)
returns true if this tag group contains one of the keys
with one of the values
|
boolean |
containsAny(Iterable<String> keys,
String value)
returns true if this tag group contains one of the keys
with value
|
boolean |
containsAny(Iterable<Tag> tags)
returns true if this tag group contains one of the given tags
|
boolean |
containsAny(String key,
Iterable<String> values)
returns true if this tag group contains the key with
one of the values
|
boolean |
containsAnyKey(Iterable<String> keys)
returns true if this tag group contains a tag with one of the given keys
|
boolean |
containsAnyValue(Iterable<String> values)
returns true if this tag group contains at least one tag with one of the given values
|
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
|
String getValue(String key)
key
- key whose value will be returned; != nullboolean containsKey(String key)
key
- key to check for; != nullboolean containsAnyKey(Iterable<String> keys)
keys
- keys to check for; != nullboolean containsValue(String value)
value
- value to check for; != nullboolean containsAnyValue(Iterable<String> values)
values
- values to check for; != nullboolean contains(Tag tag)
tag
- tag to check for; != nullboolean containsAny(Iterable<Tag> tags)
tags
- tags 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; != nullboolean containsAny(Iterable<String> keys, String value)
keys
- keys of the tag to check for; != nullvalue
- value of the tag to check for; != nullboolean containsAny(Iterable<String> keys, Iterable<String> values)
keys
- keys of the tag to check for; != nullvalues
- values of the tag to check for; != nullboolean containsAny(String key, Iterable<String> values)
key
- key of the tag to check for; != nullvalues
- values of the tag to check for; != nullint size()
boolean isEmpty()