Package de.xima.fc.mdl.placeholder
Class PlaceholderDescriptorBuilder
- java.lang.Object
-
- de.xima.fc.mdl.placeholder.PlaceholderDescriptorBuilder
-
public final class PlaceholderDescriptorBuilder extends Object
A simple builder for creating aIParsedPlaceholderPOJO.- Since:
- 7.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description PlaceholderDescriptorBuilder(EPlaceholderSyntaxKind syntaxKind)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IStaticPlaceholderbuild()static PlaceholderDescriptorBuilderbuilder(EPlaceholderSyntaxKind syntaxKind)PlaceholderDescriptorBuildercontent(String content)PlaceholderDescriptorBuildercontentType(String contentType)PlaceholderDescriptorBuildersyntaxKind(EPlaceholderSyntaxKind syntaxKind)PlaceholderDescriptorBuildertype(EPlaceholderType type)
-
-
-
Constructor Detail
-
PlaceholderDescriptorBuilder
public PlaceholderDescriptorBuilder(EPlaceholderSyntaxKind syntaxKind)
- Parameters:
syntaxKind- The syntax which the placeholder uses.
-
-
Method Detail
-
build
public IStaticPlaceholder build()
- Returns:
- A new POJO with the current data from this builder.
-
content
public PlaceholderDescriptorBuilder content(String content)
- Parameters:
content- The content of the placeholder, e.g.PROJECT_ID.- Returns:
- This builder instance for chaining method calls.
-
contentType
public PlaceholderDescriptorBuilder contentType(String contentType)
- Parameters:
contentType- The mime type of the value to which the placeholder resolves.- Returns:
- This builder instance for chaining method calls.
-
syntaxKind
public PlaceholderDescriptorBuilder syntaxKind(EPlaceholderSyntaxKind syntaxKind)
- Parameters:
syntaxKind- The syntax which the placeholder uses.- Returns:
- This builder instance for chaining method calls.
-
type
public PlaceholderDescriptorBuilder type(EPlaceholderType type)
- Parameters:
type- The semantic type of the placeholder.- Returns:
- This builder instance for chaining method calls.
-
builder
public static PlaceholderDescriptorBuilder builder(EPlaceholderSyntaxKind syntaxKind)
- Parameters:
syntaxKind- The syntax kind of the placeholder to build.- Returns:
- A new builder for a
IParsedPlaceholderPOJO instance.
-
-