@Override public NormalizedNodeAttrBuilder<NodeWithValue, T, LeafSetEntryNode<T>> withValue(final T withValue) { super.withNodeIdentifier(new NodeWithValue<>(schema.getQName(), withValue)); // TODO check value type using TypeProvider ? return super.withValue(withValue); }
@Override public NormalizedNodeAttrBuilder<NodeWithValue, T, LeafSetEntryNode<T>> withValue(final T withValue) { super.withNodeIdentifier(new NodeWithValue<>(schema.getQName(), withValue)); // TODO check value type using TypeProvider ? return super.withValue(withValue); }
@Override public ListNodeBuilder<T, LeafSetEntryNode<T>> withChildValue(final T childValue, final Map<QName, String> attributes) { final ImmutableLeafSetEntryNodeBuilder<T> b = ImmutableLeafSetEntryNodeBuilder.create(); b.withNodeIdentifier(new NodeWithValue<>(nodeIdentifier.getNodeType(), childValue)); b.withValue(childValue); b.withAttributes(attributes); return withChild(b.build()); }
@Override public ListNodeBuilder<T, LeafSetEntryNode<T>> withChildValue(final T childValue, final Map<QName, String> attributes) { final ImmutableLeafSetEntryNodeBuilder<T> b = ImmutableLeafSetEntryNodeBuilder.create(); b.withNodeIdentifier(new NodeWithValue<>(nodeIdentifier.getNodeType(), childValue)); b.withValue(childValue); b.withAttributes(attributes); return withChild(b.build()); }
@Override public ListNodeBuilder<T, LeafSetEntryNode<T>> withChildValue(final T childValue, final Map<QName, String> attributes) { final ImmutableLeafSetEntryNodeBuilder<T> b = ImmutableLeafSetEntryNodeBuilder.create(); b.withNodeIdentifier(new NodeWithValue<>(nodeIdentifier.getNodeType(), childValue)); b.withValue(childValue); b.withAttributes(attributes); return withChild(b.build()); }
@Override public ListNodeBuilder<T, LeafSetEntryNode<T>> withChildValue(final T childValue, final Map<QName, String> attributes) { final ImmutableLeafSetEntryNodeBuilder<T> b = ImmutableLeafSetEntryNodeBuilder.create(); b.withNodeIdentifier(new NodeWithValue<>(nodeIdentifier.getNodeType(), childValue)); b.withValue(childValue); b.withAttributes(attributes); return withChild(b.build()); }