MCPcopy Create free account
hub / github.com/BaseXdb/basex / allowed

Method allowed

basex-core/src/main/java/org/basex/util/options/Options.java:701–708  ·  view source on GitHub ↗

Returns a message with allowed keys. @param option option @param value supplied value @param all allowed values @return exception

(final Option<?> option, final String value, final Object... all)

Source from the content-addressed store, hash-verified

699 * @return exception
700 */
701 public static String allowed(final Option<?> option, final String value, final Object... all) {
702 final TokenBuilder vals = new TokenBuilder();
703 for(final Object a : all) {
704 if(!vals.isEmpty()) vals.add(',');
705 vals.add(a);
706 }
707 return Util.info(Text.OPT_ONEOF_X_X_X, option.name(), value, vals);
708 }
709
710 // PRIVATE METHODS ==============================================================================
711

Callers 2

checkVersionMethod · 0.95
assignMethod · 0.95

Calls 4

isEmptyMethod · 0.95
addMethod · 0.95
infoMethod · 0.95
nameMethod · 0.65

Tested by

no test coverage detected