Package ch.raffael.meldioc.model.config
Class ExtensionPointConfig<S>
java.lang.Object
ch.raffael.meldioc.model.config.ElementConfig<S>
ch.raffael.meldioc.model.config.ExtensionPointConfig<S>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <S> ExtensionPointConfig.Builder<S>builder()abstract booleanstatic ExtensionPointConfig<ch.raffael.meldioc.ExtensionPoint>of(ch.raffael.meldioc.ExtensionPoint annotation) static <E,T extends io.vavr.collection.Traversable<E>>
TremoveFromAcceptorIfApplicable(T configs) final ModelAnnotationTypetype()valueMap()withFromAcceptorAnnotation(boolean value) Copy the current immutable object by setting a value for thefromAcceptorAnnotationattribute.withSource(S value) Copy the current immutable object by setting a value for thesourceattribute.Methods inherited from class ch.raffael.meldioc.model.config.ElementConfig
displayName, isConfigType, of, source, valueMapWithoutDefaults
-
Method Details
-
builder
-
of
public static ExtensionPointConfig<ch.raffael.meldioc.ExtensionPoint> of(ch.raffael.meldioc.ExtensionPoint annotation) -
type
- Specified by:
typein classElementConfig<S>
-
valueMap
- Specified by:
valueMapin classElementConfig<S>
-
fromAcceptorAnnotation
public abstract boolean fromAcceptorAnnotation() -
removeFromAcceptorIfApplicable
public static <E,T extends io.vavr.collection.Traversable<E>> T removeFromAcceptorIfApplicable(T configs) -
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
-
withFromAcceptorAnnotation
Copy the current immutable object by setting a value for thefromAcceptorAnnotationattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fromAcceptorAnnotation- Returns:
- A modified copy of the
thisobject
-