public abstract static class Types.BaseGroupBuilder<P,THIS extends Types.BaseGroupBuilder<P,THIS>> extends Types.Builder<THIS,P>
| Modifier and Type | Field and Description |
|---|---|
protected List<Type> |
fields |
id, originalType, parent, repetition, returnClassas, id, named, repetitionprotected abstract THIS self()
self in class Types.Builder<THIS extends Types.BaseGroupBuilder<P,THIS>,P>public Types.PrimitiveBuilder<THIS> primitive(PrimitiveType.PrimitiveTypeName type, Type.Repetition repetition)
public Types.PrimitiveBuilder<THIS> required(PrimitiveType.PrimitiveTypeName type)
Types.PrimitiveBuilder for the required primitive type
type.type - a PrimitiveType.PrimitiveTypeNametype that will return this
builder for additional fields.public Types.PrimitiveBuilder<THIS> optional(PrimitiveType.PrimitiveTypeName type)
Types.PrimitiveBuilder for the optional primitive type
type.type - a PrimitiveType.PrimitiveTypeNametype that will return this
builder for additional fields.public Types.PrimitiveBuilder<THIS> repeated(PrimitiveType.PrimitiveTypeName type)
Types.PrimitiveBuilder for the repeated primitive type
type.type - a PrimitiveType.PrimitiveTypeNametype that will return this
builder for additional fields.public Types.GroupBuilder<THIS> group(Type.Repetition repetition)
public Types.GroupBuilder<THIS> requiredGroup()
Types.GroupBuilder to build a required sub-group.public Types.GroupBuilder<THIS> optionalGroup()
Types.GroupBuilder to build an optional sub-group.public Types.GroupBuilder<THIS> repeatedGroup()
Types.GroupBuilder to build a repeated sub-group.public THIS addField(Type type)
type as a sub-field to the group configured by this builder.type - the type to add as a fieldpublic THIS addFields(Type... types)
types as sub-fields of the group configured by this builder.types - an array of types to add as fieldsprotected GroupType build(String name)
build in class Types.Builder<THIS extends Types.BaseGroupBuilder<P,THIS>,P>public Types.MapBuilder<THIS> map(Type.Repetition repetition)
public Types.MapBuilder<THIS> requiredMap()
public Types.MapBuilder<THIS> optionalMap()
public Types.ListBuilder<THIS> list(Type.Repetition repetition)
public Types.ListBuilder<THIS> requiredList()
public Types.ListBuilder<THIS> optionalList()
Copyright © 2019 The Apache Software Foundation. All rights reserved.