V
- value type of the new ParamInfopublic static class ParamInfoFactory.ParamInfoBuilder<V> extends Object
Modifier and Type | Method and Description |
---|---|
ParamInfo<V> |
build()
Builds the defined ParamInfo and returns it.
|
ParamInfoFactory.ParamInfoBuilder<V> |
setAlias(String[] alias)
Sets the aliases of the parameter.
|
ParamInfoFactory.ParamInfoBuilder<V> |
setDescription(String description)
Sets the description of the parameter.
|
ParamInfoFactory.ParamInfoBuilder<V> |
setHasDefaultValue(V defaultValue)
Sets the flag indicating the parameter has default value, and sets the default value.
|
ParamInfoFactory.ParamInfoBuilder<V> |
setOptional()
Sets the flag indicating the parameter is optional.
|
ParamInfoFactory.ParamInfoBuilder<V> |
setRequired()
Sets the flag indicating the parameter is required.
|
ParamInfoFactory.ParamInfoBuilder<V> |
setValidator(ParamValidator<V> validator)
Sets the validator to validate the parameter value set by users.
|
public ParamInfoFactory.ParamInfoBuilder<V> setAlias(String[] alias)
public ParamInfoFactory.ParamInfoBuilder<V> setDescription(String description)
public ParamInfoFactory.ParamInfoBuilder<V> setOptional()
public ParamInfoFactory.ParamInfoBuilder<V> setRequired()
public ParamInfoFactory.ParamInfoBuilder<V> setHasDefaultValue(V defaultValue)
public ParamInfoFactory.ParamInfoBuilder<V> setValidator(ParamValidator<V> validator)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.