static String getOptions ( final ProvisionOption provision ) { final StringBuilder options = new StringBuilder ( ) ; if ( provision . shouldUpdate ( ) ) { options . append ( SEPARATOR_OPTION ) . append ( OPTION_UPDATE ) ; } if ( ! provision . shouldStart ( ) ) { options . append ( SEPARATOR_OPTION ) . append ( OPTION_NO_START ) ; } if ( provision . getStartLevel ( ) != null ) { options . append ( SEPARATOR_OPTION ) . append ( provision . getStartLevel ( ) ) ; } return options . toString ( ) ; }
Returns common scanner options . Ment to be used by subclasses when building the url .