@ Pure public static RoadType getPreferredRoadType ( ) { final Preferences prefs = Preferences . userNodeForPackage ( RoadNetworkConstants . class ) ; String name = null ; if ( prefs != null ) { name = prefs . get ( "ROAD_TYPE" , null ) ; //$NON-NLS-1$ } if ( name != null ) { RoadType type ; try { type = RoadType . valueOf ( name ) ; } catch ( Throwable exception ) { type = null ; } if ( type != null ) { return type ; } } return RoadType . OTHER ; }
Replies the preferred type of road segment .