Module io.helidon.json.smile
Package io.helidon.json.smile
Class SmileConfig.BuilderBase<BUILDER extends SmileConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SmileConfig>
java.lang.Object
io.helidon.json.smile.SmileConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
SmileConfig.Builder
- Enclosing interface:
SmileConfig
public abstract static class SmileConfig.BuilderBase<BUILDER extends SmileConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends SmileConfig>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
SmileConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to emit the optional Smile end marker when closing a generator.emitEndMark(boolean emitEndMark) Whether to emit the optional Smile end marker when closing a generator.from(SmileConfig prototype) Update this builder from an existing prototype instance.from(SmileConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.booleanWhether to allow raw binary values in Smile content.rawBinaryEnabled(boolean rawBinaryEnabled) Whether to allow raw binary values in Smile content.booleanWhether to enable shared key string references.sharedKeyStrings(boolean sharedKeyStrings) Whether to enable shared key string references.booleanWhether to enable shared value string references.sharedValueStrings(boolean sharedValueStrings) Whether to enable shared value string references.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
rawBinaryEnabled
Whether to allow raw binary values in Smile content.- Parameters:
rawBinaryEnabled-trueto allow raw binary values- Returns:
- updated builder instance
- See Also:
-
emitEndMark
Whether to emit the optional Smile end marker when closing a generator.- Parameters:
emitEndMark-trueto emit the end marker- Returns:
- updated builder instance
- See Also:
-
rawBinaryEnabled
public boolean rawBinaryEnabled()Whether to allow raw binary values in Smile content.- Returns:
trueto allow raw binary values
-
emitEndMark
public boolean emitEndMark()Whether to emit the optional Smile end marker when closing a generator.- Returns:
trueto emit the end marker
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-