public static final class SchemaBuilder.EnumBuilder<R> extends SchemaBuilder.NamespacedBuilder<R,SchemaBuilder.EnumBuilder<R>>
SchemaBuilder.PropBuilder.prop(String, String)
, namespace with
SchemaBuilder.NamespacedBuilder.namespace(String)
, doc with SchemaBuilder.NamedBuilder.doc(String)
, and aliases with
SchemaBuilder.NamedBuilder.aliases(String[])
.
The Enum schema is finalized when its required symbols are set via
symbols(String[])
.Modifier and Type | Method and Description |
---|---|
SchemaBuilder.EnumBuilder<R> |
defaultSymbol(String enumDefault)
Set the default value of the enum.
|
protected SchemaBuilder.EnumBuilder<R> |
self()
a self-type for chaining builder subclasses.
|
R |
symbols(String... symbols)
Configure this enum type's symbols, and end its configuration.
|
namespace
aliases, doc
prop, prop
protected SchemaBuilder.EnumBuilder<R> self()
SchemaBuilder.PropBuilder
self
in class SchemaBuilder.PropBuilder<SchemaBuilder.EnumBuilder<R>>
public R symbols(String... symbols)
public SchemaBuilder.EnumBuilder<R> defaultSymbol(String enumDefault)
Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.