-
Notifications
You must be signed in to change notification settings - Fork 3
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 #9 from reciprocum/patch-8
Complete GPXParserOptions. To be used to restrict the amount/kind of nodes parsed in/out.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.urizev.gpx; | ||
|
||
public class | ||
GPXParserOptions | ||
{ | ||
public final boolean skipWaypoints ; | ||
public final boolean skipRoutes ; | ||
public final boolean skipTracks ; | ||
|
||
public static final GPXParserOptions PARSE_ALL = new GPXParserOptions( false, false, false ) ; | ||
public static final GPXParserOptions SKIP_WAYPOINTS = new GPXParserOptions( true , false, false ) ; | ||
public static final GPXParserOptions SKIP_ROUTES = new GPXParserOptions( false, true , false ) ; | ||
public static final GPXParserOptions SKIP_TRACKS = new GPXParserOptions( false, false, true ) ; | ||
public static final GPXParserOptions ONLY_WAYPOINTS = new GPXParserOptions( false, true , true ) ; | ||
public static final GPXParserOptions ONLY_ROUTES = new GPXParserOptions( true , false, true ) ; | ||
public static final GPXParserOptions ONLY_TRACKS = new GPXParserOptions( true , true , false ) ; | ||
|
||
public | ||
GPXParserOptions( final boolean skipWaypoints, final boolean skipRoutes, final boolean skipTracks ) | ||
{ | ||
super( ) ; | ||
this.skipWaypoints = skipWaypoints ; | ||
this.skipRoutes = skipRoutes ; | ||
this.skipTracks = skipTracks ; | ||
} | ||
} |