-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from cxcorp/cmdline-args-ways
[to test] Read included and excluded way tags from args
- Loading branch information
Showing
4 changed files
with
136 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package osmparser; | ||
|
||
public class WayTag { | ||
private final String tagKey; | ||
private final String tagValue; | ||
|
||
public WayTag(String tagKeyToMatch) { | ||
this(tagKeyToMatch, null); | ||
} | ||
|
||
public WayTag(String tagKey, String tagValue) { | ||
this.tagKey = tagKey; | ||
this.tagValue = tagValue; | ||
} | ||
|
||
public String getTagKey() { | ||
return tagKey; | ||
} | ||
|
||
public String getTagValue() { | ||
return tagValue; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return tagValue == null | ||
? String.format("WayTag{tagKey='%s'}", tagKey) | ||
: String.format("WayTag{tagKey='%s', tagValue='%s'}", tagKey, tagValue); | ||
} | ||
} |