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

Method assign

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

Assigns a value after casting it to the correct type. If the option is unknown, it will be added as free option. @param name name of option @param value value @throws BaseXException database exception

(final String name, final String value)

Source from the content-addressed store, hash-verified

378 * @throws BaseXException database exception
379 */
380 public synchronized void assign(final String name, final String value) throws BaseXException {
381 if(definitions.isEmpty()) {
382 free.put(name, value);
383 } else {
384 assign(name, value, -1, true);
385 }
386 }
387
388 /**
389 * Assigns a value after casting it to the correct type. If the option is unknown,

Callers 5

runMethod · 0.95
DBOptionsMethod · 0.95
setSystemMethod · 0.95
readMethod · 0.95
copyMethod · 0.45

Calls 15

putMethod · 0.95
serializeMethod · 0.95
toMapMethod · 0.95
toBooleanMethod · 0.95
infoMethod · 0.95
toIntMethod · 0.95
getMethod · 0.95
getMethod · 0.95
normalizeEnumMethod · 0.95
allowedMethod · 0.95
messageMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected