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

Method elem

basex-core/src/main/java/org/basex/query/func/db/DbDir.java:72–75  ·  view source on GitHub ↗

Creates an element. @param dir directory flag @param path path @param date modified date @param size file size (can be null) @param type resource type @return element node

(final boolean dir, final String path, final long date, final long size,
      final ResourceType type)

Source from the content-addressed store, hash-verified

70 * @return element node
71 */
72 private static FNode elem(final boolean dir, final String path, final long date, final long size,
73 final ResourceType type) {
74 return dir ? dir(path, date) : resource(path, date, size, type);
75 }
76}

Callers 3

resourcesMethod · 0.95
addTextMethod · 0.45
addElemMethod · 0.45

Calls 2

dirMethod · 0.45
resourceMethod · 0.45

Tested by

no test coverage detected