@ Pure public static GeodesicPositionStringRepresentation getPreferredStringRepresentation ( boolean allowNullValue ) { final Preferences prefs = Preferences . userNodeForPackage ( GeodesicPosition . class ) ; if ( prefs != null ) { final String v = prefs . get ( "STRING_REPRESENTATION" , null ) ; //$NON-NLS-1$ if ( v != null && ! "" . equals ( v ) ) { //$NON-NLS-1$ try { GeodesicPositionStringRepresentation rep ; try { rep = GeodesicPositionStringRepresentation . valueOf ( v . toUpperCase ( ) ) ; } catch ( Throwable exception ) { rep = null ; } if ( rep != null ) { return rep ; } } catch ( AssertionError e ) { throw e ; } catch ( Throwable exception ) { // } } } if ( allowNullValue ) { return null ; } return DEFAULT_STRING_REPRESENTATION ; }
Replies the preferred format of the string representation of a geodesic position .