Package com.yahoo.document.config
Class DocumenttypesConfig.Documenttype.Builder
java.lang.Object
com.yahoo.document.config.DocumenttypesConfig.Documenttype.Builder
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder
- Enclosing class:
- DocumenttypesConfig.Documenttype
public static class DocumenttypesConfig.Documenttype.Builder
extends Object
implements com.yahoo.config.ConfigBuilder
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd the given builder to this builder's list of Annotationtype buildersMake a new builder and run the supplied function on it before adding it to the listSet the given list as this builder's list of Annotationtype buildersbodystruct
(int __value) build()
Add the given builder to this builder's list of Datatype buildersMake a new builder and run the supplied function on it before adding it to the listSet the given list as this builder's list of Datatype buildersfieldsets
(String __key, DocumenttypesConfig.Documenttype.Fieldsets.Builder __value) fieldsets
(String __key, Consumer<DocumenttypesConfig.Documenttype.Fieldsets.Builder> __func) Make a new builder and run the supplied function on it before using it as the valueheaderstruct
(int __value) id
(int __value) Add the given builder to this builder's list of Importedfield buildersMake a new builder and run the supplied function on it before adding it to the listSet the given list as this builder's list of Importedfield buildersAdd the given builder to this builder's list of Inherits buildersMake a new builder and run the supplied function on it before adding it to the listSet the given list as this builder's list of Inherits buildersAdd the given builder to this builder's list of Referencetype buildersMake a new builder and run the supplied function on it before adding it to the listSet the given list as this builder's list of Referencetype buildersversion
(int __value)
-
Field Details
-
inherits
-
datatype
-
annotationtype
-
fieldsets
-
referencetype
-
importedfield
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
id
-
name
-
version
-
headerstruct
-
bodystruct
-
inherits
public DocumenttypesConfig.Documenttype.Builder inherits(DocumenttypesConfig.Documenttype.Inherits.Builder __builder) Add the given builder to this builder's list of Inherits builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
inherits
public DocumenttypesConfig.Documenttype.Builder inherits(Consumer<DocumenttypesConfig.Documenttype.Inherits.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func
- lambda that modifies the given builder- Returns:
- this builder
-
inherits
public DocumenttypesConfig.Documenttype.Builder inherits(List<DocumenttypesConfig.Documenttype.Inherits.Builder> __builders) Set the given list as this builder's list of Inherits builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
datatype
public DocumenttypesConfig.Documenttype.Builder datatype(DocumenttypesConfig.Documenttype.Datatype.Builder __builder) Add the given builder to this builder's list of Datatype builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
datatype
public DocumenttypesConfig.Documenttype.Builder datatype(Consumer<DocumenttypesConfig.Documenttype.Datatype.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func
- lambda that modifies the given builder- Returns:
- this builder
-
datatype
public DocumenttypesConfig.Documenttype.Builder datatype(List<DocumenttypesConfig.Documenttype.Datatype.Builder> __builders) Set the given list as this builder's list of Datatype builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
annotationtype
public DocumenttypesConfig.Documenttype.Builder annotationtype(DocumenttypesConfig.Documenttype.Annotationtype.Builder __builder) Add the given builder to this builder's list of Annotationtype builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
annotationtype
public DocumenttypesConfig.Documenttype.Builder annotationtype(Consumer<DocumenttypesConfig.Documenttype.Annotationtype.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func
- lambda that modifies the given builder- Returns:
- this builder
-
annotationtype
public DocumenttypesConfig.Documenttype.Builder annotationtype(List<DocumenttypesConfig.Documenttype.Annotationtype.Builder> __builders) Set the given list as this builder's list of Annotationtype builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
fieldsets
public DocumenttypesConfig.Documenttype.Builder fieldsets(String __key, DocumenttypesConfig.Documenttype.Fieldsets.Builder __value) -
fieldsets
public DocumenttypesConfig.Documenttype.Builder fieldsets(Map<String, DocumenttypesConfig.Documenttype.Fieldsets.Builder> __values) -
fieldsets
public DocumenttypesConfig.Documenttype.Builder fieldsets(String __key, Consumer<DocumenttypesConfig.Documenttype.Fieldsets.Builder> __func) Make a new builder and run the supplied function on it before using it as the value- Parameters:
__func
- lambda that modifies the given builder- Returns:
- this builder
-
referencetype
public DocumenttypesConfig.Documenttype.Builder referencetype(DocumenttypesConfig.Documenttype.Referencetype.Builder __builder) Add the given builder to this builder's list of Referencetype builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
referencetype
public DocumenttypesConfig.Documenttype.Builder referencetype(Consumer<DocumenttypesConfig.Documenttype.Referencetype.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func
- lambda that modifies the given builder- Returns:
- this builder
-
referencetype
public DocumenttypesConfig.Documenttype.Builder referencetype(List<DocumenttypesConfig.Documenttype.Referencetype.Builder> __builders) Set the given list as this builder's list of Referencetype builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
importedfield
public DocumenttypesConfig.Documenttype.Builder importedfield(DocumenttypesConfig.Documenttype.Importedfield.Builder __builder) Add the given builder to this builder's list of Importedfield builders- Parameters:
__builder
- a builder- Returns:
- this builder
-
importedfield
public DocumenttypesConfig.Documenttype.Builder importedfield(Consumer<DocumenttypesConfig.Documenttype.Importedfield.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func
- lambda that modifies the given builder- Returns:
- this builder
-
importedfield
public DocumenttypesConfig.Documenttype.Builder importedfield(List<DocumenttypesConfig.Documenttype.Importedfield.Builder> __builders) Set the given list as this builder's list of Importedfield builders- Parameters:
__builders
- a list of builders- Returns:
- this builder
-
build
-