java.lang.Object
org.refcodes.cli.SyntaxMetricsImpl.Builder
- All Implemented Interfaces:
ArgumentPrefixAccessor.ArgumentPrefixBuilder<SyntaxMetricsImpl.Builder>
,ArgumentSuffixAccessor.ArgumentSuffixBuilder<SyntaxMetricsImpl.Builder>
,LongOptionPrefixAccessor.LongOptionPrefixBuilder<SyntaxMetricsImpl.Builder>
,ShortOptionPrefixAccessor.ShortOptionPrefixBuilder<SyntaxMetricsImpl.Builder>
- Enclosing class:
- SyntaxMetricsImpl
public static final class SyntaxMetricsImpl.Builder
extends Object
implements ShortOptionPrefixAccessor.ShortOptionPrefixBuilder<SyntaxMetricsImpl.Builder>, LongOptionPrefixAccessor.LongOptionPrefixBuilder<SyntaxMetricsImpl.Builder>, ArgumentPrefixAccessor.ArgumentPrefixBuilder<SyntaxMetricsImpl.Builder>, ArgumentSuffixAccessor.ArgumentSuffixBuilder<SyntaxMetricsImpl.Builder>
Builder to build
SyntaxMetrics
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
SyntaxMetricsImpl.Builder
for fluently building aSyntaxMetrics
instances.withAllSymbol
(String aAllSymbol) Sets the symbol for representing an ALL notation.withAndSymbol
(String aAndSymbol) Sets the symbol for representing an AND notation.withAnySymbol
(String aAnySymbol) Sets the symbol for representing an ANY notation.withArgumentPrefix
(String aArgNotationPrefix) Sets the argument prefix for the argument prefix property.withArgumentSuffix
(String aArgNotationSuffix) Sets the argument suffix for the argument suffix property.withBeginArraySymbol
(String aBeginArraySymbol) Sets the symbol representing the beginning of an array, e.g. an opening square brace.withBeginListSymbol
(String aBeginListSymbol) Sets the symbol representing the beginning of a list, e.g. an opening brace.withBeginOptionalSymbol
(String aBeginOptionalSymbol) Sets the symbol representing the beginning optional elements, e.g. an opening square brace.withBeginRangeSymbol
(String aBeginRangeSymbol) Sets the symbol representing the beginning of a range, e.g. an opening square brace.withEMptySymbol
(String aEmptySymbol) Sets the symbol for representing an EMPTY notation.withEndArraySymbol
(String aEndArraySymbol) Sets the symbol representing the end of an array, e.g. a closing square brace.withEndListSymbol
(String aEndListSymbol) Sets the symbol representing the end of a list, e.g. a closing brace.withEndOptionalSymbol
(String aEndOptionalSymbol) Sets the symbol representing the end of optional elements, e.g. a closing square brace.withEndRangeSymbol
(String aEndRangeSymbol) Sets the symbol representing the end of a range, e.g. a closing square brace.withIntervalSymbol
(String aIntervalSymbol) Sets the symbol representing an interval, e.g. "..." or "-".withLongOptionPrefix
(String aLongOptionPrefix) Sets the long option prefix for the long option prefix property.withOrSymbol
(String aOrSymbol) Sets the symbol for representing an OR notation.withShortOptionPrefix
(Character aShortOptionPrefix) Sets the short option prefix for the short option prefix property.withXorSymbol
(String aXorSymbol) Sets the symbol for representing an XOR notation.
-
Method Details
-
build
SyntaxMetricsImpl.Builder
for fluently building aSyntaxMetrics
instances.- Returns:
- The according constructed
SyntaxMetrics
instance.
-
withAllSymbol
Sets the symbol for representing an ALL notation.- Parameters:
aAllSymbol
- The according ALL symbol.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withAndSymbol
Sets the symbol for representing an AND notation.- Parameters:
aAndSymbol
- The according AND symbol.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withAnySymbol
Sets the symbol for representing an ANY notation.- Parameters:
aAnySymbol
- The according ANY symbol.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withArgumentPrefix
Sets the argument prefix for the argument prefix property.- Specified by:
withArgumentPrefix
in interfaceArgumentPrefixAccessor.ArgumentPrefixBuilder<SyntaxMetricsImpl.Builder>
- Parameters:
aArgNotationPrefix
- The argument prefix to be stored by the argument prefix property.- Returns:
- The builder for applying multiple build operations.
-
withArgumentSuffix
Sets the argument suffix for the argument suffix property.- Specified by:
withArgumentSuffix
in interfaceArgumentSuffixAccessor.ArgumentSuffixBuilder<SyntaxMetricsImpl.Builder>
- Parameters:
aArgNotationSuffix
- The argument suffix to be stored by the argument suffix property.- Returns:
- The builder for applying multiple build operations.
-
withBeginArraySymbol
Sets the symbol representing the beginning of an array, e.g. an opening square brace.- Parameters:
aBeginArraySymbol
- The symbol representing the beginning of a array.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withBeginListSymbol
Sets the symbol representing the beginning of a list, e.g. an opening brace.- Parameters:
aBeginListSymbol
- The symbol representing the beginning of a list.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withBeginOptionalSymbol
Sets the symbol representing the beginning optional elements, e.g. an opening square brace.- Parameters:
aBeginOptionalSymbol
- The symbol representing the beginning of optional elements.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withBeginRangeSymbol
Sets the symbol representing the beginning of a range, e.g. an opening square brace.- Parameters:
aBeginRangeSymbol
- The symbol representing the beginning of a range.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withEMptySymbol
Sets the symbol for representing an EMPTY notation.- Parameters:
aEmptySymbol
- The according EMPTY symbol.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withEndArraySymbol
Sets the symbol representing the end of an array, e.g. a closing square brace.- Parameters:
aEndArraySymbol
- The symbol representing the end of a array.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withEndListSymbol
Sets the symbol representing the end of a list, e.g. a closing brace.- Parameters:
aEndListSymbol
- The symbol representing the end of a list.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withEndOptionalSymbol
Sets the symbol representing the end of optional elements, e.g. a closing square brace.- Parameters:
aEndOptionalSymbol
- The symbol representing the end of optional elements.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withEndRangeSymbol
Sets the symbol representing the end of a range, e.g. a closing square brace.- Parameters:
aEndRangeSymbol
- The symbol representing the end of a range.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withIntervalSymbol
Sets the symbol representing an interval, e.g. "..." or "-".- Parameters:
aIntervalSymbol
- The symbol representing an interval.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withLongOptionPrefix
Sets the long option prefix for the long option prefix property.- Specified by:
withLongOptionPrefix
in interfaceLongOptionPrefixAccessor.LongOptionPrefixBuilder<SyntaxMetricsImpl.Builder>
- Parameters:
aLongOptionPrefix
- The long option prefix to be stored by the long option prefix property.- Returns:
- The builder for applying multiple build operations.
-
withOrSymbol
Sets the symbol for representing an OR notation.- Parameters:
aOrSymbol
- The according OR symbol.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-
withShortOptionPrefix
Sets the short option prefix for the short option prefix property.- Specified by:
withShortOptionPrefix
in interfaceShortOptionPrefixAccessor.ShortOptionPrefixBuilder<SyntaxMetricsImpl.Builder>
- Parameters:
aShortOptionPrefix
- The short option prefix to be stored by the short option prefix property.- Returns:
- The builder for applying multiple build operations.
-
withXorSymbol
Sets the symbol for representing an XOR notation.- Parameters:
aXorSymbol
- The according XOR symbol.- Returns:
- This
SyntaxMetricsImpl.Builder
instance for chaining multiple builder methods.
-