@NotNull @Override public NodeBuilder builder() { return new ReadOnlyBuilder(this); } }));
@NotNull @Override public ReadOnlyBuilder child(@NotNull String name) { NodeState child = state.getChildNode(name); if (child.exists()) { return new ReadOnlyBuilder(child); } else { throw unsupported(); } }
@Override public Blob createBlob(InputStream stream) throws IOException { throw unsupported(); }
@Override public boolean remove() { throw unsupported(); }
@NotNull @Override public NodeBuilder builder() { return new ReadOnlyBuilder(this); } }));
@Nonnull @Override public ReadOnlyBuilder child(@Nonnull String name) { NodeState child = state.getChildNode(name); if (child.exists()) { return new ReadOnlyBuilder(child); } else { throw unsupported(); } }
@Override public boolean remove() { throw unsupported(); }
/** * The AbstractDecoratedNodeState implementation returns a ReadOnlyBuilder, which * will fail for any mutable operation. * * This method can be overridden to return a different NodeBuilder implementation. * * @return a NodeBuilder instance corresponding to this NodeState. */ @Override @NotNull public NodeBuilder builder() { return new ReadOnlyBuilder(this); }
@Override public Blob createBlob(InputStream stream) throws IOException { throw unsupported(); }
/** * The AbstractDecoratedNodeState implementation returns a ReadOnlyBuilder, which * will fail for any mutable operation. * * This method can be overridden to return a different NodeBuilder implementation. * * @return a NodeBuilder instance corresponding to this NodeState. */ @Override @Nonnull public NodeBuilder builder() { return new ReadOnlyBuilder(this); }
@Override @NotNull public NodeBuilder removeProperty(String name) { throw unsupported(); }
/** * The AbstractDecoratedNodeState implementation returns a ReadOnlyBuilder, which * will fail for any mutable operation. * * This method can be overridden to return a different NodeBuilder implementation. * * @return a NodeBuilder instance corresponding to this NodeState. */ @Override @NotNull public NodeBuilder builder() { return new ReadOnlyBuilder(this); }
@Override @Nonnull public NodeBuilder removeProperty(String name) { throw unsupported(); }
public ImmutableTree(@Nonnull ParentProvider parentProvider, @Nonnull String name, @Nonnull NodeState state) { this.nodeBuilder = new ReadOnlyBuilder(state); this.name = name; this.parentProvider = parentProvider; }
@Nonnull @Override public NodeBuilder setProperty(@Nonnull PropertyState property) { throw unsupported(); }
public ImmutableTree(@NotNull ParentProvider parentProvider, @NotNull String name, @NotNull NodeState state) { this.nodeBuilder = new ReadOnlyBuilder(state); this.name = name; this.parentProvider = parentProvider; }
@NotNull @Override public NodeBuilder setProperty(@NotNull PropertyState property) { throw unsupported(); }
public ImmutableTree(@NotNull ParentProvider parentProvider, @NotNull String name, @NotNull NodeState state) { this.nodeBuilder = new ReadOnlyBuilder(state); this.name = name; this.parentProvider = parentProvider; }
@Nonnull @Override public <T> NodeBuilder setProperty(String name, @Nonnull T value, Type<T> type) { throw unsupported(); }
@Override @NotNull public NodeBuilder getChildNode(@NotNull String name) { return new ReadOnlyBuilder(state.getChildNode(name)); }