@Override @Nonnull public NodeState getChildNode(@Nonnull String name) { checkValidName(name); return MISSING_NODE; }
@Override @NotNull public NodeState getChildNode(@NotNull String name) { checkValidName(name); return MISSING_NODE; }
@Nonnull @Override public NodeBuilder getChildNode(@Nonnull String name) { checkValidName(name); return createChildBuilder(name); }
@NotNull @Override public NodeBuilder getChildNode(@NotNull String name) { checkValidName(name); return createChildBuilder(name); }
@Override @NotNull public DocumentNodeBuilder getChildNode(@NotNull String name) { checkValidName(name); return createChildBuilder(name); } }
@Override @NotNull public DocumentNodeBuilder getChildNode(@NotNull String name) { checkValidName(name); return createChildBuilder(name); } }
/** * This simplified version of {@link PathUtils#concat(String, String)} method * assumes that the parentPath is valid and not null, while the second argument * is just a name (not a subpath). * * @param parentPath the parent path * @param name name to concatenate * @return the parentPath concatenated with name */ static String simpleConcat(String parentPath, String name) { checkValidName(name); if (PathUtils.denotesRoot(parentPath)) { return parentPath + name; } else { return new StringBuilder(parentPath.length() + name.length() + 1) .append(parentPath) .append('/') .append(name) .toString(); } } }
@Override @NotNull public NodeState getChildNode(@NotNull String name) { readStats.mark(); String childName = getTemplate().getChildName(); if (childName == Template.MANY_CHILD_NODES) { MapEntry child = getChildNodeMap().getEntry(name); if (child != null) { return child.getNodeState(); } } else if (childName != Template.ZERO_CHILD_NODES && childName.equals(name)) { RecordId childNodeId = getSegment().readRecordId(getRecordNumber(), 0, 2); return reader.readNode(childNodeId); } checkValidName(name); return MISSING_NODE; }
throws IllegalArgumentException { checkNotNull(newParent); checkValidName(newName); if (isRoot() || !exists() || newParent.hasChildNode(newName)) { return false;
throws IllegalArgumentException { checkNotNull(newParent); checkValidName(newName); if (isRoot() || !exists() || newParent.hasChildNode(newName)) { return false;
@Override public boolean moveTo(@NotNull NodeBuilder newParent, @NotNull String newName) { checkNotNull(newParent); checkValidName(newName); if (isRoot() || !exists() || newParent.hasChildNode(newName)) { return false;
@Override public boolean moveTo(@NotNull NodeBuilder newParent, @NotNull String newName) { checkNotNull(newParent); checkValidName(newName); if (isRoot() || !exists() || newParent.hasChildNode(newName)) { return false;