Package com.exasol.errorreporting
Class Placeholder.Builder
- java.lang.Object
-
- com.exasol.errorreporting.Placeholder.Builder
-
- Enclosing class:
- Placeholder
public static final class Placeholder.Builder extends Object
Builder for aPlaceholder.
-
-
Constructor Summary
Constructors Constructor Description Builder(String reference)Create a new builder for aPlaceholder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Placeholderbuild()Build a new instance of aPlaceholder.Placeholder.BuilderendIndex(int endIndex)Set the index at which the placeholder ends in the text it is embedded in.Placeholder.Builderquoting(Quoting quoting)Set the quoting style that should be used when replacing this placeholder.Placeholder.BuilderstartIndex(int startIndex)Set the index at which the placeholder starts in the text it is embedded in.
-
-
-
Constructor Detail
-
Builder
public Builder(String reference)
Create a new builder for aPlaceholder.- Parameters:
reference- reference that points to a parameter
-
-
Method Detail
-
build
public Placeholder build()
Build a new instance of aPlaceholder.- Returns:
- new placeholder instance
-
startIndex
public Placeholder.Builder startIndex(int startIndex)
Set the index at which the placeholder starts in the text it is embedded in.- Parameters:
startIndex- start index- Returns:
- self for fluent programming
-
endIndex
public Placeholder.Builder endIndex(int endIndex)
Set the index at which the placeholder ends in the text it is embedded in.- Parameters:
endIndex- end index- Returns:
- self for fluent programming
-
quoting
public Placeholder.Builder quoting(Quoting quoting)
Set the quoting style that should be used when replacing this placeholder.- Parameters:
quoting- quoting style- Returns:
- self for fluent programming
-
-