Package ch.raffael.meldioc.model.config
Class ParameterConfig.Builder<S>
java.lang.Object
ch.raffael.meldioc.model.config.ParameterConfig.Builder<S>
- Enclosing class:
ParameterConfig<S>
-
Method Summary
Modifier and TypeMethodDescriptionfinal ParameterConfig.Builder<S>absolute(boolean absolute) Initializes the value for theabsoluteattribute.build()Builds a newParameterConfig.final ParameterConfig.Builder<S>from(ElementConfig<S> instance) Fill a builder with attribute values from the providedch.raffael.meldioc.model.config.ElementConfiginstance.final ParameterConfig.Builder<S>from(ParameterConfig<S> instance) Fill a builder with attribute values from the providedch.raffael.meldioc.model.config.ParameterConfiginstance.final ParameterConfig.Builder<S>Initializes the value for thesourceattribute.final ParameterConfig.Builder<S>Initializes the value for thevalueattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedch.raffael.meldioc.model.config.ElementConfiginstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedch.raffael.meldioc.model.config.ParameterConfiginstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
source
Initializes the value for thesourceattribute.- Parameters:
source- The value for source- Returns:
thisbuilder for use in a chained invocation
-
value
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
absolute
Initializes the value for theabsoluteattribute.- Parameters:
absolute- The value for absolute- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newParameterConfig.- Returns:
- An immutable instance of ParameterConfig
- Throws:
ch.raffael.meldioc.util.immutables.IllegalBuilderStateException- if any required attributes are missing
-