Package ch.raffael.meldioc.model.config
Class ProvisionConfig<S>
java.lang.Object
ch.raffael.meldioc.model.config.ElementConfig<S>
ch.raffael.meldioc.model.config.ProvisionConfig<S>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <S> ProvisionConfig.Builder<S>builder()static ProvisionConfig<ch.raffael.meldioc.Provision>of(ch.raffael.meldioc.Provision annotation) abstract booleanoverride()abstract booleanfinal ModelAnnotationTypetype()valueMap()withOverride(boolean value) Copy the current immutable object by setting a value for theoverrideattribute.withSingleton(boolean value) Copy the current immutable object by setting a value for thesingletonattribute.withSource(S value) Copy the current immutable object by setting a value for thesourceattribute.Methods inherited from class ch.raffael.meldioc.model.config.ElementConfig
isConfigType, of, source, valueMapWithoutDefaults
-
Field Details
-
TYPE
-
SINGLETON
- See Also:
-
OVERRIDE
- See Also:
-
-
Method Details
-
builder
-
of
public static ProvisionConfig<ch.raffael.meldioc.Provision> of(ch.raffael.meldioc.Provision annotation) -
singleton
public abstract boolean singleton() -
override
public abstract boolean override() -
type
- Specified by:
typein classElementConfig<S>
-
valueMap
- Specified by:
valueMapin classElementConfig<S>
-
displayName
- Overrides:
displayNamein classElementConfig<S>
-
withSource
Copy the current immutable object by setting a value for thesourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for source- Returns:
- A modified copy of the
thisobject
-
withSingleton
Copy the current immutable object by setting a value for thesingletonattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for singleton- Returns:
- A modified copy of the
thisobject
-
withOverride
Copy the current immutable object by setting a value for theoverrideattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for override- Returns:
- A modified copy of the
thisobject
-