|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.filter.v0_6.TagFilter
public class TagFilter
A simple class to filter node, way, and relation entities by their tag keys and/or values.
Constructor Summary | |
---|---|
TagFilter(java.lang.String filterMode,
java.util.Set<java.lang.String> tagKeys,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> tagKeyValues)
Creates a new instance. |
Method Summary | |
---|---|
void |
complete()
Ensures that all information is fully persisted. |
void |
process(EntityContainer container)
Process the entity. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
void |
setSink(Sink sink)
Sets the osm sink to send data to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagFilter(java.lang.String filterMode, java.util.Set<java.lang.String> tagKeys, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> tagKeyValues)
filterMode
- A 2-field dash-separated string specifying:
1. Whether the filter accepts or rejects entities
2. The entity type upon which it operatestagKeys
- A Set of tag key Strings. The filter will match these tags irrespective of tag values.tagKeyValues
- A map of tag key Strings to Sets of tag key values. These key-value pairs are checked
against each entity's tags to determine whether or not it matches the filter.Method Detail |
---|
public void process(EntityContainer container)
process
in interface Sink
container
- The entity to be processed.public void complete()
complete
in interface Completable
public void release()
release
in interface Releasable
public void setSink(Sink sink)
setSink
in interface Source
sink
- The sink for receiving all produced data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |