public abstract class ParameterBuilder<IMPLTYPE extends ParameterBuilder<IMPLTYPE>> extends Object implements ConfigurableParameter<IMPLTYPE>
Parameter
Modifier | Constructor and Description |
---|---|
protected |
ParameterBuilder(String name)
Create a new
ParameterBuilder instance with the given name. |
protected ParameterBuilder(String name)
ParameterBuilder
instance with the given name.public IMPLTYPE configuredBy(ParameterConfigurator configurator)
ParameterConfiguration
ParameterConfigurator
with which this ParameterConfiguration
will be configured.configuredBy
in interface ParameterConfiguration<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public IMPLTYPE bindsTo(Binding binding)
ParameterConfiguration
Binding
to this ParameterConfiguration
.bindsTo
in interface ParameterConfiguration<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public List<Binding> getBindings()
Parameter
getBindings
in interface Parameter<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public String getName()
Parameter
Parameter
getName
in interface Parameter<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public IMPLTYPE convertedBy(Converter<?> converter)
ParameterConfiguration
Converter
with which this ParameterConfiguration
value will be converted.convertedBy
in interface ParameterConfiguration<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public Converter<?> getConverter()
Parameter
getConverter
in interface Parameter<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public IMPLTYPE validatedBy(Validator<?> validator)
ParameterConfiguration
Validator
with which this ParameterConfiguration
value will be validated.validatedBy
in interface ParameterConfiguration<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public Validator<?> getValidator()
Parameter
getValidator
in interface Parameter<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public IMPLTYPE constrainedBy(Constraint<String> constraint)
ParameterConfiguration
ParameterConfiguration
must match.constrainedBy
in interface ParameterConfiguration<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public List<Constraint<String>> getConstraints()
Parameter
getConstraints
in interface Parameter<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public IMPLTYPE transposedBy(Transposition<String> transform)
ParameterConfiguration
Transposition
to this ParameterConfiguration
; it will executed in the order in which it was
added.transposedBy
in interface ParameterConfiguration<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
public List<Transposition<String>> getTranspositions()
Parameter
getTranspositions
in interface Parameter<IMPLTYPE extends ParameterBuilder<IMPLTYPE>>
Copyright © 2014 OCPsoft. All Rights Reserved.