T
- the type the built provider will providepublic class DefinitionProviderBuilder<T> extends Object
DefinitionProvider
s progressively,
without nesting try/catch blocks.newBuilder()
Modifier and Type | Method and Description |
---|---|
DefinitionProviderBuilder<T> |
addErrorMessage(String errorMessage) |
DefinitionProvider<T> |
build() |
DefinitionProviderBuilder<T> |
definition(T definition) |
DefinitionProviderBuilder<T> |
metadata(DefinitionMetadataBuilder metadata) |
static <T> DefinitionProviderBuilder<T> |
newBuilder() |
DefinitionProviderBuilder<T> |
rawView(DefinitionRawView rawView) |
public static <T> DefinitionProviderBuilder<T> newBuilder()
public DefinitionProviderBuilder<T> metadata(DefinitionMetadataBuilder metadata)
public DefinitionProviderBuilder<T> rawView(DefinitionRawView rawView)
public DefinitionProviderBuilder<T> definition(T definition)
public DefinitionProviderBuilder<T> addErrorMessage(String errorMessage)
public DefinitionProvider<T> build()
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.