Class ValueEmbeddingWriter

    • Field Detail

      • wrappedWriter

        protected final Writer wrappedWriter
      • values

        protected final org.apache.sling.api.resource.ValueMap values
      • locale

        protected final Locale locale
      • resourceContext

        protected final Class<?> resourceContext
      • keepUnresolvable

        protected boolean keepUnresolvable
      • writerStack

        protected final Stack<com.composum.sling.core.util.ValueEmbeddingWriter.TokenWriter> writerStack
    • Constructor Detail

      • ValueEmbeddingWriter

        public ValueEmbeddingWriter​(@NotNull
                                    @NotNull Writer writer,
                                    @NotNull
                                    @NotNull Map<String,​Object> values)
        Creates a tag filtering reader to filter out the tags configured as sets of tag names
        Parameters:
        writer - the writer to filter
        values - the set of available placeholders
      • ValueEmbeddingWriter

        public ValueEmbeddingWriter​(@NotNull
                                    @NotNull Writer writer,
                                    @NotNull
                                    @NotNull Map<String,​Object> values,
                                    @Nullable
                                    @Nullable Locale locale,
                                    @Nullable
                                    @Nullable Class<?> resourceContext)
        Creates a tag filtering reader to filter out the tags configured as sets of tag names
        Parameters:
        writer - the writer to filter
        values - the set of available placeholders
        locale - the locale to use for value formatting
        resourceContext - the context class for resource loading
      • ValueEmbeddingWriter

        public ValueEmbeddingWriter​(@NotNull
                                    @NotNull Writer writer,
                                    @NotNull
                                    @NotNull Map<String,​Object> values,
                                    @Nullable
                                    @Nullable Locale locale,
                                    @Nullable
                                    @Nullable Class<?> resourceContext,
                                    @Nullable
                                    @Nullable ResourceBundle resourceBundle)
        Creates a tag filtering reader to filter out the tags configured as sets of tag names
        Parameters:
        writer - the writer to filter
        values - the set of available placeholders
        locale - the locale to use for value formatting
        resourceContext - the context class for resource loading
        resourceBundle - the translations bundle (switches translation on)