|
Last change
on this file since 30197 was 28693, checked in by larry0ua, 13 years ago |
'RelToolbox: refactored relation fixing code, added associatedStreet as a fixable relation'
|
|
File size:
536 bytes
|
| Line | |
|---|
| 1 | package relcontext.relationfix;
|
|---|
| 2 |
|
|---|
| 3 | import org.openstreetmap.josm.command.Command;
|
|---|
| 4 | import org.openstreetmap.josm.data.osm.Relation;
|
|---|
| 5 |
|
|---|
| 6 | /**
|
|---|
| 7 | * Default fixer that does nothing - every relation is OK for this class.
|
|---|
| 8 | */
|
|---|
| 9 | public class NothingFixer extends RelationFixer {
|
|---|
| 10 |
|
|---|
| 11 | public NothingFixer() {
|
|---|
| 12 | super("");
|
|---|
| 13 | }
|
|---|
| 14 | @Override
|
|---|
| 15 | public boolean isFixerApplicable(Relation rel) {
|
|---|
| 16 | return true;
|
|---|
| 17 | }
|
|---|
| 18 | @Override
|
|---|
| 19 | public boolean isRelationGood(Relation rel) {
|
|---|
| 20 | return true;
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | @Override
|
|---|
| 24 | public Command fixRelation(Relation rel) {
|
|---|
| 25 | return null;
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.