T
- the type the built provider will providepublic class DefinitionProviderBuilder<T> extends Object
DefinitionProvider
s progressively,
without nesting try/catch blocks.newBuilder()
Modifier | Constructor and Description |
---|---|
protected |
DefinitionProviderBuilder() |
Modifier and Type | Method and Description |
---|---|
DefinitionProviderBuilder<T> |
addErrorMessage(String errorMessage)
Deprecated.
since 5.5 - use
#addProblem(Problem) instead. |
DefinitionProviderBuilder<T> |
addProblem(DefinitionProvider.Problem problem) |
DefinitionProvider<T> |
build() |
DefinitionProvider<T> |
buildFromTransformationResult(TransformationResult<T> transformationResult) |
DefinitionProviderBuilder<T> |
decorators(List<DefinitionDecorator<T>> decorators) |
DefinitionProviderBuilder<T> |
definition(T definition) |
DefinitionProviderBuilder<T> |
metadata(DefinitionMetadata metadata) |
DefinitionProviderBuilder<T> |
metadata(DefinitionMetadataBuilder metadata) |
static <T> DefinitionProviderBuilder<T> |
newBuilder() |
DefinitionProviderBuilder<T> |
rawView(DefinitionRawView rawView) |
DefinitionProviderBuilder<T> |
withLastModifed(long lastModified) |
public static <T> DefinitionProviderBuilder<T> newBuilder()
public DefinitionProviderBuilder<T> metadata(DefinitionMetadata metadata)
public DefinitionProviderBuilder<T> metadata(DefinitionMetadataBuilder metadata)
public DefinitionProviderBuilder<T> rawView(DefinitionRawView rawView)
public DefinitionProviderBuilder<T> definition(T definition)
public DefinitionProviderBuilder<T> addProblem(DefinitionProvider.Problem problem)
public DefinitionProviderBuilder<T> decorators(List<DefinitionDecorator<T>> decorators)
@Deprecated public DefinitionProviderBuilder<T> addErrorMessage(String errorMessage)
#addProblem(Problem)
instead.public DefinitionProviderBuilder<T> withLastModifed(long lastModified)
public DefinitionProvider<T> buildFromTransformationResult(TransformationResult<T> transformationResult)
public DefinitionProvider<T> build()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.