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 aIParsedPlaceholder
POJO.- 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 IStaticPlaceholder
build()
static PlaceholderDescriptorBuilder
builder(EPlaceholderSyntaxKind syntaxKind)
PlaceholderDescriptorBuilder
content(String content)
PlaceholderDescriptorBuilder
contentType(String contentType)
PlaceholderDescriptorBuilder
syntaxKind(EPlaceholderSyntaxKind syntaxKind)
PlaceholderDescriptorBuilder
type(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
IParsedPlaceholder
POJO instance.
-
-