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
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(DocumenttypesConfig.Documenttype config)
-
Method Summary
-
-
-
Field Detail
-
inherits
public List<DocumenttypesConfig.Documenttype.Inherits.Builder> inherits
-
datatype
public List<DocumenttypesConfig.Documenttype.Datatype.Builder> datatype
-
annotationtype
public List<DocumenttypesConfig.Documenttype.Annotationtype.Builder> annotationtype
-
fieldsets
public Map<String,DocumenttypesConfig.Documenttype.Fieldsets.Builder> fieldsets
-
referencetype
public List<DocumenttypesConfig.Documenttype.Referencetype.Builder> referencetype
-
importedfield
public List<DocumenttypesConfig.Documenttype.Importedfield.Builder> importedfield
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DocumenttypesConfig.Documenttype config)
-
-
Method Detail
-
id
public DocumenttypesConfig.Documenttype.Builder id(int __value)
-
name
public DocumenttypesConfig.Documenttype.Builder name(String __value)
-
version
public DocumenttypesConfig.Documenttype.Builder version(int __value)
-
headerstruct
public DocumenttypesConfig.Documenttype.Builder headerstruct(int __value)
-
bodystruct
public DocumenttypesConfig.Documenttype.Builder bodystruct(int __value)
-
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
public DocumenttypesConfig.Documenttype build()
-
-