2 changed files with 48 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||||||
|
package org.leolo.map.osm.extract.model; |
||||||
|
|
||||||
|
import de.topobyte.osm4j.core.model.iface.OsmNode; |
||||||
|
import de.topobyte.osm4j.core.model.iface.OsmRelation; |
||||||
|
import de.topobyte.osm4j.core.model.iface.OsmWay; |
||||||
|
|
||||||
|
public abstract class SearchItem { |
||||||
|
|
||||||
|
private ActionFile af; |
||||||
|
|
||||||
|
public SearchItem(ActionFile af){ |
||||||
|
this.af = af; |
||||||
|
} |
||||||
|
|
||||||
|
public SearchItem(){ |
||||||
|
//Empty constructor
|
||||||
|
} |
||||||
|
|
||||||
|
protected abstract boolean matchString(String target); |
||||||
|
|
||||||
|
public boolean matchNode(OsmNode node){ |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
public boolean matchWay(OsmWay way){ |
||||||
|
return false; |
||||||
|
} |
||||||
|
|
||||||
|
public boolean matchRelation(OsmRelation relation){ |
||||||
|
return false; |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue