From 269d3d44bdeacd543bdf67fe555f745db350dc58 Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Mon, 9 Oct 2017 13:01:52 +0200 Subject: HONEYCOMB-359 - CollectingWriterBuilder support for wildcarded writers requires https://gerrit.fd.io/r/#/c/8434/ Change-Id: I226192776a4285ee498d72fd000051d29ad6a974 Signed-off-by: Jan Srnicek --- .../hc2vpp/docs/core/CollectingWriterBuilder.java | 32 +++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CollectingWriterBuilder.java b/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CollectingWriterBuilder.java index 6abb6a80b..cf7855ff0 100644 --- a/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CollectingWriterBuilder.java +++ b/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CollectingWriterBuilder.java @@ -65,6 +65,12 @@ public class CollectingWriterBuilder implements ModifiableWriterRegistryBuilder return this; } + @Override + public ModifiableSubtreeManagerRegistryBuilder> wildcardedSubtreeAdd(@Nonnull Writer handler) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + @Override public ModifiableSubtreeManagerRegistryBuilder> addBefore( @Nonnull Writer handler, @Nonnull InstanceIdentifier relatedType) { @@ -79,12 +85,24 @@ public class CollectingWriterBuilder implements ModifiableWriterRegistryBuilder return this; } + @Override + public ModifiableSubtreeManagerRegistryBuilder> wildcardedSubtreeAddBefore(@Nonnull Writer handler, @Nonnull InstanceIdentifier relatedType) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + + @Override + public ModifiableSubtreeManagerRegistryBuilder> wildcardedSubtreeAddBefore(@Nonnull Writer handler, @Nonnull Collection> relatedTypes) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + @Override public ModifiableSubtreeManagerRegistryBuilder> subtreeAddBefore( @Nonnull Set> handledChildren, @Nonnull Writer handler, @Nonnull InstanceIdentifier relatedType) { addHandler(handler, handledChildren); - return null; + return this; } @Override @@ -109,6 +127,18 @@ public class CollectingWriterBuilder implements ModifiableWriterRegistryBuilder return this; } + @Override + public ModifiableSubtreeManagerRegistryBuilder> wildcardedSubtreeAddAfter(@Nonnull Writer handler, @Nonnull InstanceIdentifier relatedType) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + + @Override + public ModifiableSubtreeManagerRegistryBuilder> wildcardedSubtreeAddAfter(@Nonnull Writer handler, @Nonnull Collection> relatedTypes) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + @Override public ModifiableSubtreeManagerRegistryBuilder> subtreeAddAfter( @Nonnull Set> handledChildren, @Nonnull Writer handler, -- cgit 1.2.3-korg