Interface PlaceholderComponent.Builder
- All Superinterfaces:
- AbstractBuilder<PlaceholderComponent>,- Builder<PlaceholderComponent,,- PlaceholderComponent.Builder> - ResettableBuilder<PlaceholderComponent,- PlaceholderComponent.Builder> 
- Enclosing interface:
- PlaceholderComponent
public static interface PlaceholderComponent.Builder
extends Builder<PlaceholderComponent,PlaceholderComponent.Builder> 
A builder for 
PlaceholderComponent objects.- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds and returns the placeholder.context(PlaceholderContext context) Sets thePlaceholderContextthat will be provided to thePlaceholderParserto create theComponentwhenComponentLike.asComponent()()} is called.parser(PlaceholderParser parser) Sets the token that represents aPlaceholderParserfor use in thisPlaceholderComponent.
- 
Method Details- 
parserSets the token that represents aPlaceholderParserfor use in thisPlaceholderComponent.- Parameters:
- parser- The- PlaceholderParserto use
- Returns:
- This, for chaining
 
- 
contextSets thePlaceholderContextthat will be provided to thePlaceholderParserto create theComponentwhenComponentLike.asComponent()()} is called.- Parameters:
- context- The- PlaceholderContextto use.
- Returns:
- This, for chaining
 
- 
buildBuilds and returns the placeholder.- Specified by:
- buildin interface- AbstractBuilder<PlaceholderComponent>
- Returns:
- The appropriate PlaceholderComponent
- Throws:
- IllegalStateException- if the builder has not been completed, or the associated- PlaceholderParsercould not validate the built- PlaceholderComponent, if applicable.
 
 
-